Re: [Email-SIG] question on syntax of 'group' in address-list

2011-05-16 Thread Glenn Linderman

On 5/16/2011 1:40 PM, R. David Murray wrote:

I've gone through the RFCs and done some additional googling,
and haven't been able to confirm the answer to this question: what
exactly is the syntax when a group is included in an address-list? (See
http://tools.ietf.org/html/rfc5322#section-3.4).  The question is, if
another address follows the group, are they separated from each other by
';' or by ';,'?  The ABNF seems to call for the latter, but I can't find
any example showing it.  I'm sure that I should accept both on input,
but I'd like to generate the correct form.  Does anyone have confirmation
or contradiction for my interpretation?


The only instance of group syntax that I have ever seen used is when a 
message has all Bcc: recipients, and the email client wants to stick 
something into the To: line to be pretty.  I turned that off in my 
Mozilla email clients after seeing it.  And so in that usage, the group 
was never used with other recipients.


However, I totally agree that if it were, that the ABNF would call for  
both ; and , as the ; is part of the group syntax, and the , is the 
separator syntax.


Would look rather stupid, though.

--
Glenn

Experience is that marvelous thing that enables you to recognize a
mistake when you make it again. -- Franklin Jones
___
Email-SIG mailing list
Email-SIG@python.org
Your options: 
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com

[Email-SIG] question on syntax of 'group' in address-list

2011-05-16 Thread Stephen J. Turnbull
R. David Murray writes:
  I've gone through the RFCs and done some additional googling,
  and haven't been able to confirm the answer to this question: what
  exactly is the syntax when a group is included in an address-list? (See
  http://tools.ietf.org/html/rfc5322#section-3.4).  The question is, if
  another address follows the group, are they separated from each other by
  ';' or by ';,'?  The ABNF seems to call for the latter, but I can't find
  any example showing it.  I'm sure that I should accept both on input,

Why?  I mean, YAGNI.

  but I'd like to generate the correct form.  Does anyone have confirmation
  or contradiction for my interpretation?

From RFC 822.  The Cc field contains two groups, separated by ,,
with each group terminated by ;.

A.3.3. About as complex as you're going to get

 
 Date :  27 Aug 76 0932 PDT
 From :  Ken Davis kda...@this-host.this-net
 Subject  :  Re: The Syntax in the RFC
 Sender   :  KSecy@Other-Host
 Reply-To :  Sam.Irving@Reg.Organization
 To   :  George Jones gr...@some-reg.an-Org,
 Al.Neuman@MAD.Publisher
 cc   :  Important folk:
   Tom Softwood ba...@tree.root,
   Sam Irving@Other-Host;,
 Standard Distribution:
   /main/davis/people/standard@Other-Host,
   Jonesstandard.dist.3@Tops-20-Host;
 Comment  :  Sam is away on business. He asked me to handle
 his mail for him.  He'll be able to provide  a
 more  accurate  explanation  when  he  returns
 next week.
 In-Reply-To: some.string@DBM.Group, George's message
 X-Special-action:  This is a sample of user-defined field-
 names.  There could also be a field-name
 Special-action, but its name might later be
 preempted
 Message-ID: 4231.629.XYzi-What@Other-Host

___
Email-SIG mailing list
Email-SIG@python.org
Your options: 
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com