Fix formatting?

This might help, I hope so...
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-30 01:17:01 -07:00
parent 9a8a879bf6
commit c3f96425d9
2 changed files with 5 additions and 2 deletions

View File

@ -42,3 +42,6 @@ This is our current version trying to communicate between courier and mailman3.
* OK, let's see if what I need is in the headers...
* Using the "To" header... Let's see if that gets us anywhere.
* It's not finding it.
* Oh man `To` vs `'To'`
* Progress... But getting, "line too long" this seems like I need the
replace that I had before.

View File

@ -46,7 +46,7 @@ try:
# "Line too long (see RFC5321 4.5.3.1.6)"
# https://gitlab.com/mailman/mailman/-/issues/1133
content = sys.stdin.buffer.read()
#content = content.replace(b'\r\n', b'\n').replace(b'\r', b'\n').replace(b'\n', b'\r\n')
content = content.replace(b'\r\n', b'\n').replace(b'\r', b'\n').replace(b'\n', b'\r\n')
header = content.strip()
headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
header_to = headers['To']