changeset 19563:fd3807f45b7b

(mail-strip-quoted-names): Retain one whitespace character between addresses.
author Richard M. Stallman <rms@gnu.org>
date Wed, 27 Aug 1997 02:33:40 +0000
parents 318a3a6a8ff5
children 8d89cc0f2b42
files lisp/mail/mail-utils.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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" <bar@host>')
        (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))