Mark Sapiro wrote:
>Giuliano wrote:
>>
>>On 17 Mar 2006, at 06:37, Mark Sapiro wrote:
>>
>>> I agree that it's a bug, but I think the primary bug is in an MUA that
>>> is generating a reply to mail
>>>
>>> From: [EMAIL PROTECTED]
>>>
>>> and addresses it
>>>
>>> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>>>
>>
>>Not exactly, it does only add the local_part and without quotes.
>
>
>But does it ever do it in the case we are concerned with? Namely where
>the message is
>
>From: [EMAIL PROTECTED]
>
>Note that the original regexp works as long as the MUA added stuff
>doesn't contain '+'.
To clarify, yes I see in the OP that the added 'real name' only
contains the local part, but it was quoted in the OP, so does or does
not the MUA put quotes around it?
In any case, I've tested
VERP_CONFIRM_REGEXP = r'(.*<)?(?P<addr>[^+]+?)\+(?P<cookie>[EMAIL
PROTECTED])@.*$'
against various forms, with and without quotes, and I think it's good,
but I'd still like more feedback.
I'v also tested all these:
VERP_CONFIRM_REGEXP = \
r'^(\s*.*)?(?P<addr>[^+]+?)\+(?P<cookie>[EMAIL PROTECTED])@.*$'
VERP_CONFIRM_REGEXP = r'^(.*)?(?P<addr>[^+]+?)\+(?P<cookie>[EMAIL
PROTECTED])@.*$'
VERP_CONFIRM_REGEXP = r'(.*)?(?P<addr>[^+]+?)\+(?P<cookie>[EMAIL
PROTECTED])@.*$'
VERP_CONFIRM_REGEXP = r'?(?P<addr>[^+]+?)\+(?P<cookie>[EMAIL PROTECTED])@.*$'
and only the first works (for cookie, but not addr). I'm not sure why
the second and third don't work, but they and the fourth all give
raise error, v # invalid expression
sre_constants.error: nothing to repeat
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives:
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp