]> source.dussan.org Git - rspamd.git/commitdiff
Detect mail addresses at the begining of message.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 11 Feb 2011 16:55:49 +0000 (19:55 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 11 Feb 2011 16:55:49 +0000 (19:55 +0300)
src/url.c

index 1251b06b63a1dcb25c0d8a7d3d9ae0c782612296..3db6b05b69d5e1118fbfcc65cb562aee21bcc2a0 100644 (file)
--- 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);