aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Josefsson2002-09-25 20:21:28 +0000
committerSimon Josefsson2002-09-25 20:21:28 +0000
commit2a487c6cdfcd2904c5053a95da378529e645f231 (patch)
tree69bb8f21e05abfeb8848492c65e6e76494d2cfbf
parent038de5b8231ad6f98c8246f1cd7228786d0b702d (diff)
downloademacs-2a487c6cdfcd2904c5053a95da378529e645f231.tar.gz
emacs-2a487c6cdfcd2904c5053a95da378529e645f231.zip
(mail-extr-ignore-single-names): Change default.
(mail-extract-address-components): Doc fix.
-rw-r--r--lisp/mail/mail-extr.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el
index 07c21e33de9..7078b564f67 100644
--- a/lisp/mail/mail-extr.el
+++ b/lisp/mail/mail-extr.el
@@ -226,7 +226,7 @@ we will assume that \"John Q. Smith\" is the fellow's name."
226 :type 'boolean 226 :type 'boolean
227 :group 'mail-extr) 227 :group 'mail-extr)
228 228
229(defcustom mail-extr-ignore-single-names t 229(defcustom mail-extr-ignore-single-names nil
230 "*Whether to ignore a name that is just a single word. 230 "*Whether to ignore a name that is just a single word.
231If true, then when we see an address like \"Idiot <dumb@stupid.com>\" 231If true, then when we see an address like \"Idiot <dumb@stupid.com>\"
232we will act as though we couldn't find a full name in the address." 232we will act as though we couldn't find a full name in the address."
@@ -710,7 +710,8 @@ Unless NO-REPLACE is true, at each of the positions in LIST-SYMBOL
710(defun mail-extract-address-components (address &optional all) 710(defun mail-extract-address-components (address &optional all)
711 "Given an RFC-822 address ADDRESS, extract full name and canonical address. 711 "Given an RFC-822 address ADDRESS, extract full name and canonical address.
712Returns a list of the form (FULL-NAME CANONICAL-ADDRESS). 712Returns a list of the form (FULL-NAME CANONICAL-ADDRESS).
713If no name can be extracted, FULL-NAME will be nil. 713If no name can be extracted, FULL-NAME will be nil. Also see
714`mail-extr-ignore-single-names'.
714 715
715If the optional argument ALL is non-nil, then ADDRESS can contain zero 716If the optional argument ALL is non-nil, then ADDRESS can contain zero
716or more recipients, separated by commas, and we return a list of 717or more recipients, separated by commas, and we return a list of
@@ -719,9 +720,9 @@ each recipient. If ALL is nil, then if ADDRESS contains more than
719one recipients, all but the first is ignored. 720one recipients, all but the first is ignored.
720 721
721ADDRESS may be a string or a buffer. If it is a buffer, the visible 722ADDRESS may be a string or a buffer. If it is a buffer, the visible
722 (narrowed) portion of the buffer will be interpreted as the address. 723\(narrowed) portion of the buffer will be interpreted as the address.
723 (This feature exists so that the clever caller might be able to avoid 724\(This feature exists so that the clever caller might be able to avoid
724 consing a string.)" 725consing a string.)"
725 (let ((canonicalization-buffer (get-buffer-create " *canonical address*")) 726 (let ((canonicalization-buffer (get-buffer-create " *canonical address*"))
726 (extraction-buffer (get-buffer-create " *extract address components*")) 727 (extraction-buffer (get-buffer-create " *extract address components*"))
727 value-list) 728 value-list)