diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-11 16:51:02 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-11 16:51:02 +0300 |
commit | 234e7468612c110feafce72b87a0b4b242050406 (patch) | |
tree | 9fcb127fc1fd7ae36fc7fede02334a7fd98fa4a0 /src/url.c | |
parent | 0aab87dab86cc9186e267b1448373411d816136e (diff) | |
download | rspamd-234e7468612c110feafce72b87a0b4b242050406.tar.gz rspamd-234e7468612c110feafce72b87a0b4b242050406.zip |
* Write Emails: header in output
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1117,17 +1117,17 @@ url_email_start (const gchar *begin, const gchar *end, const gchar *pos, url_mat if (pos > begin && *pos == '@') { /* Try to extract it with username */ p = pos - 1; - while (p > begin && is_atom (*p)) { + while (p > begin && (is_domain (*p) || *p == '.')) { p --; } - if (!is_atom (*p)) { + if (!is_domain (*p)) { match->m_begin = p + 1; return TRUE; } } else { p = pos + strlen (match->pattern); - if (is_atom (*p)) { + if (is_domain (*p)) { match->m_begin = p; return TRUE; } |