diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 17:00:54 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 17:00:54 +0400 |
commit | e7f2df7d45962a98f5caeb5c664fc6c1310f3112 (patch) | |
tree | 484fe21da6555396fcef7c7a205d43460f5ab1ce /src/plugins | |
parent | 9bd902ee1d0ebb87e789e335dc71bc7fb87e9e8e (diff) | |
download | rspamd-e7f2df7d45962a98f5caeb5c664fc6c1310f3112.tar.gz rspamd-e7f2df7d45962a98f5caeb5c664fc6c1310f3112.zip |
* Fix some issues with empty parts
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/emails.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/emails.c b/src/plugins/emails.c index 719350e05..39415f0c8 100644 --- a/src/plugins/emails.c +++ b/src/plugins/emails.c @@ -147,6 +147,11 @@ extract_emails (struct worker_task *task) while (cur) { part = cur->data; + if (part->is_empty) { + cur = g_list_next (cur); + continue; + } + rc = g_regex_match_full (email_module_ctx->email_re, (const char *)part->orig->data, part->orig->len, 0, 0, &info, &err); if (rc) { while (g_match_info_matches (info)) { |