summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-06-10 09:30:39 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-06-10 09:30:39 +0000
commit9d7a068b02086edc196cd68fea917040ecd428f9 (patch)
tree9775226a3af13ec30713571644be7b2d59c45fae /commands.c
parenta77113ca0ba02cde2bdddda766130ad4d40718d7 (diff)
Use the same address with take-alias and display-address.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 86592db2..a204ea02 100644
--- a/commands.c
+++ b/commands.c
@@ -455,13 +455,19 @@ void mutt_enter_command (void)
set_option (OPTNEEDRESORT);
}
-void mutt_display_address (ADDRESS *adr)
+void mutt_display_address (ENVELOPE *env)
{
+ char *pfx = NULL;
char buf[SHORT_STRING];
+ ADDRESS *adr = NULL;
+
+ adr = mutt_get_address (env, &pfx);
+
+ if (!adr) return;
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), adr);
- mutt_message ("%s", buf);
+ mutt_message ("%s: %s", pfx, buf);
}
static void set_copy_flags(HEADER *hdr, int decode, int decrypt, int *cmflags, int *chflags)