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 2017/07/31 04:43:23 UTC

[1/2] incubator-ponymail git commit: switch to socket.mime for unb64 operations

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 9225c53ae -> ea74b14f8


switch to socket.mime for unb64 operations

This fixes #384 by changing to a less buggy b64 decoder.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/81c31b3d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/81c31b3d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/81c31b3d

Branch: refs/heads/master
Commit: 81c31b3dea5d7c66f9712a5b8501762be266cc3d
Parents: 9225c53
Author: Daniel Gruno <hu...@apache.org>
Authored: Mon Jul 31 06:41:50 2017 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Mon Jul 31 06:41:50 2017 +0200

----------------------------------------------------------------------
 site/api/email.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/81c31b3d/site/api/email.lua
----------------------------------------------------------------------
diff --git a/site/api/email.lua b/site/api/email.lua
index 8bd0888..43c697e 100644
--- a/site/api/email.lua
+++ b/site/api/email.lua
@@ -24,6 +24,7 @@ local user = require 'lib/user'
 local cross = require 'lib/cross'
 local config = require 'lib/config'
 local utils = require 'lib/utils'
+local mime = require "mime"
 
 function handle(r)
     cross.contentType(r, "application/json")
@@ -65,7 +66,7 @@ function handle(r)
                 local hash = r:escape(get.file)
                 local fdoc = elastic.get("attachment", hash)
                 if fdoc and fdoc.source then
-                    local out = r:base64_decode(fdoc.source:gsub("\n", "")) -- bug in mod_lua?
+                    local out = mime.unb64(fdoc.source)
                     local ct = "application/binary"
                     local fn = "unknown"
                     local fs = 0


[2/2] incubator-ponymail git commit: update chglog

Posted by hu...@apache.org.
update chglog


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/ea74b14f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/ea74b14f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/ea74b14f

Branch: refs/heads/master
Commit: ea74b14f81ce27a4ede11825293f43ff3d3396ab
Parents: 81c31b3
Author: Daniel Gruno <hu...@apache.org>
Authored: Mon Jul 31 06:43:04 2017 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Mon Jul 31 06:43:04 2017 +0200

----------------------------------------------------------------------
 CHANGELOG.md | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/ea74b14f/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbedb3a..e3a6b10 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -153,6 +153,7 @@
 - import-mbox.py: mailbox defaults to Create if file is not found (#370)
 - Bug: import --dedup does not cater for messages sent to multiple lists (#373)
 - Confusing parameter name (--rename) in copy-list.py (#207)
+- Fix base64 decoding of certain files (#384)
 
 ## CHANGES in 0.9b: