]> granicus.if.org Git - mutt/commitdiff
When displaying a deleted attachment's information, present the file
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 17 May 2000 10:43:26 +0000 (10:43 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 17 May 2000 10:43:26 +0000 (10:43 +0000)
name if it is present.  Suggested by Pete Wenzel <pete@stc.com>.

handler.c

index decc152d79fe4c7d9a61e98d6af36b99c4f56fde..1e0d7df61f0cfc9c97e93c1068a46d7ec14b32b5 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -1249,6 +1249,9 @@ static void external_body_handler (BODY *b, STATE *s)
 
       if (expire != -1)
        state_printf (s, _("[-- on %s --]\n"), expiration);
+      if (b->parts->filename)
+       state_printf (s, _("[-- name: %s --]\n"), b->parts->filename);
+
       mutt_copy_hdr (s->fpin, s->fpout, ftell (s->fpin), b->parts->offset,
                     (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) |
                     CH_DECODE , NULL);