ietf-smtp
[Top] [All Lists]

Re: (lack of) message header field ordering

2005-03-11 17:41:08

On Fri March 11 2005 18:10, John C Klensin wrote:

If the rules of 2821 are followed, then there is no
mechanism by which headers can be injected into a message other
than at the beginning, making a message with fields ordered as
   Return-path 
   Received
   Received
   To:
   From:
   Date:
   Received
   Received
   MIME-version

a little dubious.

However,

    Return-path 
    Received
    Received
    Resent-To:
    Resent-From:
    Resent-Date:
    Received
    Received
    To:
    From:
    Date:
    MIME-version

is not at all dubious (ignoring the missing colons and empty field
bodies, of course).  I believe that's what's behind the 2822 ABNF
field grouping.

I believe, however, that 2821 section 3.8 and its subsections
provides a mechanism whereby all sorts of things, including
reordering of fields within the message header, can happen.