diff options
Diffstat (limited to 'src/plugins/emails.c')
-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)) { |