]> git.eshelyaron.com Git - emacs.git/commitdiff
Subject: Check Bcc after the Messag hook has run
authorYuri D'Elia <wavexx@thregr.org>
Sat, 28 Jan 2017 14:20:54 +0000 (15:20 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 28 Jan 2017 14:21:28 +0000 (15:21 +0100)
* lisp/gnus/message.el (message-send): 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

index 4f08b0b27258c2b24d1b935f40101c9673780b11..ce0dad9cb0509d1a3e29ace8080d7003a38a2c1e 100644 (file)
@@ -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)))