diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-11 19:55:49 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-11 19:55:49 +0300 |
commit | 16b555a9fe150859dc6bce15827c6512488ce3a3 (patch) | |
tree | 4482d4242cfcbd455c42826307e3e506ee994805 /src | |
parent | 234e7468612c110feafce72b87a0b4b242050406 (diff) | |
download | rspamd-16b555a9fe150859dc6bce15827c6512488ce3a3.tar.gz rspamd-16b555a9fe150859dc6bce15827c6512488ce3a3.zip |
Detect mail addresses at the begining of message.
Diffstat (limited to 'src')
-rw-r--r-- | src/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |