[PATCH lists.sr.ht] Fix syntax of List-ID header (RFC 2919)
Export this patch
This patch fixes the List-ID header to conform to the RFC 2919 [1]
syntax specification. In particular, the '@` is not supported by
the list-id token as is seen in the RFC:
list-id-header = "List-ID:" [phrase] "<" list-id ">" CRLF
list-id = list-label "." list-id-namespace
list-label = dot-atom-text
(from RFC 2822 [2]) dot-atom-text = 1*atext *("." 1*atext)
where atext does not include the '@' character.
---
listssrht/process.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/listssrht/process.py b/listssrht/process.py
index 96c429c..13e0a2d 100644
--- a/listssrht/process.py
+++ b/listssrht/process.py
@@ -49,7 +49,7 @@ def _forward(dest, mail):
mail["List-Archive"] = "<{}/{}>".format(
cfg("lists.sr.ht", "origin"), list_name)
mail["List-Post"] = "<mailto:{}@{}>".format(list_name, domain)
- mail["List-ID"] = "{} <{}@{}>".format(dest.name, list_name, domain)
+ mail["List-ID"] = "{} <{}.{}>".format(list_name, list_name, domain)
mail["Sender"] = "{} <{}@{}>".format(list_name, list_name, domain)
# TODO: Encrypt emails
--
2.23.0
Thanks!
To git.sr.ht:~sircmpwn/lists.sr.ht
faa9b15..457d568 master -> master
* [new tag] 0.36.6 -> 0.36.6