/offlineimap/head: changeset 446
Prepping for 0.99.13 -- fixed some niggling bugs
This commit is contained in:
parent
79ab74a418
commit
ce02e1c514
@ -18,4 +18,4 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
from offlineimap import init
|
||||
init.startup('3.99.12')
|
||||
init.startup('3.99.13')
|
||||
|
@ -18,4 +18,4 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
from offlineimap import init
|
||||
init.startup('3.99.12')
|
||||
init.startup('3.99.13')
|
||||
|
@ -19,7 +19,7 @@
|
||||
from Base import BaseFolder
|
||||
from offlineimap import imaputil, imaplib
|
||||
from offlineimap.ui import UIBase
|
||||
import rfc822, time, string, random, binascii
|
||||
import rfc822, time, string, random, binascii, re
|
||||
from StringIO import StringIO
|
||||
from copy import copy
|
||||
|
||||
@ -69,7 +69,7 @@ class IMAPFolder(BaseFolder):
|
||||
|
||||
try:
|
||||
# Primes untagged_responses
|
||||
assert(imapobj.select(self.getfullname(), readonly = 1)[0] == 'OK')
|
||||
imapobj.select(self.getfullname(), readonly = 1)
|
||||
try:
|
||||
# Some mail servers do not return an EXISTS response if
|
||||
# the folder is empty.
|
||||
@ -174,7 +174,7 @@ class IMAPFolder(BaseFolder):
|
||||
# but some IMAP servers nonetheless choke on 1902.
|
||||
date = imaplib.Time2Internaldate(time.localtime())
|
||||
|
||||
content = re.sub("[^\r]\n", "\r\n", content)
|
||||
content = re.sub("([^\r])\n", "\\1\r\n", content)
|
||||
|
||||
(headername, headervalue) = self.savemessage_getnewheader(content)
|
||||
content = self.savemessage_addheader(content, headername,
|
||||
|
@ -157,7 +157,10 @@ class IMAPRepository(BaseRepository):
|
||||
imapobj = self.imapserver.acquireconnection()
|
||||
try:
|
||||
for foldername in self.folderincludes:
|
||||
if imapobj.select(foldername, readonly = 1)[0] == 'OK':
|
||||
try:
|
||||
imapobj.select(foldername, readonly = 1)
|
||||
except ValueError:
|
||||
continue
|
||||
retval.append(self.getfoldertype()(self.imapserver,
|
||||
foldername,
|
||||
self.nametrans(foldername),
|
||||
|
@ -1,8 +1,8 @@
|
||||
productname = 'OfflineIMAP'
|
||||
versionstr = "3.99.12"
|
||||
revno = long('$Rev: 439 $'[6:-2])
|
||||
versionstr = "3.99.13"
|
||||
revno = long('$Rev: 446 $'[6:-2])
|
||||
revstr = "Rev %d" % revno
|
||||
datestr = '$Date: 2003-04-17 16:16:00 -0500 (Thu, 17 Apr 2003) $'
|
||||
datestr = '$Date: 2003-04-17 21:06:04 -0500 (Thu, 17 Apr 2003) $'
|
||||
|
||||
versionlist = versionstr.split(".")
|
||||
major = versionlist[0]
|
||||
|
Loading…
Reference in New Issue
Block a user