/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
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
from offlineimap import init
|
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
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
from offlineimap import init
|
from offlineimap import init
|
||||||
init.startup('3.99.12')
|
init.startup('3.99.13')
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
from Base import BaseFolder
|
from Base import BaseFolder
|
||||||
from offlineimap import imaputil, imaplib
|
from offlineimap import imaputil, imaplib
|
||||||
from offlineimap.ui import UIBase
|
from offlineimap.ui import UIBase
|
||||||
import rfc822, time, string, random, binascii
|
import rfc822, time, string, random, binascii, re
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
from copy import copy
|
from copy import copy
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Primes untagged_responses
|
# Primes untagged_responses
|
||||||
assert(imapobj.select(self.getfullname(), readonly = 1)[0] == 'OK')
|
imapobj.select(self.getfullname(), readonly = 1)
|
||||||
try:
|
try:
|
||||||
# Some mail servers do not return an EXISTS response if
|
# Some mail servers do not return an EXISTS response if
|
||||||
# the folder is empty.
|
# the folder is empty.
|
||||||
@ -174,7 +174,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
# but some IMAP servers nonetheless choke on 1902.
|
# but some IMAP servers nonetheless choke on 1902.
|
||||||
date = imaplib.Time2Internaldate(time.localtime())
|
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)
|
(headername, headervalue) = self.savemessage_getnewheader(content)
|
||||||
content = self.savemessage_addheader(content, headername,
|
content = self.savemessage_addheader(content, headername,
|
||||||
|
@ -157,11 +157,14 @@ class IMAPRepository(BaseRepository):
|
|||||||
imapobj = self.imapserver.acquireconnection()
|
imapobj = self.imapserver.acquireconnection()
|
||||||
try:
|
try:
|
||||||
for foldername in self.folderincludes:
|
for foldername in self.folderincludes:
|
||||||
if imapobj.select(foldername, readonly = 1)[0] == 'OK':
|
try:
|
||||||
retval.append(self.getfoldertype()(self.imapserver,
|
imapobj.select(foldername, readonly = 1)
|
||||||
foldername,
|
except ValueError:
|
||||||
self.nametrans(foldername),
|
continue
|
||||||
self.accountname, self))
|
retval.append(self.getfoldertype()(self.imapserver,
|
||||||
|
foldername,
|
||||||
|
self.nametrans(foldername),
|
||||||
|
self.accountname, self))
|
||||||
finally:
|
finally:
|
||||||
self.imapserver.releaseconnection(imapobj)
|
self.imapserver.releaseconnection(imapobj)
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
productname = 'OfflineIMAP'
|
productname = 'OfflineIMAP'
|
||||||
versionstr = "3.99.12"
|
versionstr = "3.99.13"
|
||||||
revno = long('$Rev: 439 $'[6:-2])
|
revno = long('$Rev: 446 $'[6:-2])
|
||||||
revstr = "Rev %d" % revno
|
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(".")
|
versionlist = versionstr.split(".")
|
||||||
major = versionlist[0]
|
major = versionlist[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user