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 2017/01/05 14:05:57 UTC
incubator-ponymail git commit: pminfo.lua fetches and saves epoch but
never uses it
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 23895dfb1 -> d3314827e
pminfo.lua fetches and saves epoch but never uses it
This fixes #320
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/d3314827
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/d3314827
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/d3314827
Branch: refs/heads/master
Commit: d3314827e8fd095418125abcba98ff75dcafa43d
Parents: 23895df
Author: Sebb <se...@apache.org>
Authored: Thu Jan 5 14:05:48 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Thu Jan 5 14:05:48 2017 +0000
----------------------------------------------------------------------
CHANGELOG.md | 1 +
site/api/pminfo.lua | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d3314827/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0cf309c..5e540f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -101,6 +101,7 @@
- config.hidePrivate should be dropped (#272)
- limit filter is deprecated in ES 2.0; dropped in ES 5.0 (#318)
- domain parameter is not used externally (#319)
+- pminfo.lua fetches and saves epoch but never uses it #320
## CHANGES in 0.9b:
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d3314827/site/api/pminfo.lua
----------------------------------------------------------------------
diff --git a/site/api/pminfo.lua b/site/api/pminfo.lua
index 0859242..cddf517 100644
--- a/site/api/pminfo.lua
+++ b/site/api/pminfo.lua
@@ -116,7 +116,7 @@ function handle(r)
local num_threads = 0
local emails = {}
local sid = elastic.scan {
- _source = {'message-id','in-reply-to','subject','epoch','references'},
+ _source = {'message-id','in-reply-to','subject','references'},
query = QUERY,
sort = {
{
@@ -152,7 +152,6 @@ function handle(r)
emails[mid] = {
tid = v._id,
nest = 1,
- epoch = email.epoch,
children = {
}
@@ -190,7 +189,6 @@ function handle(r)
emails[mid]
},
nest = 1,
- epoch = email.epoch,
tid = v._id
}
emails[mid].nest = emails[irt].nest + 1