branch: externals/gnorb
commit 209b938bd285fcfc9509e9c9ddee9d983e1b2dff
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Attach outgoing message check to message-sent-hook
* gnorb-gnus.el (message-sent-hook): For some reason I had
`gnorb-gnus-check-outgoing-headers' on the message-send-hook. For
some (other) reason, this stopped working with very recent Gnusae. But
message-sent-hook works just fine. Why didn't I use this to begin
with? It's odd, because I spent quite some time trying to figure out
the best place to put it.
---
gnorb-gnus.el | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 8c1e961..e425ca2 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -309,10 +309,7 @@ information about the outgoing message into
'gnorb-org-restore-after-send t))
(setq gnorb-message-org-ids nil)))))
-;; This sets the global value, but the hook is made buffer-local in
-;; `gnus-inews-add-send-actions', so this is ignored
-;(add-hook 'message-header-hook 'gnorb-gnus-check-outgoing-headers)
-(add-hook 'message-send-hook 'gnorb-gnus-check-outgoing-headers t)
+(add-hook 'message-sent-hook 'gnorb-gnus-check-outgoing-headers t)
;;;###autoload
(defun gnorb-gnus-outgoing-do-todo (&optional arg)