/offlineimap/head: changeset 446

Prepping for 0.99.13 -- fixed some niggling bugs
This commit is contained in:
jgoerzen 2003-04-18 08:06:04 +01:00
parent 79ab74a418
commit ce02e1c514
5 changed files with 16 additions and 13 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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,

View File

@ -157,7 +157,10 @@ 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:
imapobj.select(foldername, readonly = 1)
except ValueError:
continue
retval.append(self.getfoldertype()(self.imapserver, retval.append(self.getfoldertype()(self.imapserver,
foldername, foldername,
self.nametrans(foldername), self.nametrans(foldername),

View File

@ -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]