From: "Štěpán Němec" <stepnem@gmail.com>
To: info-gnus-english@gnu.org
Cc: soyeomul@doraji.xyz (황병희)
Subject: Re: In sending mail, i wish to choose one address(From:) in multiple accounts
Date: Thu, 21 Nov 2019 10:36:36 +0100 [thread overview]
Message-ID: <87sgmhr2or.fsf@gmail.com> (raw)
In-Reply-To: <yw1490ix87.fsf@delta.birch.chromebook> (=?utf-8?B?Iu2ZqQ==?= =?utf-8?B?67OR7Z2sIidz?= message of "Thu, 21 Nov 2019 12:31:59 +0900")
On Thu, 21 Nov 2019 12:31:59 +0900
황병희 wrote:
> before, i send question via news but it may be gone Gmane's spam folder
> so again i re-send mail. Well i have 3 accounts. At first when i send
> mail, i wish to choose one address. There is good reference i think but
> i did fail to search, please help me...
The `gnus-posting-styles' solution proposed by Alberto is useful if
there are circumstances (often based on the article you're replying to)
that allow choosing the address and other things programmatically
(non-interactively). If all you want is pick an address manually when
composing a new message, you can do something like the following:
(defun my-compose-mail-advice (orig &rest args)
"Read `user-mail-address' from minibuffer."
(interactive (lambda (spec)
(let* ((user-mail-address
(completing-read "From: " '("first@address.com"
"second@address.com")))
(from (message-make-from user-full-name
user-mail-address))
(spec (advice-eval-interactive-spec spec)))
(push (cons 'From from) (nth 2 spec))
spec)))
(apply orig args))
(advice-add 'compose-mail :around #'my-compose-mail-advice)
--
Štěpán
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next prev parent reply other threads:[~2019-11-21 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-21 3:31 황병희
2019-11-21 7:53 ` Alberto Luaces
2019-11-21 9:36 ` Štěpán Němec [this message]
2019-11-21 10:32 ` Alberto Luaces
2019-11-21 12:12 ` 황병희
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=87sgmhr2or.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=info-gnus-english@gnu.org \
--cc=soyeomul@doraji.xyz \
/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).