Em Sex 05 Nov 2004 18:30, Rafael �vila de Esp�ndola escreveu: > The attached patch adds a second expression that handles this case.
Maybe I should have added a debug info if both matches fails... The alternative patch with the message is attached. Sorry for the duplicated message. Rafael �vila de Esp�ndola
diff -ru freevo-mail-0.6/src/mail/imap.py freevo-mail-0.6-new/src/mail/imap.py
--- freevo-mail-0.6/src/mail/imap.py 2004-05-19 10:21:32.000000000 -0300
+++ freevo-mail-0.6-new/src/mail/imap.py 2004-11-05 21:37:57.000000000 -0200
@@ -104,8 +104,13 @@
for f in data:
reg = re.match('\(.*\) \".+\" (.*)' , f)
- val = reg.groups()[0].replace('"','')
- foldernames += [ val ]
+ if reg == None:
+ reg = re.match('\(.*\)\s+\S+\s+(.*)' , f)
+ if reg != None:
+ val = reg.groups()[0].replace('"','')
+ foldernames += [ val ]
+ else:
+ _debug_('Unknown folder format')
return foldernames
pgp8h1LUvuDwd.pgp
Description: PGP signature
