]> granicus.if.org Git - mutt/commitdiff
Fix #2272.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2006 11:38:08 +0000 (11:38 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2006 11:38:08 +0000 (11:38 +0000)
crypt.c

diff --git a/crypt.c b/crypt.c
index e3ef2d3e6461912b0438345ffccfaefa5c32d508..473e099aef75495ff82d587e2fd2c4daf694ce49 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -630,7 +630,7 @@ void crypt_extract_keys_from_messages (HEADER * h)
          fflush(fpout);
 
           if (Context->hdrs[Context->v2r[i]]->env->from)
-           tmp = mutt_expand_aliases (h->env->from);
+           tmp = mutt_expand_aliases (Context->hdrs[Context->v2r[i]]->env->from);
          else if (Context->hdrs[Context->v2r[i]]->env->sender)
            tmp = mutt_expand_aliases (Context->hdrs[Context->v2r[i]]
                                                     ->env->sender);