From ced75bcaedac7db034016618802a7e8fe3ce94c1 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 7 Mar 2013 17:46:05 +0100 Subject: [PATCH] =?UTF-8?q?On=20laisse=20la=20possibilit=C3=A9=20que=20le?= =?UTF-8?q?=20nom=20de=20l'exp=C3=A9diteur=20soit=20configur=C3=A9=20?= =?UTF-8?q?=C3=A0=20autre=20chose=20que=20"cranspasswords".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 3 ++- serverconfig.example.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 2e63db3..89593c8 100755 --- a/server.py +++ b/server.py @@ -136,9 +136,10 @@ def notification(subject,corps,fname,old): tomail = DEST_MAIL msg = MIMEMultipart(_charset="utf-8") msg['Subject'] = subject + msg['X-Mailer'] = "cranspasswords" # me == the sender's email address # family = the list of all recipients' email addresses - msg['From'] = "cranspasswords <%s>" % CRANSP_MAIL + msg['From'] = CRANSP_MAIL msg['To'] = DEST_MAIL msg.preamble = "cranspasswords report" info = MIMEText(corps + diff --git a/serverconfig.example.py b/serverconfig.example.py index c4ceb05..13bab22 100755 --- a/serverconfig.example.py +++ b/serverconfig.example.py @@ -10,7 +10,7 @@ Dans le futur, sera remplacé par une connexion ldap. STORE = '/root/cranspasswords/db/' """ Répertoire de stockage """ -CRANSP_MAIL = "root@crans.org" +CRANSP_MAIL = "cranspasswords " """ Expéditeur du mail de notification """ DEST_MAIL = "root@crans.org"