You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2018/03/01 23:00:17 UTC
[incubator-ponymail] branch master updated: Use irt variable
instead of refetching it
This is an automated email from the ASF dual-hosted git repository.
sebb 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 1450f42 Use irt variable instead of refetching it
1450f42 is described below
commit 1450f423bb689e9ea10d603300ebbffac3d1d6dc
Author: Sebb <se...@apache.org>
AuthorDate: Thu Mar 1 23:00:16 2018 +0000
Use irt variable instead of refetching it
---
site/api/stats.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/site/api/stats.lua b/site/api/stats.lua
index d29d79a..0013c5a 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -633,7 +633,7 @@ function handle(r)
irt = irt:gsub("^[a-zA-Z]+:%s+", "")
end
end
- local refpoint = email['in-reply-to'] or email['references'] or ""
+ local refpoint = irt or email['references'] or ""
local point = emails[irt] or (#refpoint > 0 and findSubject(emails, emls, irt, email.epoch))
-- Try a little harder??
if not point and email.subject:match("^[A-Za-z]+:%s+") then -- if this is a 'Re:' or 'Aw:' or 'Fwd:', try to find parent anyway
@@ -646,7 +646,7 @@ function handle(r)
table.insert(point.children, emails[mid])
end
else
- if (email['in-reply-to'] ~= JSON.null and #email['in-reply-to'] > 0) then
+ if (irt ~= JSON.null and #irt > 0) then
emails[irt] = {
children = {
emails[mid]
--
To stop receiving notification emails like this one, please contact
sebb@apache.org.