aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/url.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index cc6cfbb3a..7231934fd 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1925,9 +1925,13 @@ url_email_start (struct url_callback_data *cb,
cb->last_at = NULL;
return FALSE;
}
+ else if (pos == cb->begin) {
+ /* Just @ at the start of input */
+ return FALSE;
+ }
}
- if (pos > cb->begin - 1) {
+ if (pos >= cb->begin + 1) {
match->st = *(pos - 1);
}
else {