# HG changeset patch # User Richard M. Stallman # Date 872649220 0 # Node ID fd3807f45b7b0966e5fb4339ab213dc3eb48b15e # Parent 318a3a6a8ff5c775975c26f8bee4d8cf61cdbd5e (mail-strip-quoted-names): Retain one whitespace character between addresses. diff -r 318a3a6a8ff5 -r fd3807f45b7b lisp/mail/mail-utils.el --- a/lisp/mail/mail-utils.el Tue Aug 26 22:41:06 1997 +0000 +++ b/lisp/mail/mail-utils.el Wed Aug 27 02:33:40 1997 +0000 @@ -150,7 +150,7 @@ ;; strip `quoted' names (This is supposed to hack `"Foo Bar" ') (setq pos 0) (while (setq pos (string-match - "[ \t]*\"\\([^\"\\]\\|\\\\.\\|\\\\\n\\)*\"[ \t\n]*" + "\\([ \t]?\\)[ \t]*\"\\([^\"\\]\\|\\\\.\\|\\\\\n\\)*\"[ \t\n]*" address pos)) ;; If the next thing is "@", we have "foo bar"@host. Leave it. (if (and (> (length address) (match-end 0)) @@ -158,7 +158,7 @@ (setq pos (match-end 0)) (setq address (mail-string-delete address - pos (match-end 0))))) + (match-end 1) (match-end 0))))) ;; Retain only part of address in <> delims, if there is such a thing. (while (setq pos (string-match "\\(,\\s-*\\|\\`\\)[^,]*<\\([^>,:]*>\\)" address))