Bug 420721

Summary: mbsync fails incorrectly with "malformed SEARCH response"
Product: [Fedora] Fedora Reporter: chris
Component: isyncAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: nicolas.mailhot
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: isync-1.0.3-6.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-14 12:09:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
More mbsync messages after a few weeks of rawhide operation none

Description chris 2007-12-11 23:21:52 UTC
Some IMAP servers will return:

   * SEARCH

as a legitimate "none found" response to a SEARCH command.  But mbsync reports
that response as "malformed SEARCH response" (which is incorrect), and then
fails to sync mail correctly.

There's a Debian report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413336
with a (very simple) attached patch which fixes the problem at
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=01search.patch;att=1;bug=413336

It would be great to pull the patch into the Fedora RPMs.

Comment 1 Lubomir Kundrak 2007-12-17 17:18:06 UTC
>>> 7 UID SEARCH HEADER X-TUID 465db9b6f452e5e3
* SEARCH
IMAP error: malformed SEARCH response
7 OK SEARCH completed (Success)

Comment 2 Lubomir Kundrak 2007-12-17 17:33:08 UTC
Chris: Thanks for the report, though I nearly overlooked it if it weren't for
bug #425838 :( I commited the patch and am initiated the build in koji as
isync-1.0.3-4.fc9 [1]. Please test it and let me know if it fixes things for you.

I don't think this is serious enough for a Fedora 8 update (it doesn't impact
functionality, does it?). Is your opinion different?

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

Comment 3 Nicolas Mailhot 2008-01-13 12:27:34 UTC
Created attachment 291499 [details]
More mbsync messages after a few weeks of rawhide operation

Comment 4 Lubomir Kundrak 2008-01-14 11:40:50 UTC
Thanks Nicolas, will look at it later this week (unless it needs immediate
attention), setting NEEDINFO to myslef so I know it's my turn :)

Comment 5 Lubomir Kundrak 2008-01-14 12:09:58 UTC
Nicolas: The original issue was resolved, so I close this and have split issues
from your logs into two separate bug reports:

bug #428648 for the double-free() and
bug #428649 for the IMAP server warnings