Bug 425838 - mbsync exits with an error with gmail IMAP
Summary: mbsync exits with an error with gmail IMAP
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: isync
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Target
TreeView+ depends on / blocked
 
Reported: 2007-12-16 12:27 UTC by Nicolas Mailhot
Modified: 2009-01-07 18:09 UTC (History)
0 users

Fixed In Version: isync-1.0.3-5.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-17 17:28:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2007-12-16 12:27:30 UTC
Description of problem:

Mbsync is chatty even with -qq, making it unsuitable for running in cron jobs

$ mbsync -a -qq > /dev/null
IMAP warning: SSL support not available
*** IMAP Warning *** Password is being sent in the clear
IMAP error: malformed SEARCH response
IMAP error: malformed SEARCH response
IMAP warning: SSL support not available
*** IMAP Warning *** Password is being sent in the clear
IMAP warning: SSL support not available
*** IMAP Warning *** Password is being sent in the clear
IMAP warning: SSL support not available
*** IMAP Warning *** Password is being sent in the clear
IMAP warning: SSL support not available
*** IMAP Warning *** Password is being sent in the clear

Version-Release number of selected component (if applicable):

isync-1.0.3-4.fc9.x86_64

Comment 1 Lubomir Kundrak 2007-12-16 18:18:41 UTC
Nicolas, Thanks for the report!

Problem is that mbsync does not use getopt() for parsing command line arguments
and treats '-qq' as single '-q'. Therefore the workaround for you is to use '-q
-q' and mbsync should be quiet. Please let me know if it solved your problem and
if mbsync is quiet then.

I'll try to inspect how hard would it be to teach mbsync use getopt or modify it
to understand multiple single letter options with a single dash, or eventually
adjust the documentation.

Comment 2 Lubomir Kundrak 2007-12-16 19:08:41 UTC
Not. I shamelessly lied. mbsync was ignoring all but first one-letter option
from the last argument. The fix is in CVS and is building in koji as
isync-1.0.3-5.fc9 [1].  Please test the fix and confirm if it solves your
problem and doesn't break anything else for you. Thanks!

[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=295913

Comment 3 Nicolas Mailhot 2007-12-17 11:57:54 UTC
This one is better but I still get

$ mbsync -qq -a
IMAP error: malformed SEARCH response

And IIRC gmail is causing this, so it's going to hit a lot of people

Comment 4 Lubomir Kundrak 2007-12-17 12:21:32 UTC
Thanks for the feedback, Nicholas. I assume this is not to be quietened by -q as
it is not a warning but an error.

I do not have a gmail account and I am wondering if it really violates IMAP (I
did not even know gmail supports IMAP), or mbsync just misunderstands something.
Could you please run mbsync with -V argument and paste/attach the relevant part
of the IMAP conversation?

(Please don't forget to double check that it doesn't contain password and other
private data before you paste, though mbsync should attempt to remove those from
the log)

Comment 5 Lubomir Kundrak 2007-12-17 17:28:54 UTC
Nicolas: This problem seems like one that is reported in bug #420721. I'll close
this bug now, make an updated package, and add a note there.


Note You need to log in before you can comment on or make changes to this bug.