Barry Finkel wrote: >Steve Burling wrote: >>> >>>But as near as I can tell, she *is* putting the list address in the To: >>>field, it's just been munged (presumably by Micro$oft LookOut) to have >>>quotes in funny places. Here's what the To: field looks like from the >>>listname.mbox file (edited to protect the innocent): >>> >>>To: "[EMAIL PROTECTED]" <'[EMAIL PROTECTED]'> >>> >>>Are those unnecessary single quotes inside the "<...>" confusing Mailman? > >And Mark Sapiro replied: > >>Python's email.Utils.parseaddr() returns the single quotes as part of >>the address. >> >>I hate to be in a position of defending LookOut, but are you sure she >>doesn't have the quoted address in her address book entry? >> >>If this can't be fixed at her end, you could put the quoted address in >>the list's acceptable_aliases. > >>From my reading of RFC2821, > > <'[EMAIL PROTECTED]'> > >is invalid. Here is how I parse it, followed by the RFC 2821 >definitions:
It is clearly invalid, no argument about that, but the question was what to do about it. >To: "[EMAIL PROTECTED]" <'[EMAIL PROTECTED]'> >To: [display-name] angle-addr >To: [display-name] "<" addr-spec ">" >To: [display-name] "<" local-part "@" domain ">" > >to = "To:" address-list CRLF >address-list = (address *("," address)) / obs-addr-list >address = mailbox / group >mailbox = name-addr / addr-spec >name-addr = [display-name] angle-addr >display-name = phrase >angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr >addr-spec = local-part "@" domain >local-part = dot-atom / quoted-string / obs-local-part >obs-addr-list = 1*([address] [CFWS] "," [CFWS]) [address] >obs-angle-addr = [CFWS] "<" [obs-route] addr-spec ">" [CFWS] > >Note that > > addr-spec > >does not have apostrophes at each end. BTW, only the edu' part is invalid as only letters, digits and non-leading hyphens can appear in the dot-separated pieces of domain, but the 'list part is a legal local-part. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp