[Zope] Worldpilot+Courier problem
Paolo Bizzarri
p.bizzarri@icube.it
Thu, 27 Jul 2000 14:10:55 +0200
Hi everybody,
I have found a strange problem in Worldpilot 1.1.0 alpha.
Basically, I was not able to see a message, because the function that
performs the parsing of the message (namely, the CreateStruct) was
unable to cope with an empty string.
I have traced the problem to the QuotedString expression in WPUtil.
I have changed it from:
QuotedString = re.compile(r'\s*"(?P<String>.*?[^\\](?="))"(?P<Rest>.*)')
to:
QuotedString =
re.compile(r'\s*"(?P<String>.[\\]?[^"]*(?="))"(?P<Rest>.*)')
and it started working regularly.
It is ok that an IMAP server return an empty string ? Or it should give
back a NIL value ?
If so, perhaps is a bug in courier IMAP.
Many thanks for the answers.
Paolo
--
Paolo Bizzarri - Responsabile Marketing I3 Icube Srl
Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia
E-mail: p.bizzarri@icube.it WWW: www.icube.it
Tel: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588