diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-10 09:30:39 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-10 09:30:39 +0000 |
commit | 9d7a068b02086edc196cd68fea917040ecd428f9 (patch) | |
tree | 9775226a3af13ec30713571644be7b2d59c45fae /commands.c | |
parent | a77113ca0ba02cde2bdddda766130ad4d40718d7 (diff) |
Use the same address with take-alias and display-address.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |