From 5ed2043f8facb1f937f5da4183f92f976d89b5da Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Fri, 3 Nov 2023 17:35:26 +0100 Subject: [PATCH] WIP: adhesion: correction sendmail --- controle_adhesion/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index 909c146..09b6738 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -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)