diff --git a/filter/filter.c b/filter/filter.c index 3bb21e68..5faabfef 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -557,5 +557,10 @@ filters_postconfig(void) int filter_same(struct filter *new, struct filter *old) { + if (old == new) /* Handle FILTER_ACCEPT and FILTER_REJECT */ + return 1; + if (old == FILTER_ACCEPT || old == FILTER_REJECT || + new == FILTER_ACCEPT || new == FILTER_REJECT) + return 0; return i_same(new->root, old->root); }