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"