ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: pminfo.lua fetches and saves epoch but never uses it
Date Thu, 05 Jan 2017 14:05:57 GMT
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 <sebb@apache.org>
Authored: Thu Jan 5 14:05:48 2017 +0000
Committer: Sebb <sebb@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


Mime
View raw message