mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Don't always prompt for the "From" address when replying
When replying, the From: address is already filled in by notmuch reply, so most of the time there is no need to prompt the user for it.
This commit is contained in:
parent
da3e47e377
commit
78138ec9aa
1 changed files with 5 additions and 2 deletions
|
@ -155,7 +155,10 @@ name and addresses configured in the notmuch configuration file."
|
|||
:type '(repeat string))
|
||||
|
||||
(defcustom notmuch-always-prompt-for-sender nil
|
||||
"Always prompt for the From: address when composing a new message."
|
||||
"Always prompt for the From: address when composing or forwarding a message.
|
||||
|
||||
This is not taken into account when replying to a message, because in that case
|
||||
the From: header is already filled in by notmuch."
|
||||
:group 'notmuch
|
||||
:type 'boolean)
|
||||
|
||||
|
@ -203,7 +206,7 @@ the From: address first."
|
|||
"Invoke the notmuch reply window."
|
||||
(interactive "P")
|
||||
(let ((sender
|
||||
(when (or prompt-for-sender notmuch-always-prompt-for-sender)
|
||||
(when prompt-for-sender
|
||||
(notmuch-mua-prompt-for-sender))))
|
||||
(notmuch-mua-reply query-string sender)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue