/head: changeset 48

Fixed a bug with writing messages out to the server.
This commit is contained in:
jgoerzen 2002-06-22 14:04:55 +01:00
parent b5f3c7aa9d
commit 55c06670da
5 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,16 @@
2002-06-21 22:03 jgoerzen
* offlineimap.py, offlineimap/folder/IMAP.py: Fixed a bug with
writing messages out to the server.
2002-06-21 15:24 jgoerzen
* README, debian/control: typo fixes
2002-06-21 15:15 jgoerzen
* ChangeLog: MORE PREP
2002-06-21 15:15 jgoerzen
* debian/changelog: Noted bug closing

View File

@ -1,3 +1,12 @@
offlineimap (1.0.1) unstable; urgency=low
* Fixed a bug with writing messages to some IMAP servers. Turns
out we need to issue CHECK between APPEND and SEARCH for some.
Thanks to Donovan Lange for reporting this bug and helping track it
down.
-- John Goerzen <jgoerzen@complete.org> Fri, 21 Jun 2002 22:03:12 -0500
offlineimap (1.0.0) unstable; urgency=low
* Initial Release. Closes: #150571.

View File

@ -21,6 +21,8 @@ from offlineimap import imaplib, imaputil, imapserver, repository, folder, mbnam
import re, os, os.path, offlineimap, sys
from ConfigParser import ConfigParser
# imaplib.Debug = 5
ui = offlineimap.ui.TTY.TTYUI()
ui.init_banner()

View File

@ -84,7 +84,8 @@ class IMAPFolder(BaseFolder):
assert(self.imapobj.append(self.getfullname(),
imaputil.flagsmaildir2imap(flags),
date, content)[0] == 'OK')
# Checkpoint. Let it write out the messages, etc.
assert(self.imapobj.check()[0] == 'OK')
# Now find the UID it got.
matchinguids = self.imapobj.uid('search', None,
'(HEADER Message-Id %s)' % mid)[1][0]

View File

@ -1,5 +1,5 @@
productname = 'OfflineIMAP'
versionstr = "1.0.0"
versionstr = "1.0.1"
versionlist = versionstr.split(".")
major = versionlist[0]