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 2021/06/15 12:19:34 UTC
[incubator-ponymail] branch master updated: Bug: &since option for
stats.lua is not documented
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 cb16162 Bug: &since option for stats.lua is not documented
cb16162 is described below
commit cb161627bbe6d9c418b1630ceec4de116345c336
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jun 15 13:19:19 2021 +0100
Bug: &since option for stats.lua is not documented
This fixes #537
---
CHANGELOG.md | 1 +
docs/API.md | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63abbf0..8248ba5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
## Changes in 0.12:
+- Bug: &since option for stats.lua is not documented (#537)
- Bug: PM setup does not support ES 6 - undocumented (#536)
- Bug: buffering=1 not allowed with binary files (#534)
- Bug: Invalid mailing list address supplied (#516)
diff --git a/docs/API.md b/docs/API.md
index e8eba8f..64f4a5c 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]`
+`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]`
Parameters:
@@ -58,6 +58,8 @@ Parameters:
- $to: Optional To: address
- $subject: Optional Subject: line
- $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
Options: