offlineimap rev 547
"Automatic Subversion Change Mailer" <[email protected]> Wed, 30 Jul 2003 10:10:56 -0500 (CDT)
| Newsgroups | gmane.mail.imap.offlineimap.subversion |
|---|---|
| Message-ID | <[email protected]> |
You are receiving this message because
all commits get sent to this address.
Author: jgoerzen
Date: 2003-07-30 10:10:49 -0500 (Wed, 30 Jul 2003)
New Revision: 547
Modified:
offlineimap/branches/twisted/offlineimap/folder/Base.py
offlineimap/branches/twisted/offlineimap/folder/IMAP.py
offlineimap/branches/twisted/offlineimap/folder/LocalStatus.py
offlineimap/branches/twisted/offlineimap/folder/Maildir.py
Log:
Made some significant progress weeding out bugs.
The spinlock turned out to be a problem with testing the type of i instead
of data[i]. Oops.
Diff:
Modified: offlineimap/branches/twisted/offlineimap/folder/Base.py
==============================================================================
--- offlineimap/branches/twisted/offlineimap/folder/Base.py 2003-07-29 15:39:31 UTC (rev 546)
+++ offlineimap/branches/twisted/offlineimap/folder/Base.py 2003-07-30 15:10:49 UTC (rev 547)
@@ -164,6 +164,8 @@
If the uid is > 0, the backend should set the uid to this, if it can.
If it cannot set the uid to that, it will save it anyway.
It will return the uid assigned in any case.
+
+ Returns Deferred with this data.
"""
raise NotImplementedException
Modified: offlineimap/branches/twisted/offlineimap/folder/IMAP.py
==============================================================================
--- offlineimap/branches/twisted/offlineimap/folder/IMAP.py 2003-07-29 15:39:31 UTC (rev 546)
+++ offlineimap/branches/twisted/offlineimap/folder/IMAP.py 2003-07-30 15:10:49 UTC (rev 547)
@@ -125,8 +125,8 @@
data = message[key][0]
i = data.index('BODY')
while 1:
- if type(i) == type(''):
- return data[i].replate("\r\n", "\n")
+ if type(data[i]) == type(''):
+ return data[i].replace("\r\n", "\n")
i += 1
def getmessageflags(self, uid):
Modified: offlineimap/branches/twisted/offlineimap/folder/LocalStatus.py
==============================================================================
--- offlineimap/branches/twisted/offlineimap/folder/LocalStatus.py 2003-07-29 15:39:31 UTC (rev 546)
+++ offlineimap/branches/twisted/offlineimap/folder/LocalStatus.py 2003-07-30 15:10:49 UTC (rev 547)
@@ -103,15 +103,15 @@
def savemessage(self, uid, content, flags):
if uid < 0:
# We cannot assign a uid.
- return uid
+ return rd(uid)
if uid in self.messagelist: # already have it
self.savemessageflags(uid, flags)
- return uid
+ return rd(uid)
self.messagelist[uid] = {'uid': uid, 'flags': flags}
self.autosave()
- return uid
+ return rd(uid)
def getmessageflags(self, uid):
return self.messagelist[uid]['flags']
Modified: offlineimap/branches/twisted/offlineimap/folder/Maildir.py
==============================================================================
--- offlineimap/branches/twisted/offlineimap/folder/Maildir.py 2003-07-29 15:39:31 UTC (rev 546)
+++ offlineimap/branches/twisted/offlineimap/folder/Maildir.py 2003-07-30 15:10:49 UTC (rev 547)
@@ -133,11 +133,11 @@
(repr(flags), repr(content)))
if uid < 0:
# We cannot assign a new uid.
- return uid
+ return rd(uid)
if uid in self.messagelist:
# We already have it.
self.savemessageflags(uid, flags)
- return uid
+ return rd(uid)
if 'S' in flags:
# If a message has been seen, it goes into the cur
# directory. CR debian#152482, [complete.org #4]
@@ -177,7 +177,7 @@
'filename': os.path.join(newdir, messagename)}
self.savemessageflags(uid, flags)
ui.debug('maildir', 'savemessage: returning uid %d' % uid)
- return uid
+ return rd(uid)
def getmessageflags(self, uid):
return self.messagelist[uid]['flags']