From: Philipp Takacs Date: Sun, 29 Mar 2020 16:20:12 +0000 (+0200) Subject: clear msgflags in folder_delmsg X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=f7d9cd4bee03230dd8839581f772bdf2bdbf3c97;p=mmh clear msgflags in folder_delmsg If a message is moved or deleted the msgflags are cleared now. Therefore the .mh_sequences file will get updated on refile/rmm. --- diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 3165883..b145e0b 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -45,7 +45,7 @@ folder_delmsgs(struct msgs *mp, int hook) } /* If removal was successful, decrement message count */ - unset_exists(mp, msgnum); + clear_msg_flags(mp, msgnum); mp->nummsg--; } diff --git a/test/tests/refile/test-sequences b/test/tests/refile/test-sequences new file mode 100755 index 0000000..329fe60 --- /dev/null +++ b/test/tests/refile/test-sequences @@ -0,0 +1,36 @@ +#!/bin/sh +###################################################### +# +# Test refile +# +###################################################### + +. "$MH_TEST_COMMON" + + +runandcheck "scan +inbox" <