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:
parent
7ac90e5d2a
commit
52560c3621
|
@ -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.
|
* Hm, go with bare "Exception"... The catch wasn't what was failing.
|
||||||
* 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.
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue