Changeset 1603:63b61a63a908
- Timestamp:
- 2000-03-04 00:40:52 (9 years ago)
- Author:
- Thomas Roessler <roessler@…>
- Branch:
- HEAD
- Message:
-
Unify alias expansion.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1601
|
r1603
|
|
| 140 | 140 | } |
| 141 | 141 | |
| | 142 | void mutt_expand_aliases_env (ENVELOPE *env) |
| | 143 | { |
| | 144 | env->from = mutt_expand_aliases (env->from); |
| | 145 | env->to = mutt_expand_aliases (env->to); |
| | 146 | env->cc = mutt_expand_aliases (env->cc); |
| | 147 | env->bcc = mutt_expand_aliases (env->bcc); |
| | 148 | env->reply_to = mutt_expand_aliases (env->reply_to); |
| | 149 | env->mail_followup_to = mutt_expand_aliases (env->mail_followup_to); |
| | 150 | } |
| | 151 | |
| | 152 | |
| 142 | 153 | /* |
| 143 | 154 | * if someone has an address like |
-
|
r1601
|
r1603
|
|
| 102 | 102 | msg->env = n; |
| 103 | 103 | |
| 104 | | msg->env->from = mutt_expand_aliases (msg->env->from); |
| 105 | | msg->env->to = mutt_expand_aliases (msg->env->to); |
| 106 | | msg->env->cc = mutt_expand_aliases (msg->env->cc); |
| 107 | | msg->env->bcc = mutt_expand_aliases (msg->env->bcc); |
| 108 | | msg->env->reply_to = mutt_expand_aliases (msg->env->reply_to); |
| 109 | | msg->env->mail_followup_to = mutt_expand_aliases (msg->env->mail_followup_to); |
| 110 | | |
| | 104 | mutt_expand_aliases_env (msg->env); |
| | 105 | |
| 111 | 106 | /* search through the user defined headers added to see if either a |
| 112 | 107 | * fcc: or attach-file: field was specified. |
-
|
r1601
|
r1603
|
|
| 145 | 145 | void mutt_curses_error (const char *, ...); |
| 146 | 146 | void mutt_enter_command (void); |
| | 147 | void mutt_expand_aliases_env (ENVELOPE *); |
| 147 | 148 | void mutt_expand_file_fmt (char *, size_t, const char *, const char *); |
| 148 | 149 | void mutt_expand_fmt (char *, size_t, const char *, const char *); |
-
|
r1601
|
r1603
|
|
| 1043 | 1043 | if (msg) |
| 1044 | 1044 | { |
| 1045 | | msg->env->to = mutt_expand_aliases (msg->env->to); |
| 1046 | | msg->env->cc = mutt_expand_aliases (msg->env->cc); |
| 1047 | | msg->env->bcc = mutt_expand_aliases (msg->env->bcc); |
| | 1045 | mutt_expand_aliases_env (msg->env); |
| 1048 | 1046 | } |
| 1049 | 1047 | else |