]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Core: Fix parsing of addresses with comma in names
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 13 Dec 2018 14:06:24 +0000 (14:06 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 13 Dec 2018 14:06:24 +0000 (14:06 +0000)
src/libmime/email_addr.c

index b936af58630a8e2ac504c772001548d9e0c184bb..9aa2d06183087407e5251f4fa6876bd86f7826a9 100644 (file)
@@ -284,7 +284,7 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool,
                                state = parse_addr;
                        }
                        else if (*p == ',') {
-                               if (p > c) {
+                               if (p > c && seen_at) {
                                        /*
                                         * Last token must be the address:
                                         * e.g. Some name name@domain.com