After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 715034 - NULL values in database and empty impap folders.
NULL values in database and empty impap folders.
Status: RESOLVED DUPLICATE of bug 714902
Product: geary
Classification: Other
Component: server-support
master
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-22 19:20 UTC by Jim Nelson
Modified: 2013-12-10 03:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Geary log. (130.68 KB, application/x-7z-compressed)
2013-11-23 09:45 UTC, Tomasz Woźniak
Details

Description Jim Nelson 2013-11-22 19:20:31 UTC
Reported by Tomasz Wozniak at http://redmine.yorba.org/issues/7710:

System: Ubuntu 13.10
Geary: 0.4, 0.4.1, 0.4.2 from deb.

sqlite> select count(id) from MessageTable;
94
sqlite> select id,body from MessageTable where body not null;
sqlite> 

In debug file I see something like:

 [deb] 13:15:24 0,309427 imap-client-session.vala:1024: [0000/bochen.home.pl/def
ault:993 GEARY_IMAP_CLIENT_SESSION_STATE_SELECTED] Received error from server: a
006 BAD Missing ] in: header.fields
 [deb] 13:15:24 0,013140 imap-engine-replay-queue.vala:496: Replay remote error 
for [1] ListEmailByID: required_fields=29Fh local_only=false force_update=false 
initial_id=(null) count=50 incl=false newest_to_oldest=true on ReplayQueue:Other
:redakcja@xxxxxxxx.pl:INBOX (notification=0 local=0 local_active=false r
emote=0 remote_active=true): Bad request a006 uid fetch 330:379 body.peek[header
.fields (references)] on INBOX: a006 BAD Missing ] in: header.fields
 [deb] 13:15:24 0,000045 geary-controller.vala:995: Scan error: Bad request a006
 uid fetch 330:379 body.peek[header.fields (references)] on INBOX: a006 BAD Miss
ing ] in: header.fields
 [deb] 13:15:24 0,000253 app-conversation-monitor.vala:743: Reseed error: Bad re
quest a006 uid fetch 330:379 body.peek[header.fields (references)] on INBOX: a00
6 BAD Missing ] in: header.fields
Comment 1 Jim Nelson 2013-11-22 19:23:10 UTC
Tomasz, can you do the following?  Run Geary from a terminal like this:

$ geary --debug --log-serializer --log-deserializer > geary.log

Let it run and then exit.  Examine the geary.log file for sensitive data, it will contain your password and possibly other data.  You can edit that out.  Then send it to geary@yorba.org.  Thanks!
Comment 2 Tomasz Woźniak 2013-11-23 09:45:20 UTC
Created attachment 261291 [details]
Geary log.

It is log. Please delete it when it doesn't be necessary.
Comment 3 Jim Nelson 2013-11-25 21:15:40 UTC
I believe this is the same problem, or at least related to, bug #714902.  mail.ru's IMAP server chokes when there's a space in a

BODY[header.fields (references)]

command, which is legal in IMAP.  The server expects something like

BODY[header.fields(references)]

which is not described in the spec, and is not accepted by most other IMAP servers.

The error code your server is sending ("a009 BAD Missing ] in: header.fields") is suspiciously similar.  I wonder if it too expects no space.

(a) Do you know the make and version of your IMAP server?
(b) Is there any way I could get an account on the server?  If not, I can give you instructions to verify the issue.
Comment 4 Tomasz Woźniak 2013-11-26 14:51:19 UTC
I've tested it on gmail account with the same result.

Log file is from one of the biggest ISP in Poland- home.pl. There is credentials for demo account (it will works only 14 days)

email: gearytest@post.pl
password: Rl3d04tmiedo

imapserver/smtp: post.pl
Comment 5 Charles Lindsay 2013-11-26 19:16:27 UTC
Thanks, Tomasz, we'll look into this.
Comment 6 Jim Nelson 2013-12-10 00:18:40 UTC
I've verified that this is the same problem as #714902: the server is rejecting a FETCH BODY command because of the space between HEADER.FIELDS and the parenthesis holding the header list.  I'm marking this as a duplicate of that ticket.

*** This bug has been marked as a duplicate of bug 714902 ***