aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-06-06 21:01:26 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-06-06 21:01:26 +0200
commit295354be091b78979e3c842e9d683655c889c43f (patch)
tree7f390354181f88925f7a485aa5a73ec53f0d5c8b
parent621642a33b947cc29fa1aa48e5268385a9d582b3 (diff)
downloaddotfiles-295354be091b78979e3c842e9d683655c889c43f.tar.gz
dotfiles-295354be091b78979e3c842e9d683655c889c43f.zip
don't mess with mimegpg
-rw-r--r--config/lumail2/lumail2.lua5
1 files changed, 5 insertions, 0 deletions
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)