branch: externals/autocrypt
commit 13f31c7e45ef0a7f160f0cf69e30d7e404964ec4
Author: Philip K <[email protected]>
Commit: Philip K <[email protected]>

    Fix autocrypt-rmail
---
 autocrypt-rmail.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/autocrypt-rmail.el b/autocrypt-rmail.el
index 514af6cf23..0a2a7f8f32 100644
--- a/autocrypt-rmail.el
+++ b/autocrypt-rmail.el
@@ -24,12 +24,19 @@
 
 (require 'rmail)
 
+
+;;;###autoload
+(cl-defmethod autocrypt-load ((_mode (eql rmail-mode)))
+  "Load this module."
+  (require 'autocrypt-rmail))
+
 ;;;###autoload
-(cl-defmethod autocrypt-mode-hooks ((_mode (derived-mode message-mode)))
+(cl-defmethod autocrypt-mode-hooks ((_mode (eql rmail-mode)))
   "Return the hook to install autocrypt."
+  (require 'autocrypt-mu4e)
   '(rmail-show-message-hook))
 
-(cl-defmethod autocrypt-get-header ((_mode (derived-mode message-mode))
+(cl-defmethod autocrypt-get-header ((_mode (eql rmail-mode))
                                     header)
   "Ask Rmail to return HEADER."
   (rmail-apply-in-message rmail-current-message

Reply via email to