457d568638b3554ec73600b09b8b4b15ce81c965 — Siva Mahadevan a month ago faa9b15 0.36.6
Fix syntax of List-ID header (RFC 2919)

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.
1 files changed, 1 insertions(+), 1 deletions(-)

M listssrht/process.py
M listssrht/process.py => listssrht/process.py +1 -1
@@ 49,7 49,7 @@ 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