summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2006-02-21 08:10:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>2006-02-21 08:10:15 +0000
commit34b4962acf50f6a430ee93635e8d1f8b90a2bd50 (patch)
tree806a1fa5ed3df5976b5be7b51956aba8c0d5ab85 /attach.c
parent961c65480f10026c940669aa5f1564633f3a8142 (diff)
Fix mutt/2186.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attach.c b/attach.c
index 74377b0d..8c3edf2e 100644
--- 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)