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: stats.lua can fail when creating top10 senders
Date Sun, 11 Dec 2016 02:18:35 GMT
stats.lua can fail when creating top10 senders

This fixes #283

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

Branch: refs/heads/master
Commit: 68ea3726e90523f32e8648db297063b020339c8c
Parents: 36e6d59
Author: Sebb <sebb@apache.org>
Authored: Sun Dec 11 02:18:24 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Sun Dec 11 02:18:24 2016 +0000

----------------------------------------------------------------------
 CHANGELOG.md       | 1 +
 site/api/stats.lua | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/68ea3726/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 372f60b..4c714eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -54,6 +54,7 @@
 - search strings not properly quoted. (#76)
 - pminfo.lua creates top100 sender information but it's not used (#282)
 - stats.lua could use single aggregate query to get first and last years (#276)
+- stats.lua can fail when creating top10 senders (#283)
 
 ## CHANGES in 0.9b:
 

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/68ea3726/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index 6fa0da3..e8cf3e1 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -365,7 +365,7 @@ function handle(r)
                 eml = "unknown"
             end
             local gravatar = r:md5(eml:lower())
-            local name = y.key:match("([^<]+)%s*<.->") or y.key:match("%S+@%S+")
+            local name = y.key:match("([^<]+)%s*<.->") or y.key:match("%S+@%S+")
or "unknown"
             name = name:gsub("\"", "")
             table.insert(top10, {
                 id = y.key,


Mime
View raw message