summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-01-10 17:53:09 -0800
committerKevin McCarthy <kevin@8t8.us>2022-01-13 14:11:49 -0800
commit4eff60496b87cbd09e1539525219885aa07bd945 (patch)
tree1fd324015bbfb966c6cce0e12bd014f8e5b28ab1 /init.c
parent9c1ce59874ce1c8e97d0c5bd71847596dafb1d50 (diff)
Force resort_init if $reply_regexp changes.
Simply changing real_subj isn't enough to make sure the change is reflected in the current index. There may actually be a more subtle way to achieve this, but for now I'll just dump the subj_hash and force rethreading.
Diffstat (limited to 'init.c')
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index 7f53fe9d..ebc2a484 100644
--- a/init.c
+++ b/init.c
@@ -2585,6 +2585,7 @@ static int parse_set (BUFFER *tmp, BUFFER *s, union pointer_long_t udata, BUFFER
regmatch_t pmatch[1];
int i;
+ hash_destroy (&Context->subj_hash, NULL);
for (i = 0; i < Context->msgcount; i++)
{
ENVELOPE *cur_env = Context->hdrs[i]->env;