:group 'notmuch
:type '(repeat string))
+(defcustom notmuch-always-prompt-for-sender nil
+ "Always prompt for the From: address when composing a new message."
+ :group 'notmuch
+ :type 'boolean)
+
(defun notmuch-mua-sender-collection ()
(if notmuch-identities
notmuch-identities
the From: address first."
(interactive "P")
(let ((other-headers
- (when prompt-for-sender
+ (when (or prompt-for-sender notmuch-always-prompt-for-sender)
(list (cons 'from (notmuch-mua-prompt-for-sender))))))
(notmuch-mua-mail nil nil other-headers)))
If PROMPT-FOR-SENDER is non-nil, the user will be prompted for
the From: address first."
(interactive "P")
- (if prompt-for-sender
+ (if (or prompt-for-sender notmuch-always-prompt-for-sender)
(let* ((sender (notmuch-mua-prompt-for-sender))
(address-components (mail-extract-address-components sender))
(user-full-name (car address-components))
"Invoke the notmuch reply window."
(interactive "P")
(let ((sender
- (when prompt-for-sender
+ (when (or prompt-for-sender notmuch-always-prompt-for-sender)
(notmuch-mua-prompt-for-sender))))
(notmuch-mua-reply query-string sender)))