[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In sending mail, i wish to choose one address(From:) in multiple acc
From: |
황병희 |
Subject: |
Re: In sending mail, i wish to choose one address(From:) in multiple accounts |
Date: |
Thu, 21 Nov 2019 21:12:24 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
> [...] 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,
--
^고맙습니다 _地平天成_ 감사합니다_^))//