(message-use-alternative-email-as-from): Examine the From header as well;
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 12 Nov 2004 01:57:56 +0000 (01:57 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 12 Nov 2004 01:57:56 +0000 (01:57 +0000)
 use message-make-from in order to include a user's full name.
 From ARISAWA-san.

lisp/ChangeLog
lisp/message.el

index db16594..9348ea8 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-11  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
+
+       * message.el (message-use-alternative-email-as-from): Examine the
+       From header as well; use message-make-from in order to include a
+       user's full name.
+
 2004-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-emphasis-alist): Don't hide asterisks by
index 795bfb1..ef1ad20 100644 (file)
@@ -6856,7 +6856,7 @@ regexp VARSTR."
 
 (defun message-use-alternative-email-as-from ()
   (require 'mail-utils)
-  (let* ((fields '("To" "Cc"))
+  (let* ((fields '("To" "Cc" "From"))
         (emails
          (split-string
           (mail-strip-quoted-names
@@ -6870,7 +6870,8 @@ regexp VARSTR."
       (pop emails))
     (unless (or (not email) (equal email user-mail-address))
       (goto-char (point-max))
-      (insert "From: " email "\n"))))
+      (insert "From: " (let ((user-mail-address email)) (message-make-from))
+             "\n"))))
 
 (defun message-options-get (symbol)
   (cdr (assq symbol message-options)))