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/09/19 12:39:08 UTC

[incubator-ponymail-foal] branch master updated: Alternate parameter

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-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new b3756bf  Alternate parameter
b3756bf is described below

commit b3756bfc6c5954326f8ef4955a99c7d991c62024
Author: Sebb <se...@apache.org>
AuthorDate: Sun Sep 19 13:28:04 2021 +0100

    Alternate parameter
---
 server/endpoints/mbox.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index 76ad9ae..21a4f1c 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -68,7 +68,8 @@ async def process(
 
     lid = indata.get("list", "_")
     domain = indata.get("domain", "_")
-    yyyymm = indata.get("d") # e.g. 2019-9
+    # may be provided as d= or date=
+    yyyymm = indata.get("d") or indata.get("date") # e.g. 2019-9
 
     try:
         query_defuzzed = plugins.defuzzer.defuzz(indata, list_override="@" in lid and lid or None)