Complete.Org: Mailing Lists: Archives: offlineimap: May 2009:
Re: Can imap syncs be done without INTERNALDATE?
Home

Re: Can imap syncs be done without INTERNALDATE?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: Can imap syncs be done without INTERNALDATE?
From: Marc MERLIN <marc@xxxxxxxxxxx>
Date: Fri, 29 May 2009 14:45:42 -0700

On Fri, May 29, 2009 at 03:45:54PM -0500, John Goerzen wrote:
> > offlineimap should only need the UID for syncing purposes, should it not?
> 
> That may well be.  If you'd like to submit a patch, it ought to be
> relatively easy.

I haven't learned how to use git, but there you go:

magic [mc]$ diff -u IMAP.py.orig IMAP.py
--- IMAP.py.orig        2009-05-29 14:09:43.807823000 -0700
+++ IMAP.py     2009-05-29 14:09:48.650472000 -0700
@@ -135,7 +135,7 @@
             # Now, get the flags and UIDs for these.
             # We could conceivably get rid of maxmsgid and just say
             # '1:*' here.
-            response = imapobj.fetch('1:%d' % maxmsgid, '(FLAGS UID 
INTERNALDATE)')[1]
+            response = imapobj.fetch('1:%d' % maxmsgid, '(FLAGS UID)')[1]
         finally:
             self.imapserver.releaseconnection(imapobj)
         for messagestr in response:
magic [mc]$  

Indeed, it looks like it works fine without it.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  



[Prev in Thread] Current Thread [Next in Thread]