From 20c9f1a09bf339a3fd38b00c4c38dda4e49ba3ef Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 18 Feb 1999 08:31:39 +0000 Subject: [PATCH] Expand aliases on the From header. --- headers.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/headers.c b/headers.c index a45d2d3f..68a5813a 100644 --- a/headers.c +++ b/headers.c @@ -101,14 +101,17 @@ void mutt_edit_headers (const char *editor, mutt_free_envelope (&msg->env); msg->env = n; + msg->env->from = mutt_expand_aliases (msg->env->from); msg->env->to = mutt_expand_aliases (msg->env->to); msg->env->cc = mutt_expand_aliases (msg->env->cc); msg->env->bcc = mutt_expand_aliases (msg->env->bcc); msg->env->reply_to = mutt_expand_aliases (msg->env->reply_to); msg->env->mail_followup_to = mutt_expand_aliases (msg->env->mail_followup_to); - /* search through the user defined headers added to see if either a * fcc: - or attach-file: field was specified. */ + /* search through the user defined headers added to see if either a + * fcc: or attach-file: field was specified. + */ + cur = msg->env->userhdrs; while (cur) { -- 2.40.0