From: Vsevolod Stakhov Date: Thu, 17 Feb 2011 13:01:15 +0000 (+0300) Subject: Fix '_' in emails. X-Git-Tag: 0.3.7~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0954ea88937b1051c70fdae95b8955323c5d96cf;p=thirdparty%2Frspamd.git Fix '_' in emails. --- diff --git a/src/url.c b/src/url.c index de916188f2..b243920567 100644 --- a/src/url.c +++ b/src/url.c @@ -1146,7 +1146,7 @@ url_email_end (const gchar *begin, const gchar *end, const gchar *pos, url_match p = pos + strlen (match->pattern); - while (p < end && (is_domain (*p) || (*p == '.' && p + 1 < end && is_domain (*(p + 1))))) { + while (p < end && (is_domain (*p) || *p == '_' || (*p == '.' && p + 1 < end && is_domain (*(p + 1))))) { p ++; } match->m_len = p - match->m_begin;