You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2018/04/03 11:16:14 UTC

[incubator-ponymail] branch master updated: compuser body should be unicode

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new eb93614  compuser body should be unicode
eb93614 is described below

commit eb93614df762f4650ad6677d05d6552a401c4a68
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Apr 3 13:16:02 2018 +0200

    compuser body should be unicode
    
    This addresses #445 (though not a complete fix yet)
---
 site/api/compose.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/site/api/compose.lua b/site/api/compose.lua
index 744eb19..e2ce560 100644
--- a/site/api/compose.lua
+++ b/site/api/compose.lua
@@ -77,6 +77,7 @@ function handle(r)
                 
                 -- standard headers + headers we need ourselves for parsing in the archiver (notifications etc)
                 local headers = {
+                    ['Content-Type'] = 'text/plain; charset=utf-8',
                     ['X-PonyMail-Sender'] = r:sha1(account.cid),
                     ['X-PonyMail-Agent'] = "PonyMail Composer/0.2",
                     ['message-id'] = ("<pony-%s-%s@%s>"):format(r:sha1(account.cid), r:sha1(r:clock() .. os.time() .. r.useragent_ip), post.to:gsub("@", ".")),
@@ -142,4 +143,4 @@ function handle(r)
     return cross.OK
 end
 
-cross.start(handle)
\ No newline at end of file
+cross.start(handle)

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.