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/10/06 23:04:22 UTC
[incubator-ponymail-foal] branch master updated: Classic PonyMail
uses elipsis for omissions
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 5f48fdf Classic PonyMail uses elipsis for omissions
5f48fdf is described below
commit 5f48fdffa9c564148ddb302db00248f4d1327d81
Author: Sebb <se...@apache.org>
AuthorDate: Thu Oct 7 00:04:11 2021 +0100
Classic PonyMail uses elipsis for omissions
---
server/plugins/messages.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index ba598ae..322d4bc 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -93,11 +93,11 @@ def anonymize(doc):
bytes(fremail.lower(), encoding="ascii", errors="replace")
).hexdigest()
ptr["from"] = re.sub(
- r"<(\S{1,2})\S*@([-a-zA-Z0-9_.]+)>", "<\\1..@\\2>", ptr["from"]
+ r"<(\S{1,2})\S*@([-a-zA-Z0-9_.]+)>", "<\\1...@\\2>", ptr["from"]
)
if ptr["body"]:
ptr["body"] = re.sub(
- r"<(\S{1,2})\S*@([-a-zA-Z0-9_.]+)>", "<\\1..@\\2>", ptr["body"]
+ r"<(\S{1,2})\S*@([-a-zA-Z0-9_.]+)>", "<\\1...@\\2>", ptr["body"]
)
return doc