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 2022/02/08 13:16:44 UTC

[incubator-ponymail-foal] branch master updated (a46c128 -> efe9530)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.


    from a46c128  Bump server version
     new e4015e9  Better variable name
     new efe9530  Bump server version

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 server/plugins/messages.py | 6 +++---
 server/server_version.py   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

[incubator-ponymail-foal] 01/02: Better variable name

Posted by se...@apache.org.
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

commit e4015e933ad5b2fac4e28709a40097413bbe7d39
Author: Sebb <se...@apache.org>
AuthorDate: Tue Feb 8 13:16:13 2022 +0000

    Better variable name
---
 server/plugins/messages.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index 56f97ee..fcc0182 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -228,14 +228,14 @@ async def get_email(
             # If using old shortened hex IDs, regexp for them instead of a direct match
             if len(permalink) == OLD_SHORTENED_ID_LENGTH and re.match(r"^[a-f0-9]+$", permalink):
                 permalink += ".+"
-                aggtype = "regexp"
+                matchtype = "regexp"
             else:
-                aggtype = "term"
+                matchtype = "term"
             res = await session.database.search(
                 index=doctype,
                 size=1,
                 body={
-                    "query": {"bool": {"must": [{aggtype: {"permalinks": permalink}}]}}
+                    "query": {"bool": {"must": [{matchtype: {"permalinks": permalink}}]}}
                 },
             )
             if len(res["hits"]["hits"]) == 1:

[incubator-ponymail-foal] 02/02: Bump server version

Posted by se...@apache.org.
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

commit efe95301a8e4c2d4ef432bd714fb7214d212006e
Author: Sebb <se...@apache.org>
AuthorDate: Tue Feb 8 13:16:34 2022 +0000

    Bump server version
---
 server/server_version.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/server_version.py b/server/server_version.py
index ec12a87..3abb9fe 100644
--- a/server/server_version.py
+++ b/server/server_version.py
@@ -1,2 +1,2 @@
 # This file is generated by server/update_version.sh
-PONYMAIL_SERVER_VERSION = '886427b'
+PONYMAIL_SERVER_VERSION = 'e4015e9'