From: Vsevolod Stakhov Date: Fri, 11 Feb 2011 16:55:49 +0000 (+0300) Subject: Detect mail addresses at the begining of message. X-Git-Tag: 0.3.7~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16b555a9fe150859dc6bce15827c6512488ce3a3;p=thirdparty%2Frspamd.git Detect mail addresses at the begining of message. --- diff --git a/src/url.c b/src/url.c index 1251b06b63..3db6b05b69 100644 --- a/src/url.c +++ b/src/url.c @@ -1124,6 +1124,10 @@ url_email_start (const gchar *begin, const gchar *end, const gchar *pos, url_mat match->m_begin = p + 1; return TRUE; } + else if (p == begin) { + match->m_begin = p; + return TRUE; + } } else { p = pos + strlen (match->pattern);