diff --git a/isync-1.0.3-search.patch b/isync-1.0.3-search.patch new file mode 100644 index 0000000..602e466 --- /dev/null +++ b/isync-1.0.3-search.patch @@ -0,0 +1,19 @@ +Fix for gmail empty SEARCH responses (#425838 and #420721) + +This one comes from the Debian bug report #413336: +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413336 + +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; + } diff --git a/isync.spec b/isync.spec index 91f2057..e93abd5 100644 --- a/isync.spec +++ b/isync.spec @@ -1,6 +1,6 @@ Name: isync Version: 1.0.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Tool to synchronize IMAP4 and Maildir mailboxes Group: Applications/Internet @@ -9,6 +9,7 @@ URL: http://isync.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: isync-1.0.3-open.patch Patch1: isync-1.0.3-args.patch +Patch2: isync-1.0.3-search.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: db4-devel openssl-devel @@ -24,6 +25,7 @@ IMAP-disconnected mode. %setup -q %patch0 -p1 -b .open %patch1 -p1 -b .args +%patch2 -p1 -b .search %build @@ -55,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Dec 17 2007 Lubomir Kundrak 1.0.3-6 +- gmail returns SEARCH with no argument (#420721) + * Sun Dec 16 2007 Lubomir Kundrak 1.0.3-5 - mbsync was ignoring option letters from last argument (#425838)