/offlineimap/head: changeset 151

Now put messages with 'S' flag into 'cur'. [complete.org #4],
deb#152482
This commit is contained in:
jgoerzen 2002-07-22 02:43:04 +01:00
parent 46df79b49f
commit 65459424ec
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,8 @@ offlineimap (3.0.3) unstable; urgency=low
Closes: #153425.
* No longer doubles-up reference names for mailboxes. Closes: #153515.
* Noted new bug-tracking system in manual and rebuilt manual files.
* Now stores incoming messages in 'cur' instead of 'new' if they have
the S flag. Closes: #152482.
-- John Goerzen <jgoerzen@complete.org> Thu, 18 Jul 2002 17:46:13 -0500

View File

@ -140,7 +140,12 @@ class MaildirFolder(BaseFolder):
# We already have it.
self.savemessageflags(uid, flags)
return uid
newdir = os.path.join(self.getfullname(), 'new')
if 'S' in flags:
# If a message has been seen, it goes into the cur
# directory. CR debian#152482, [complete.org #4]
newdir = os.path.join(self.getfullname(), 'cur')
else:
newdir = os.path.join(self.getfullname(), 'new')
tmpdir = os.path.join(self.getfullname(), 'tmp')
messagename = None
attempts = 0