From: Thomas Roessler Date: Mon, 3 Nov 2003 10:30:58 +0000 (+0000) Subject: Fix a logic flaw in attachment saving. X-Git-Tag: mutt-1-5-5-rel~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be93e41b06c6e3637fa281496b123fc675b53908;p=mutt Fix a logic flaw in attachment saving. --- diff --git a/attach.c b/attach.c index 4cda1702..06dc12b3 100644 --- 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;