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 6032eff   Bug: stats.lua dfrom and dto parameters not doc
6032eff is described below

commit 6032eff400c2549f77ff1b6682a6e4d2ab214263
Author: Sebb <[email protected]>
AuthorDate: Tue Jun 15 21:48:08 2021 +0100

     Bug: stats.lua dfrom and dto parameters not doc
    
     This fixes #544
---
 CHANGELOG.md | 1 +
 docs/API.md  | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b758b7..b6cf115 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## Changes in 0.12:
+-  Bug: stats.lua dfrom and dto parameters are not documented in API (#544)
 - Bug: atom.lua is not documented (#538)
 - Bug: notifications.lua 'seen' option is not documented (#539)
 - Bug: &since option for stats.lua is not documented (#537)
diff --git a/docs/API.md b/docs/API.md
index d94ece3..7f39b19 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -41,7 +41,7 @@ Note: date and epoch are in UTC
 
 ### Fetching list data
 Usage:
-`GET 
/api/stats.lua?list=$list&domain=$domain[&d=$timespan][&q=$query][&header_from=$from][&header_to=$to][&header_subject=$subject][&header_body=$body][&quick][&emailsOnly][&s=$s&e=$e][&since=$since]`
+`GET 
/api/stats.lua?list=$list&domain=$domain[&d=$timespan][&q=$query][&header_from=$from][&header_to=$to][&header_subject=$subject][&header_body=$body][&quick][&emailsOnly][&s=$s&e=$e][&since=$since][&dfrom=$dfrom&dto=$dto]`
 
 Parameters:
 
@@ -60,6 +60,8 @@ Parameters:
     - $body: Optional body text
     - $since: number of seconds since the epoch, defaults to now. 
        Returns '{"changed":false}' if no emails are later than epoch, 
otherwise proceeds with normal search
+    - $dfrom: days ago to start
+    - $dto: total days to match
 
 Options:
 

Reply via email to