tk.email(("FUÄU", 2021), 2021) should be "FUAEU21", not "FUÄU21". We should add a test for this in TestEmail.
tk.parse("FUAEU", 2021) will return ("FUÆU", 2021). I suggest we handle this in the mail server by adding a special case in parse_alias_title:
diff --git a/tkmail/address.py b/tkmail/address.py
index f68d5e2..006efb2 100644
--- a/tkmail/address.py
+++ b/tkmail/address.py
@@ -181,5 +181,8 @@ def parse_alias_title(alias, db, current_period):
elif base in BEST or re.match(r'^E?FU\w+$', base):
def f():
- return db.get_user_by_title(base, period)
+ res = db.get_user_by_title(base, period)
+ if not res and "Æ" in base:
+ res = db.get_user_by_title(base.replace("Æ", "Ä"), period)
+ return res
else:
return None, None
tk.email(("FUÄU", 2021), 2021)should be "FUAEU21", not "FUÄU21". We should add a test for this in TestEmail.tk.parse("FUAEU", 2021)will return("FUÆU", 2021). I suggest we handle this in the mail server by adding a special case in parse_alias_title: