From: Richard M. Stallman Date: Sat, 24 Feb 1996 10:15:08 +0000 (+0000) Subject: (rmail-dont-reply-to): Allow parsing lists of addresses with comment fields. X-Git-Tag: emacs-19.34~1200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3efb840dd47b58410e9c9e580b5831a6d5e54fbb;p=emacs.git (rmail-dont-reply-to): Allow parsing lists of addresses with comment fields. --- 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