/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

@ -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]