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/01/04 01:45:47 UTC

[incubator-ponymail-foal] 01/02: Broken; also not a proper solution

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 5c431f1e3a173181c10fde021ec760e46691eacf
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jan 4 01:41:31 2022 +0000

    Broken; also not a proper solution
---
 server/endpoints/source.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/server/endpoints/source.py b/server/endpoints/source.py
index 9fa1b3e..0a071b4 100644
--- a/server/endpoints/source.py
+++ b/server/endpoints/source.py
@@ -34,9 +34,6 @@ async def process(
     # If not found via permalink, it might be message-id instead, so try that
     if email is None:
         email = await plugins.messages.get_email(session, messageid=indata.get("id"), listid=listid)
-    if not email and ' ' in mailid: # only try again if we need to due to space in url
-        mailid = mailid.replace(" ", "+")
-        email = await plugins.messages.get_email(session, messageid=indata.get("id"), listid=listid)
 
     if email and isinstance(email, dict) and not email.get("deleted"):
         if plugins.aaa.can_access_email(session, email):