Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: soyeomul@doraji.xyz (황병희)
To: info-gnus-english@gnu.org
Subject: Re: In sending mail, i wish to choose one address(From:) in multiple accounts
Date: Thu, 21 Nov 2019 21:12:24 +0900	[thread overview]
Message-ID: <yw870onmvu.fsf@delta.birch.chromebook> (raw)
In-Reply-To: <87sgmhr2or.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Thu, 21 Nov 2019 10:36:36 +0100")

> [...] 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)

What a wonderful world!!! Thank You Very Much, Štěpán^^^

Sincerely,

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

      parent reply	other threads:[~2019-11-21 12:12 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
2019-11-21 10:32   ` Alberto Luaces
2019-11-21 12:12   ` 황병희 [this message]

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=yw870onmvu.fsf@delta.birch.chromebook \
    --to=soyeomul@doraji.xyz \
    --cc=info-gnus-english@gnu.org \
    /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).