commit 5edffd0: [Minor] Core: Fix parsing of addresses with comma in names

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Dec 27 18:28:07 UTC 2018


Author: Vsevolod Stakhov
Date: 2018-12-13 14:06:24 +0000
URL: https://github.com/rspamd/rspamd/commit/5edffd0d4a9ac92c63b5f802c4242b18f203de07

[Minor] Core: Fix parsing of addresses with comma in names

---
 src/libmime/email_addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c
index b936af586..9aa2d0618 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -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 at domain.com


More information about the Commits mailing list