My IMAP server return the following line when queried for the subscribed folders: '(\\NoInferiors) NIL INBOX'
The regular expression that parses it fails to match it since there is no " around NIL. The attached patch adds a second expression that handles this case. Rafael �vila de Esp�ndola
Only in freevo-mail-0.6-new/: build
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 18:24:52.000000000 -0200
@@ -104,6 +104,8 @@
for f in data:
reg = re.match('\(.*\) \".+\" (.*)' , f)
+ if reg == None:
+ reg = re.match('\(.*\)\s+\S+\s+(.*)' , f)
val = reg.groups()[0].replace('"','')
foldernames += [ val ]
pgpOEC0NLhu7g.pgp
Description: PGP signature
