diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-06-06 21:01:26 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-06-06 21:01:26 +0200 |
| commit | 295354be091b78979e3c842e9d683655c889c43f (patch) | |
| tree | 7f390354181f88925f7a485aa5a73ec53f0d5c8b /config | |
| parent | 621642a33b947cc29fa1aa48e5268385a9d582b3 (diff) | |
| download | dotfiles-295354be091b78979e3c842e9d683655c889c43f.tar.gz dotfiles-295354be091b78979e3c842e9d683655c889c43f.zip | |
don't mess with mimegpg
Diffstat (limited to 'config')
| -rw-r--r-- | config/lumail2/lumail2.lua | 5 |
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) |
