branch: externals/autocrypt
commit 8fcf874d04b92be438d163bbb457f3202e9fa333
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>
Add autocrypt-message--remove-header
---
autocrypt-message.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/autocrypt-message.el b/autocrypt-message.el
index 71b5a1ce7d..04afb5bc53 100644
--- a/autocrypt-message.el
+++ b/autocrypt-message.el
@@ -46,6 +46,11 @@
(with-silent-modifications
(message-add-header (concat header ": " value))))
+(defun autocrypt-message--remove-header (header)
+ "Insert HEADER with VALUE into the message head."
+ (with-silent-modifications
+ (message-remove-header header)))
+
(defun autocrypt-message--sign-encrypt ()
"Sign and encrypt message."
(mml-secure-message-sign-encrypt "pgpmime"))