Message87656
OK, I missed the initial caret in the regex. The mustquote regex is
listing everything that needn't be quoted, and then negating. I still
think it's wrong, though. According to BNF given in the Formal Syntax
section of RFC 3501, you must must quote atom-specials, which are
defined thus:
atom-specials = "(" / ")" / "{" / SP / CTL / list-wildcards /
quoted-specials / resp-specials
list-wildcards = "%" / "*"
quoted-specials = DQUOTE / "\"
resp-specials = "]"
So I think this regex should do it:
mustquote = re.compile(r'[()\s%*"]|"{"|"\\"|"\]"')
Changing status to bug. |
|
Date |
User |
Action |
Args |
2009-05-12 20:00:44 | dmbaggett | set | recipients:
+ dmbaggett, anadelonbrin |
2009-05-12 20:00:44 | dmbaggett | set | messageid: <1242158444.07.0.868789444011.issue917120@psf.upfronthosting.co.za> |
2009-05-12 20:00:43 | dmbaggett | link | issue917120 messages |
2009-05-12 20:00:42 | dmbaggett | create | |
|