/head: changeset 85

Updated to work better with read-only folders
This commit is contained in:
jgoerzen
2002-07-09 03:23:47 +01:00
parent 98981a6cf0
commit a82eb46871
4 changed files with 14 additions and 3 deletions

View File

@ -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 = {}
response = imapobj.status(self.getfullname(), '(MESSAGES)')[1][0]
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):

View File

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