summaryrefslogtreecommitdiff
path: root/lisp/mail/mail-utils.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-24 10:15:08 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-24 10:15:08 +0000
commit3efb840dd47b58410e9c9e580b5831a6d5e54fbb (patch)
tree0be8aa1839e1e8bede43dd78a4ce6146ce56460b /lisp/mail/mail-utils.el
parentc0932fbc8ba2c0a7098caa3257778d901b17ca9c (diff)
downloademacs-3efb840dd47b58410e9c9e580b5831a6d5e54fbb.tar.gz
(rmail-dont-reply-to): Allow parsing lists of addresses with comment fields.
Diffstat (limited to 'lisp/mail/mail-utils.el')
-rw-r--r--lisp/mail/mail-utils.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el
index c091d72fac9..6feea415765 100644
--- a/lisp/mail/mail-utils.el
+++ b/lisp/mail/mail-utils.el
@@ -150,7 +150,8 @@ Usenet paths ending in an element that matches are removed also."
(while (setq pos (string-match match userids))
(if (> pos 0) (setq pos (match-beginning 2)))
(setq epos
- (if (string-match "[ \t\n,]+" userids (match-end 0))
+ ;; Delete thru the next comma, plus whitespace after.
+ (if (string-match ",[ \t\n]+" userids (match-end 0))
(match-end 0)
(length userids)))
(setq userids