---
This works and is tested on Emacs 28. Only difference from V2 is the
derived-mode-p stuff in autocrypt.el. And I'm writing 100 times on the
blackboard tonight: "Test before send, not test after send".
README.md | 1 +autocrypt-notmuch.el | 93 ++++++++++++++++++++++++++++++++++++++++++++autocrypt.el | 1 +
3 files changed, 95 insertions(+)
create mode 100644 autocrypt-notmuch.el
diff --git a/README.md b/README.md
index b1af7e6..b2fa3eb 100644
--- a/README.md+++ b/README.md
@@ -10,6 +10,7 @@ Currently, it supports:
- Rmail, as a viewer
- Gnus, as a viewer
- mu4e, as a viewer
+- notmuch, as a viewer- message, as a composer
As of writing, this package doesn't fully implement the autocrypt
diff --git a/autocrypt-notmuch.el b/autocrypt-notmuch.el
new file mode 100644
index 0000000..54f47a2
--- /dev/null+++ b/autocrypt-notmuch.el
@@ -0,0 +1,93 @@
+;; Copyright (C) 2020-2023 Free Software Foundation, Inc.++;;; autocrypt-notmuch.el --- Autocrypt for notmuch -*- lexical-binding:nil -*-++;; Author: Idiomdrottning <sandra.snan@idiomdrottning.org>++;; This program is free software; you can redistribute it and/or modify+;; it under the terms of the GNU General Public License as published by+;; the Free Software Foundation, either version 3 of the License, or+;; (at your option) any later version.++;; This program is distributed in the hope that it will be useful,+;; but WITHOUT ANY WARRANTY; without even the implied warranty of+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+;; GNU General Public License for more details.++;; You should have received a copy of the GNU General Public License+;; along with this program. If not, see <https://www.gnu.org/licenses/>.++;;; Commentary:++;; MUA specific functions for notmuch++;; Setup example:++;; (add-hook 'message-mode-hook #'autocrypt-mode)+;; (add-hook 'notmuch-show-hook #'autocrypt-mode)+;; (add-hook 'notmuch-search-hook #'autocrypt-mode)+;; (add-hook 'notmuch-tree-hook #'autocrypt-mode)
++;;; Code:++(require 'autocrypt)+(require 'notmuch)++(defvar autocrypt-notmuch-message-id nil+ "Parameter to hold various message IDs for+`autocrypt-process-header'. Requires dynamic binding, not
Note that this way of invoking `derived-mode-p' has been deprecated,
instead one should use
(derived-mode-p '(notmuch-show-mode notmuch-search-mode notmuch-tree-mode))
First of all, sorry for the delay in responding to your message. My
inbox has been overflowing for a while, and I am trying to remedy that.
Sandra Snan <sandra.snan@idiomdrottning.org> writes:
Or do you mean it would be better if autocrypt set the preference to
"manual" by default.
[0] https://docs.autocrypt.org/level1.html#accounts-controlled-by-the-mua
What package inserts the <#secure ...> tag? If I know what it does,
I could try to improve the interaction.
Sandra Snan <sandra.snan@idiomdrottning.org> writes: