WIP: adhesion: correction sendmail

This commit is contained in:
Adrien Bourmault 2023-11-03 17:35:26 +01:00
parent 47e7347bfc
commit 5ed2043f8f
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ def setup_workdir():
os.mkdir(WORKDIR+"/refuse")
def sendmail(headers, data):
print("***\nHEADERS: {}\n***\n".format(headers))
msg = bytes(headers + "\n", 'utf-8') + quopri.encodestring(bytes(data, 'utf-8'))
subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg)