From 295354be091b78979e3c842e9d683655c889c43f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 6 Jun 2017 21:01:26 +0200 Subject: don't mess with mimegpg --- config/lumail2/lumail2.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/lumail2/lumail2.lua b/config/lumail2/lumail2.lua index 8466863..8c60232 100644 --- a/config/lumail2/lumail2.lua +++ b/config/lumail2/lumail2.lua @@ -208,6 +208,11 @@ function on_message_send(path) local added = false local is_header = "^%a+: .*" for l in io.lines(path) do + -- If this message was replaced by mimegpg don't mess with it + if (l == "-----BEGIN PGP SIGNATURE-----") or (l == "-----BEGIN PGP MESSAGE-----") then + return + end + -- Find the last header. if not added and content[#content] and string.match(content[#content], is_header) -- cgit v1.2.3