From 52560c3621aab647a98d5e2a6149276972a8e745 Mon Sep 17 00:00:00 2001 From: Jigme Datse Yli-Rasku Date: Thu, 30 May 2024 00:15:16 -0700 Subject: [PATCH] Changing how recepient value is getting handled. This was trying some handwaving recepient checking (hey maybe it's needed). Let's try this instead. --- docs/courier-to-mailman3.md | 4 +++- source/courier-to-mailman3.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/courier-to-mailman3.md b/docs/courier-to-mailman3.md index 5fbe6c1..51c6f4a 100644 --- a/docs/courier-to-mailman3.md +++ b/docs/courier-to-mailman3.md @@ -35,4 +35,6 @@ This is our current version trying to communicate between courier and mailman3. * Hm, go with bare "Exception"... The catch wasn't what was failing. * Let's try that instead? * Oh man... Variable not properly defined (or more derferenced.) -* OK, it's failing further along, so maybe this works? \ No newline at end of file +* 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. \ No newline at end of file diff --git a/source/courier-to-mailman3.py b/source/courier-to-mailman3.py index 58a0eac..50c9a06 100644 --- a/source/courier-to-mailman3.py +++ b/source/courier-to-mailman3.py @@ -54,7 +54,7 @@ try: arg_ext = arg_ext_tmp if arg_ext_tmp != "1" else "" lmtp.sendmail( os.environ['SENDER'], - os.environ['EXT' + arg_ext] + "@" + os.environ['HOST'], + os.environ['RECIPIENT'], #sys.stdin.buffer.read() content )