On Sat, Dec 02, 2006 at 12:48:42PM +0100, J.H.M. Dassen (Ray) wrote: > I've been successfully using offlineimap against a GroupWise IMAP service > for a long time, but as of 4.0.15, it fails when storing a new message to > local Maildir storage; as far as I can tell, due to rtime being > None.
Thanks for the report. I think that this patch will fix it. I will upload it in 4.0.16 ASAP. In the meantime, can you let me know if it does? diff -rN -u old-offlineimap/offlineimap/folder/Maildir.py new-offlineimap/offlineimap/folder/Maildir.py --- old-offlineimap/offlineimap/folder/Maildir.py 2006-12-02 08:52:56.000000000 -0600 +++ new-offlineimap/offlineimap/folder/Maildir.py 2006-12-02 08:52:56.000000000 -0600 @@ -170,7 +170,8 @@ file = open(os.path.join(tmpdir, tmpmessagename), "wt") file.write(content) file.close() - os.utime(os.path.join(tmpdir,tmpmessagename), (rtime,rtime)) + if rtime != None: + os.utime(os.path.join(tmpdir,tmpmessagename), (rtime,rtime)) ui.debug('maildir', 'savemessage: moving from %s to %s' % \ (tmpmessagename, messagename)) os.link(os.path.join(tmpdir, tmpmessagename), -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]