Package: isync
Version: 1.0.3-3gq
Severity: minor
Tags: patch

>>> 5 UID SEARCH HEADER X-TUID 1e871d2e63677420
* SEARCH
IMAP error: malformed SEARCH response
5 OK SEARCH done.

But "* SEARCH" is normal response means "no mails found"

So I patched source a little bit to avoid this error message on valid
search result.


-- System Information:
Debian Release: 4.0
  APT prefers testing-proposed-updates
  APT policy: (720, 'testing-proposed-updates'), (720, 'testing'), (670, 
'proposed-updates'), (670, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-vserver-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages isync depends on:
ii  debconf [debconf-2.0]       1.5.11       Debian configuration management sy
ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libdb4.4                    4.4.20-8     Berkeley v4.4 Database Libraries [
ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries

isync recommends no packages.

-- debconf information:
  isync/upgrade_1.0:
diff -r -u isync-1.0.3.orig/src/drv_imap.c isync-1.0.3/src/drv_imap.c
--- isync-1.0.3.orig/src/drv_imap.c     2006-11-01 10:15:09.000000000 +0300
+++ isync-1.0.3/src/drv_imap.c  2007-03-04 06:39:07.000000000 +0300
@@ -865,7 +865,9 @@
        int uid;
 
        arg = next_arg( &cmd );
-       if (!arg || !(uid = atoi( arg ))) {
+       if (!arg)
+               return;
+       if (!(uid = atoi( arg ))) {
                fprintf( stderr, "IMAP error: malformed SEARCH response\n" );
                return;
        }

Reply via email to