On Fri, Oct 27, 2000 at 03:39:43PM -0700, [EMAIL PROTECTED] wrote:
> Hmm. Maybe I'm confused. How do people think the envelope sender
> value is determined in the first instant? Eg, how does Eudora go from
> a mail in a window to "Mail From: " in SMTP? Or how does qmail-inject
> for that matter?
>

qmail-inject uses environment variables for From (not From:). Depending on your MUA, 
it can use different ones. For example, most text-mode MUAs running in 
the same machine as qmail-inject (my case) use $USER or $LOGNAME.
And the default envelope sender equals "From".
For those who do not use qmail-inject directly (Like those using remote
SMTP with Eudora, to use your example), the "From" is generated by the MUA.
So yes, those cases are "hopeless". "From:" will almost certainly be the base
for "From"
 
> The answer is that it's mostly derived from a parse of the various
> headers in the original mail when it's injected into the MTA. In
> many cases the most likely header that will be used to derive the
> envelope sender will be the From: header. So to suggest that the
> unparsed From: header is a better place to look for the sender
> seems a bit silly to me because in many cases the envelope sender is
> simply a parsed version of the From: header.

Not really. You can have very odd "From:" lines (with 8bit chars, spaces),
but From is (or should always be) a plain old user@domain string. It's
easier to parse, and probably less prone to error.

RC

-- 
+-------------------
| Ricardo Cerqueira  
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| Novis  -  Engenharia ISP / Rede T�cnica 
| P�. Duque Saldanha, 1, 7� E / 1050-094 Lisboa / Portugal
| Tel: +351 2 1010 0000 - Fax: +351 2 1010 4459

PGP signature

Reply via email to