[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Run 'mml-secure-bcc-is-safe after 'message-send-hook
From: |
Yuri D'Elia |
Subject: |
[PATCH] Run 'mml-secure-bcc-is-safe after 'message-send-hook |
Date: |
Fri, 27 Jan 2017 15:37:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
If the hook modifies the message (mml tags or headers), we should check bcc on
the final message, not on the original.
---
lisp/gnus/message.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 4f08b0b272..ce0dad9cb0 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4119,8 +4119,8 @@ It should typically alter the sending method in some way
or other."
(let ((inhibit-read-only t))
(put-text-property (point-min) (point-max) 'read-only nil))
(message-fix-before-sending)
- (mml-secure-bcc-is-safe)
(run-hooks 'message-send-hook)
+ (mml-secure-bcc-is-safe)
(when message-confirm-send
(or (y-or-n-p "Send message? ")
(keyboard-quit)))
--
2.11.0