I would like to know if field repetition are still valid in email
headers.
I have found an old note in RFC-822 (http://tools.ietf.org/html/
rfc822#section-4.1) about this being discouraged:
"This specification permits multiple occurrences of most
fields. Except as noted, their interpretation is not
specified here, and their use is discouraged."
Do you know if there is any update about this.
More precisely I would like to know if fields "From:", "To:" and
"Subject:" are allowed to be present multiple times in a mail
header ?
Thanks!
I have found the answer in rfc 2822: these fields can only be present
0 or 1 time for subject and to, and 1 time for From.
> More precisely I would like to know if fields "From:", "To:" and
> "Subject:" are allowed to be present multiple times in a mail
> header ?
There's a nice table in RFC 5322 that shows the minimum and maximum
allowed counts for various headers.
Specifically, From: must appear exactly once, and To: and Subject:
can appear once or zero times.
(I don't think RFC 5322 is actually the standard just yet, but
it probably will be at some point.)
Regards,
David.
Good, but keep in mind that whatever the RFCs say, you have to decide
what to if they appear multiple times, and "ignore/reject the mail" is
most likely not the right answer.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .