]> granicus.if.org Git - mutt/commitdiff
Fix mutt/2186.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 21 Feb 2006 08:10:15 +0000 (08:10 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 21 Feb 2006 08:10:15 +0000 (08:10 +0000)
attach.c

index 74377b0d7c9026d8219017402b5ff87d1b89f6af..8c3edf2e5df894e19dab463109fe82eb7d0ecce4 100644 (file)
--- a/attach.c
+++ b/attach.c
@@ -782,7 +782,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
        return -1;
       }
       if (ctx.magic == M_MBOX || ctx.magic == M_MMDF)
-       chflags = CH_FROM;
+       chflags = CH_FROM | CH_UPDATE_LEN;
       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)