On 2002.01.03, in <[EMAIL PROTECTED]>,
"Thorsten Haude" <[EMAIL PROTECTED]> wrote:
>
> Well done, David, now I'm back to step one, $from-wise. Why is 'set
> from=' different from 'my_hdr From: '?
$from was introduced in pre-1.0 times to work around problems with hooks
and my_hdr. Something about setting "my_hdr From:" in hooks and being
able to use $reverse_name properly. Once I understood it all, but these
days I have to check the ChangeLog and trust in whatever it says. That's
progress! :)
Tue Jul 20 20:09:13 1999 Thomas Roessler <[EMAIL PROTECTED]>
* init.h, send.c, alias.c, globals.h, init.c:
As Aaron Schrab noted, patch-0.95.6.tlr.reverse_name.1 broke the use
of my_hdr from send-hooks. This patch introduces a new variable
$from which can be used to use a default sender address; to make
this possible, a new variable class DT_ADDR is defined.
We now have the following algorithm for determining the from
address:
- $from is used as the default from address, if defined. Otherwise,
the local user name and (if the user wishes so) the local domain
are used.
- This address can be overridden by $reverse_name, if set.
- Now, send-hooks are evaluated.
- Afterwards, user headers are evaluated. In this step, the from
header can be overridden using my_hdr From:.
- When there is no real name, $realname is used for it. Note that,
when the default from header is used and $from defines a real
name, it takes precedence over $realname.
A later change makes $from's value default to the value of the EMAIL
environment variable. This modifies the first step of this algorithm.
--
-D. [EMAIL PROTECTED] NSIT University of Chicago