X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mh.c;h=0c76feefbd364fd2a401ac003a3539bb8ac0220b;hb=420f3633557ed75a0de989eb065af6e09eed29ba;hp=56265b5fb5efe72dd3c75ccfcaef1d98436e4f83;hpb=f2492164a0ccc27393ea071e6ddc43be0c9b28ad;p=apps%2Fmadmutt.git diff --git a/mh.c b/mh.c index 56265b5..0c76fee 100644 --- a/mh.c +++ b/mh.c @@ -1220,7 +1220,7 @@ static int mh_sync_message (CONTEXT * ctx, int msgno) { HEADER *h = ctx->hdrs[msgno]; - if (h->attach_del) + if (h->attach_del || h->refs_changed || h->irt_changed) if (mh_rewrite_message (ctx, msgno) != 0) return -1; @@ -1231,9 +1231,9 @@ static int maildir_sync_message (CONTEXT * ctx, int msgno) { HEADER *h = ctx->hdrs[msgno]; - if (h->attach_del) + if (h->attach_del || h->refs_changed || h->irt_changed) { - /* when doing attachment deletion, fall back to the MH case. */ + /* when doing attachment deletion/rethreading, fall back to the MH case. */ if (mh_rewrite_message (ctx, msgno) != 0) return (-1); }