aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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
-