summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-06-08 09:17:25 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-06-08 09:17:25 +0000
commit57c930bf79e06c485142efeb62ffb1e9d8fe3d3b (patch)
treec3c1e876454aead42f16023f45b23a73961a03d6 /attach.c
parent1a5381e07e97fe482c2b3a7c75f99938f0b105d4 (diff)
Mutt 0.92.9i.mutt-0-92-9i
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/attach.c b/attach.c
index 6ee4631e..4345d093 100644
--- a/attach.c
+++ b/attach.c
@@ -420,6 +420,9 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag)
if (a->description)
strfcpy (descrip, a->description, sizeof (descrip));
+ else if (a->filename)
+ snprintf (descrip, sizeof (descrip), "---Attachment: %s : %s",
+ a->filename, type);
else
snprintf (descrip, sizeof (descrip), "---Attachment: %s", type);
}