summaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 9cc37ea7e..8606be77c 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -150,7 +150,11 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task)
return 0;
}
msg_debug ("process_regexp: checking header regexp: %s = /%s/", re->header, re->regexp_text);
+#ifdef GMIME24
+ headerv = (char *)g_mime_object_get_header (GMIME_OBJECT (task->message), re->header);
+#else
headerv = (char *)g_mime_message_get_header (task->message, re->header);
+#endif
if (headerv == NULL) {
return 0;
}