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 2016/11/01 17:48:57 UTC

incubator-ponymail git commit: Alignment of clauses

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 8f3775d41 -> b1f7e9755


Alignment of clauses

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

Branch: refs/heads/master
Commit: b1f7e97557714b2dd069c971c82af7a999aaf35b
Parents: 8f3775d
Author: Sebb <se...@apache.org>
Authored: Tue Nov 1 17:48:49 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Tue Nov 1 17:48:49 2016 +0000

----------------------------------------------------------------------
 site/api/mbox.lua | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/b1f7e975/site/api/mbox.lua
----------------------------------------------------------------------
diff --git a/site/api/mbox.lua b/site/api/mbox.lua
index 222c0a6..331a8c2 100644
--- a/site/api/mbox.lua
+++ b/site/api/mbox.lua
@@ -66,10 +66,8 @@ function handle(r)
         local docs = elastic.raw {
             _source = {'mid','private'},
             query = {
-                
                 bool = {
                     must = {
-                        
                         {
                             range = {
                                 date = {
@@ -79,22 +77,21 @@ function handle(r)
                             }
                         },
                         {
-                        term = {
-                            list_raw = lid
+                            term = {
+                                list_raw = lid
+                            }
                         }
                     }
-                        
-                }}
-                
+                }
             },
             sort = {
-            {
-                epoch = {
-                    order = "asc"
-                }
-            }  
-        },
-        size = 10000
+                {
+                    epoch = {
+                        order = "asc"
+                    }
+                }  
+            },
+            size = 10000
         }
         
         -- for each email, get the actual source of it to plop into the mbox file