WIP: adhesion: correction sendmail
This commit is contained in:
parent
47e7347bfc
commit
5ed2043f8f
|
@ -97,6 +97,7 @@ def setup_workdir():
|
||||||
os.mkdir(WORKDIR+"/refuse")
|
os.mkdir(WORKDIR+"/refuse")
|
||||||
|
|
||||||
def sendmail(headers, data):
|
def sendmail(headers, data):
|
||||||
|
print("***\nHEADERS: {}\n***\n".format(headers))
|
||||||
msg = bytes(headers + "\n", 'utf-8') + quopri.encodestring(bytes(data, 'utf-8'))
|
msg = bytes(headers + "\n", 'utf-8') + quopri.encodestring(bytes(data, 'utf-8'))
|
||||||
subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg)
|
subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue