From: ari@mbf.ocn.ne.jp (ARISAWA Akihiro)
Subject: patch: improved message-use-alternative-email-as-from
Date: Thu, 11 Nov 2004 18:14:36 +0900 [thread overview]
Message-ID: <m3oei4zr0j.fsf@puyo.nijino.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
Hi,
Here is a tiny patch improved message-use-alternative-email-as-from.
(1) Check "From" field in addition to "To" and "Cc".
(It may be better the fields are customizable.)
(2) When alternative address was found, use `message-make-from' in order to
supply user-full-name.
Regards,
ARISAWA Akihiro
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: message.el.patch --]
[-- Type: text/x-patch, Size: 1018 bytes --]
2004-11-11 ARISAWA Akihiro <ari@mbf.ocn.ne.jp>
* message.el (message-use-alternative-email-as-from): Check From field.
Use `message-make-from'.
Index: lisp/message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 7.57
diff -u -r7.57 message.el
--- lisp/message.el 2 Nov 2004 02:54:23 -0000 7.57
+++ lisp/message.el 8 Nov 2004 13:50:29 -0000
@@ -6856,7 +6856,7 @@
(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 @@
(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)))
next reply other threads:[~2004-11-11 9:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 9:14 ARISAWA Akihiro [this message]
2004-11-12 1:58 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3oei4zr0j.fsf@puyo.nijino.com \
--to=ari@mbf.ocn.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).