diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-28 10:51:31 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-28 10:51:31 +0000 |
commit | eceebd8868a3bf8052ce904584838e4eaea50fd9 (patch) | |
tree | 889489c7b92d79444689e80d5d9fad650edaf167 | |
parent | 230add97a967cd75726803028e8b509e243d71aa (diff) | |
download | rspamd-eceebd8868a3bf8052ce904584838e4eaea50fd9.tar.gz rspamd-eceebd8868a3bf8052ce904584838e4eaea50fd9.zip |
Preserve order of received headers.
-rw-r--r-- | src/libmime/message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index f59fe4671..15a59978d 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1597,6 +1597,9 @@ process_message (struct rspamd_task *task) cur = g_list_next (cur); } + /* Restore normal order */ + task->received = g_list_reverse (task->received); + /* free the parser (and the stream) */ g_object_unref (parser); } |