[Mailman-Users] Implicit destination

Mark Sapiro mark at msapiro.net
Thu Dec 13 01:00:18 CET 2007


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: "list at icpsr.umich.edu" <'list at icpsr.umich.edu'>
>>>
>>>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, 
>
>     <'list at icpsr.umich.edu'>
>
>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: "list at icpsr.umich.edu" <'list at icpsr.umich.edu'>
>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 <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list