summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/mail-utils.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el
index 80a1fbbc9ce..302d5d5eb10 100644
--- a/lisp/mail/mail-utils.el
+++ b/lisp/mail/mail-utils.el
@@ -147,7 +147,7 @@ Usenet paths ending in an element that matches are removed also."
(case-fold-search t)
pos epos)
(while (setq pos (string-match match userids))
- (if (> pos 0) (setq pos (1+ pos)))
+ (if (> pos 0) (setq pos (match-beginning 2)))
(setq epos
(if (string-match "[ \t\n,]+" userids (match-end 0))
(match-end 0)