commit 5d259b6d5ab23c532be6160d151b6fb5e3bf510b
parent 3ad43ddd0d3325f2e3d6d4a4dbd6492a6b103a27
Author: wwp <subscript@free.fr>
Date: Thu, 21 Sep 2023 14:41:39 +0200
fix using a custom header in found_in_addressbook match expressions
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/matcher.c b/src/matcher.c
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 2002-2014 by the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 2002-2023 by the Claws Mail Team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,7 +14,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#ifdef HAVE_CONFIG_H
@@ -1548,10 +1547,10 @@ static gboolean matcherlist_match_headers(MatcherList *matchers, FILE *fp)
else
match = MATCH_ONE;
} else {
- /* further call to matcherprop_match_one_header() can't match
- and it irrelevant, so: don't alter the match result */
- procheader_header_free(header);
- continue;
+ if (!header)
+ continue;
+ /* matching one address header exactly, is that the right one?
+ further call to matcherprop_match_one_header() will tell us */
}
procheader_header_free(header);
}