diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-03 20:29:27 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-03 20:29:27 +0300 |
commit | 65f15e69284e38d5bbf2177f4466975eca5779b8 (patch) | |
tree | 2966f19baebf839fe02b5823b054a9539d921e6c /src/message.c | |
parent | 99cb83cd06ca693a032616361bd0b1ae1efabdba (diff) | |
download | rspamd-65f15e69284e38d5bbf2177f4466975eca5779b8.tar.gz rspamd-65f15e69284e38d5bbf2177f4466975eca5779b8.zip |
* New module for checking emails inside messages (rules based, like multimap)
* Emails now are separated from urls and urls checks
* Add ability to check text attachements if option is presented in a configuration
Version is 0.3.6 now
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index 8e8b8feb0..010edf22b 100644 --- a/src/message.c +++ b/src/message.c @@ -536,13 +536,13 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont /* Skip attachements */ #ifndef GMIME24 cd = g_mime_part_get_content_disposition (GMIME_PART (part)); - if (cd && g_ascii_strcasecmp (cd, "attachment") == 0) { + if (cd && g_ascii_strcasecmp (cd, "attachment") == 0 && !task->cfg->check_text_attachements) { debug_task ("skip attachments for checking as text parts"); return; } #else cd = g_mime_object_get_disposition (GMIME_OBJECT (part)); - if (cd && g_ascii_strcasecmp (cd, GMIME_DISPOSITION_ATTACHMENT) == 0) { + if (cd && g_ascii_strcasecmp (cd, GMIME_DISPOSITION_ATTACHMENT) == 0 && !task->cfg->check_text_attachements) { debug_task ("skip attachments for checking as text parts"); return; } |