parent
9a8a879bf6
commit
c3f96425d9
|
@ -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...
|
* OK, let's see if what I need is in the headers...
|
||||||
* Using the "To" header... Let's see if that gets us anywhere.
|
* Using the "To" header... Let's see if that gets us anywhere.
|
||||||
* It's not finding it.
|
* 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.
|
|
@ -46,7 +46,7 @@ try:
|
||||||
# "Line too long (see RFC5321 4.5.3.1.6)"
|
# "Line too long (see RFC5321 4.5.3.1.6)"
|
||||||
# https://gitlab.com/mailman/mailman/-/issues/1133
|
# https://gitlab.com/mailman/mailman/-/issues/1133
|
||||||
content = sys.stdin.buffer.read()
|
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()
|
header = content.strip()
|
||||||
headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
|
headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
|
||||||
header_to = headers['To']
|
header_to = headers['To']
|
||||||
|
|
Loading…
Reference in New Issue