procmail
[Top] [All Lists]

Re: mail headers

2009-05-26 13:58:05
On 05/26/2009 08:25 PM, Alex Rodriguez wrote:
Hello:

I’ve noticed that not all mail headers are the same; specifically with the “from” header. On some messages it’s followed by a colon “From:” on others it is not “From”.

Which program is responsible for it: MDA (Procmail) or MTA (Sendmail)?

Or perhaps the headers are passed exactly ad they are received?

"From:" (with colon) is what the MUA (the mailclient program used by the
user) has entered in the message, together with the "Subject:" etc.

"From " (without colon) is added by the MDA, with info provided
by the MTA: often it is the value of the "MAIL FROM" smtp command
(but not always).

To make the difference clear, it is often referred to with "From_" using
an underscore to emphasise the presence of a space instead of a colon.
In the "mbox" format for storing mail a line starting with "From "
signals the beginning of a new mail message. Therefor, any line inside
a mail message that accidently starts with the five letters "From "
is escaped by prepending it with a greater-then sign ">From ...".

Here is a good description of most headers, and how to interpret them:

http://www.expita.com/header1.html


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • mail headers, Alex Rodriguez
    • Re: mail headers, Paul Bijnens <=