diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-23 15:48:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-23 15:48:43 +0100 |
commit | 0b4c54e21874d6d622ab6820e36071c071e0c3e1 (patch) | |
tree | 6304c29b9a455e7b029ec33a95f1b4fc2ab4f72c /src/libmime/message.c | |
parent | 0f67ab52981f2c96abd2a43b9768b8e2df1eb777 (diff) | |
download | rspamd-0b4c54e21874d6d622ab6820e36071c071e0c3e1.tar.gz rspamd-0b4c54e21874d6d622ab6820e36071c071e0c3e1.zip |
[Feature] Allow parsing of mailbox messages from the commandline
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 1f6356881..a4c2d2ac0 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1401,7 +1401,8 @@ rspamd_message_parse (struct rspamd_task *task) * So we check if a task has non-http format then we check for such a line * at the beginning to avoid errors */ - if (!(task->flags & RSPAMD_TASK_FLAG_JSON)) { + if (!(task->flags & RSPAMD_TASK_FLAG_JSON) || (task->flags & + RSPAMD_TASK_FLAG_LOCAL_CLIENT)) { if (len > sizeof ("From ") - 1) { if (memcmp (p, "From ", sizeof ("From ") - 1) == 0) { /* Skip to CRLF */ @@ -1719,11 +1720,6 @@ rspamd_message_parse (struct rspamd_task *task) "message contains two parts but they are in different multi-parts"); } } - else { - debug_task ( - "message has too many text parts, so do not try to compare " - "them with each other"); - } for (i = 0; i < task->parts->len; i ++) { struct rspamd_mime_part *part; |