diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-20 09:38:07 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-20 09:38:07 +0000 |
commit | a71df9dc6c7ee61b7259ec7ab3b50787f96d90b4 (patch) | |
tree | 6c6283135ea82cfdd7d25c9a1a0a000ade83249c /globals.h | |
parent | d0b3c76ae7658317eefe99de8b281d80ad36bc02 (diff) |
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.
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ WHERE char Errorbuf[SHORT_STRING]; WHERE char *MuttDotlock; #endif +WHERE ADDRESS *From; + WHERE char *AliasFile; WHERE char *AliasFmt; WHERE char *AttachSep; |