aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmime/message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 3ba4d34c4..a9dbdb245 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -698,6 +698,12 @@ rspamd_message_parse (struct rspamd_task *task)
task->message_id = "undef";
}
+ if (!task->subject) {
+ hdrs = rspamd_message_get_header_array (task, "Subject", FALSE);
+ rh = g_ptr_array_index (hdrs, 0);
+ task->subject = rh->decoded;
+ }
+
debug_task ("found %ud parts in message", task->parts->len);
if (task->queue_id == NULL) {
task->queue_id = "undef";