Changing how recepient value is getting handled.

This was trying some handwaving recepient checking (hey maybe it's
needed).  Let's try this instead.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-30 00:15:16 -07:00
parent 7ac90e5d2a
commit 52560c3621
2 changed files with 4 additions and 2 deletions

View File

@ -36,3 +36,5 @@ This is our current version trying to communicate between courier and mailman3.
* Let's try that instead? * Let's try that instead?
* Oh man... Variable not properly defined (or more derferenced.) * Oh man... Variable not properly defined (or more derferenced.)
* OK, it's failing further along, so maybe this works? * OK, it's failing further along, so maybe this works?
* I see...
* The parsing of the environment variables is failing, but let's try this.

View File

@ -54,7 +54,7 @@ try:
arg_ext = arg_ext_tmp if arg_ext_tmp != "1" else "" arg_ext = arg_ext_tmp if arg_ext_tmp != "1" else ""
lmtp.sendmail( lmtp.sendmail(
os.environ['SENDER'], os.environ['SENDER'],
os.environ['EXT' + arg_ext] + "@" + os.environ['HOST'], os.environ['RECIPIENT'],
#sys.stdin.buffer.read() #sys.stdin.buffer.read()
content content
) )