> One question that ye may be able to answer is whether case is important.
> RFC822 seems to say that it's not, but agents seem to consistently use From,
> To, etc, with the first letter in uppercase and subsequent letter lowercase.
> Is this the standard or should I strtolower() or strtoupper() when I'm
> parsing, just in case?
You must ignore case when parsing. See RFC 822 3.4.7. CASE INDEPENDENCE.
Which part of this do you not understand?
> What about languages - is English the standard for
> headers?
RFC 2047 Message Header Extensions for Non-ASCII Text
The header field-names (From, To, Subject etc) are English text, while the
header bodies can be non-English, as per 2047.
> I presume it is, but I've presumed wrong in the past. Also, are
> there any considerations I should make for broken headers - i.e. are the
> "standard" headers (From, To, Subject, etc) *always* present, or are there
> some situations that are going to break my resender?
As a minimum, some kind of originator field, and some kind of receiver
field must be present. Everything else is optional.
Sorry to point you back to the RFC's. Especially the mail related ones
are quite heavy, but there is just too much mail software out there
which is broken because the authors didn't read RFC's.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!