ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [2/2] incubator-ponymail git commit: Function moved to utils
Date Sun, 18 Dec 2016 02:15:42 GMT
Function moved to utils

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

Branch: refs/heads/master
Commit: 00bd1ae2c08fb6d2c542ada8f17f290dc56702ae
Parents: 6284d7e
Author: Sebb <sebb@apache.org>
Authored: Sun Dec 18 02:15:25 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Sun Dec 18 02:15:25 2016 +0000

----------------------------------------------------------------------
 site/api/stats.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/00bd1ae2/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index cfed0ac..6740b76 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -606,7 +606,7 @@ function handle(r)
             h = h + 1
 
             -- This is needed by ths slow_count method            
-            local eml = extractCanonEmail(email.from)
+            local eml = utils.extractCanonEmail(email.from)
             local gravatar = r:md5(eml:lower())
             email.gravatar = gravatar
 
@@ -707,7 +707,7 @@ function handle(r)
             end
         elseif config.slow_count then
             for k, v in pairs(top10) do
-                if v.email == extractCanonEmail(email.from) then
+                if v.email == utils.extractCanonEmail(email.from) then
                     v.count = v.count - 1
                     break -- don't count the e-mail again
                 end


Mime
View raw message