[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML message format draft



Hi

On Fri 07-Feb-2003 at 03:07:57PM +0000, Graham Klyne wrote:
> 
> I mean email addresses like this:
> 
>     groupname: local1@domain1, local2@domain2 ;
> 
> (This is an often-overlooked feature of RFC 2822.)

Oh, OK, I think I need to do some background reading!

> >One other issue that has come up for me is the situation when XML
> >is being used to generate plain text emails -- using case
> >sensitive element names saves writing code to generate headers
> >with the correct case from all lower case XML elements -- what do
> >you think about this?
> 
> Er, I don't see the problem here.  RFC2822 header field names are
> case insensitive, so the corresponding XML element names could be
> used as-is.

But is is good practive to produce email headers that are lower
case?

This issue has come up is when we have wanted to produce XML
templates for generating email, for example:

  <From
    petal:define="config here/config --flo.plugin.Account"
    petal:contents="config/mail_from">newsletter@xxxxxxxxx</From>

  <To
    petal:contents="here/ticket/email">fred.flintstone@xxxxxxxxx</To>

Here the element names are in the case thet we want the email
headers to be generated in. We could use all lowercase element names
but then we would want to write some code to 'correct' the case of
the headers just because no one else generates lower case headers
(have you ever seen any?).

Chris

PS I did try lowercasing all the headers in this email but my MUA
(mutt) corrected them for me! 

-- 
Chris Croome                               <chris@xxxxxxxxxxxxxxxxxxx>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
everything else                               http://chris.croome.net/