/head: changeset 85
Updated to work better with read-only folders
This commit is contained in:
parent
98981a6cf0
commit
a82eb46871
@ -1,3 +1,9 @@
|
||||
offlineimap (2.0.5) unstable; urgency=low
|
||||
|
||||
* Placeholder
|
||||
|
||||
-- John Goerzen <jgoerzen@complete.org> Fri, 5 Jul 2002 09:21:52 -0500
|
||||
|
||||
offlineimap (2.0.4) unstable; urgency=low
|
||||
|
||||
* Made OfflineIMAP at least rudimentarily compatible with read-only
|
||||
|
@ -159,7 +159,7 @@ localfolders = ~/Test
|
||||
# Example 3: Using a regular expression to exclude Trash and all folders
|
||||
# containing the characters "Del".
|
||||
#
|
||||
# folderfilter = lambda foldername: not re.search('(^Trash$|Del)')
|
||||
# folderfilter = lambda foldername: not re.search('(^Trash$|Del)', foldername)
|
||||
#
|
||||
# If folderfilter is not specified, ALL remote folders will be
|
||||
# synchronized.
|
||||
|
@ -47,6 +47,8 @@ class IMAPFolder(BaseFolder):
|
||||
imapobj = self.imapserver.acquireconnection()
|
||||
try:
|
||||
x = imapobj.status(self.getfullname(), '(UIDVALIDITY)')[1][0]
|
||||
except imapobj.readonly:
|
||||
pass
|
||||
finally:
|
||||
self.imapserver.releaseconnection(imapobj)
|
||||
uidstring = imaputil.imapsplit(x)[1]
|
||||
@ -60,7 +62,10 @@ class IMAPFolder(BaseFolder):
|
||||
except imapobj.readonly:
|
||||
pass
|
||||
self.messagelist = {}
|
||||
try:
|
||||
response = imapobj.status(self.getfullname(), '(MESSAGES)')[1][0]
|
||||
except imapobj.readonly:
|
||||
pass
|
||||
result = imaputil.imapsplit(response)[1]
|
||||
maxmsgid = long(imaputil.flags2hash(result)['MESSAGES'])
|
||||
if (maxmsgid < 1):
|
||||
|
@ -1,5 +1,5 @@
|
||||
productname = 'OfflineIMAP'
|
||||
versionstr = "2.0.3"
|
||||
versionstr = "2.0.5"
|
||||
|
||||
versionlist = versionstr.split(".")
|
||||
major = versionlist[0]
|
||||
|
Loading…
Reference in New Issue
Block a user