]> granicus.if.org Git - mutt/commitdiff
Fix a logic flaw in attachment saving.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 3 Nov 2003 10:30:58 +0000 (10:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 3 Nov 2003 10:30:58 +0000 (10:30 +0000)
attach.c

index 4cda1702c1997a6e1f61d8b4b703a980b875a69a..06dc12b3e937497dea63d0ecb1b41f8a66bf58e4 100644 (file)
--- a/attach.c
+++ b/attach.c
@@ -770,7 +770,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
       chflags |= (ctx.magic == M_MAILDIR ? CH_NOSTATUS : CH_UPDATE);
       if (_mutt_copy_message (msg->fp, fp, hn, hn->content, 0, chflags) == 0 
          && mx_commit_message (msg, &ctx) == 0)
-       mutt_message _("Attachment saved.");
+       r = 0;
       else
        r = -1;