From 3efb840dd47b58410e9c9e580b5831a6d5e54fbb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 24 Feb 1996 10:15:08 +0000 Subject: [PATCH] (rmail-dont-reply-to): Allow parsing lists of addresses with comment fields. --- lisp/mail/mail-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2