]> granicus.if.org Git - mutt/commit
As Aaron Schrab noted, patch-0.95.6.tlr.reverse_name.1 broke the use
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 20 Jul 1999 09:38:07 +0000 (09:38 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 20 Jul 1999 09:38:07 +0000 (09:38 +0000)
commita71df9dc6c7ee61b7259ec7ab3b50787f96d90b4
tree6c6283135ea82cfdd7d25c9a1a0a000ade83249c
parentd0b3c76ae7658317eefe99de8b281d80ad36bc02
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.
alias.c
globals.h
init.c
init.h
send.c