aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-mua.el
diff options
context:
space:
mode:
authorGravatar Thomas Jost <schnouki@schnouki.net>2011-05-28 14:51:55 -0700
committerGravatar Carl Worth <cworth@cworth.org>2011-06-03 12:38:51 -0700
commit78138ec9aa70cba65ca2f7a0f045ead1be093383 (patch)
treeb0e879ced8fa6b93580fcb366e5f7470f5e032c3 /emacs/notmuch-mua.el
parentda3e47e377411a2f2aa5d7f76e626d4926ed2c7c (diff)
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.
Diffstat (limited to 'emacs/notmuch-mua.el')
-rw-r--r--emacs/notmuch-mua.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 7c05a81f..556d2bf0 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -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)))