nfrankel opened a new issue #234:
URL: https://github.com/apache/incubator-ponymail-foal/issues/234


   I tried to use the existing API deployed on <https://ponymail.apache.org/>.
   
   ```bash
   curl https://lists.apache.org/api/stats.lua\?list\=dev\&domain\=apisix
   ```
   
   The result is:
   
   ```json
   {
       "firstYear": 1970,
       "lastYear": 1970,
       "firstMonth": 1,
       "lastMonth": 1,
       "active_months": {},
       "hits": 0,
       "numparts": 0,
       "no_threads": 0,
       "emails": [],
       "participants": {},
       "searchlist": "<dev.apisix>",
       "domain": "apisix",
       "name": "dev",
       "list": "dev@apisix",
       "searchParams": {
           "list": "dev",
           "domain": "apisix",
           "e": "2022-02"
       },
       "unixtime": 1647593751,
       "thread_struct": []
   }
   ```
   
   Note that `lastMonth`and `lastYear` are respectively `1` and `1970.
   
   Now, I explicitely set the end period:
   
   ```bash
   curl 
https://lists.apache.org/api/stats.lua\?list\=dev\&domain\=apisix\&e\=2022-02
   ```
   
   The boundaries haven't changed:
   
   ```json
   {
       "firstYear": 1970,
       "lastYear": 1970,
       "firstMonth": 1,
       "lastMonth": 1,
       "active_months": {},
       "hits": 0,
       "numparts": 0,
       "no_threads": 0,
       "emails": [],
       "participants": {},
       "searchlist": "<dev.apisix>",
       "domain": "apisix",
       "name": "dev",
       "list": "dev@apisix",
       "searchParams": {
           "list": "dev",
           "domain": "apisix",
           "e": "2022-02"
       },
       "unixtime": 1647593996,
       "thread_struct": []
   }
   ```
   
   Either there's an issue, or I'm misunderstanding how it works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to