header fields case sensitive?

header fields case sensitive?

am 20.04.2005 18:15:01 von Hans-Peter Sauer

Is matching of the RFC2822 header fields case sensitive?
from = fRom = From?
Please provide a RFC quote if you can.
TIA

--
Stelian Ene
Software Test Engineer

Re: header fields case sensitive?

am 20.04.2005 21:49:37 von Mark Crispin

On Wed, 20 Apr 2005, Stelian Ene wrote:
> Is matching of the RFC2822 header fields case sensitive?

No.

> from = fRom = From?

Yes.

> Please provide a RFC quote if you can.

RFC 2822:
1.2.2. Syntactic notation

This standard uses the Augmented Backus-Naur Form (ABNF) notation
specified in [RFC2234] for the formal definitions of the syntax of
messages. Characters will be specified either by a decimal value
(e.g., the value %d65 for uppercase A and %d97 for lowercase A) or by
a case-insensitive literal value enclosed in quotation marks (e.g.,
"A" for either uppercase or lowercase A). See [RFC2234] for the full
description of the notation.


Field names are defined by literal values, which by the above
specification are case-insensitive.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.