Does this work?

Maybe?
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-30 01:07:44 -07:00
parent 41037b6507
commit f8d7bd68b2
2 changed files with 4 additions and 2 deletions

View File

@ -39,4 +39,6 @@ This is our current version trying to communicate between courier and mailman3.
* I see... * I see...
* The parsing of the environment variables is failing, but let's try this. * The parsing of the environment variables is failing, but let's try this.
* That's not doing it... Might need to create users? * That's not doing it... Might need to create users?
* 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.
* It's not finding it.

View File

@ -47,7 +47,7 @@ try:
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 = HeaderParser().parsestr(header.decode('utf-8')) headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
header_to = headers[To] header_to = headers[To]
# See <https://qmail.notqmail.org/qmail-manual-html/man8/qmail-command.html> # See <https://qmail.notqmail.org/qmail-manual-html/man8/qmail-command.html>