aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-07-18 19:26:20 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-07-18 19:26:20 +0200
commit8d277a7d9e029a36736c0e505c6a9458f402cee1 (patch)
tree748db2b814e3e2f885b1a2573dd69c844081a314 /config
parentffcc69d8ba57497efa4461dfccde8e35af4aa3d3 (diff)
downloaddotfiles-8d277a7d9e029a36736c0e505c6a9458f402cee1.tar.gz
dotfiles-8d277a7d9e029a36736c0e505c6a9458f402cee1.zip
lumail: remove on_message because it breakes attachments
Diffstat (limited to 'config')
-rw-r--r--config/lumail/lumail.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/config/lumail/lumail.lua b/config/lumail/lumail.lua
index cd8f381..42e0337 100644
--- a/config/lumail/lumail.lua
+++ b/config/lumail/lumail.lua
@@ -205,34 +205,3 @@ do
end
end
---
--- Add Content-Type to the headers before sending
---
-function on_message_send(path)
- local content = {}
- 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)
- and not string.match(l, is_header)
- then
- -- Append Content-Type to the headers.
- table.insert(content, "Content-Type: text/plain; charset=UTF-8\n")
- added = true
- end
- table.insert(content, l.."\n")
- end
-
- -- write the new content
- local m = io.open(path, "w")
- m:write(unpack(content))
- m:close()
-end
-