diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-18 12:29:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-18 12:29:22 +0000 |
commit | 2df1c28a15669c8fca3dfb69357d7dd3d86fec07 (patch) | |
tree | 40dd9cfabf4ac59b9b594b98598edf393ccfc65d | |
parent | 0c18f2f9fbcf581bf398bc3c30d1a78648b50911 (diff) | |
download | rspamd-2df1c28a15669c8fca3dfb69357d7dd3d86fec07.tar.gz rspamd-2df1c28a15669c8fca3dfb69357d7dd3d86fec07.zip |
[Fix] Fix smtp comments exclusion
-rw-r--r-- | src/libmime/email_addr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c index 34b2ff81a..4b8c6bc1c 100644 --- a/src/libmime/email_addr.c +++ b/src/libmime/email_addr.c @@ -294,10 +294,11 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool, const gchar *hdr, state = parse_quoted; } else if (*p == '(') { - obraces ++; + obraces ++; /* To avoid ) itself being copied */ } else if (*p == ')') { ebraces ++; + p ++; } if (obraces == ebraces) { |