Skip to content
Snippets Groups Projects
Commit ced75bca authored by Vincent Le gallic's avatar Vincent Le gallic
Browse files

On laisse la possibilité que le nom de l'expéditeur soit configuré à autre...

On laisse la possibilité que le nom de l'expéditeur soit configuré à autre chose que "cranspasswords".
parent 57ff2413
No related branches found
No related tags found
No related merge requests found
...@@ -136,9 +136,10 @@ def notification(subject,corps,fname,old): ...@@ -136,9 +136,10 @@ def notification(subject,corps,fname,old):
tomail = DEST_MAIL tomail = DEST_MAIL
msg = MIMEMultipart(_charset="utf-8") msg = MIMEMultipart(_charset="utf-8")
msg['Subject'] = subject msg['Subject'] = subject
msg['X-Mailer'] = "cranspasswords"
# me == the sender's email address # me == the sender's email address
# family = the list of all recipients' email addresses # family = the list of all recipients' email addresses
msg['From'] = "cranspasswords <%s>" % CRANSP_MAIL msg['From'] = CRANSP_MAIL
msg['To'] = DEST_MAIL msg['To'] = DEST_MAIL
msg.preamble = "cranspasswords report" msg.preamble = "cranspasswords report"
info = MIMEText(corps + info = MIMEText(corps +
......
...@@ -10,7 +10,7 @@ Dans le futur, sera remplacé par une connexion ldap. ...@@ -10,7 +10,7 @@ Dans le futur, sera remplacé par une connexion ldap.
STORE = '/root/cranspasswords/db/' STORE = '/root/cranspasswords/db/'
""" Répertoire de stockage """ """ Répertoire de stockage """
CRANSP_MAIL = "root@crans.org" CRANSP_MAIL = "cranspasswords <root@crans.org>"
""" Expéditeur du mail de notification """ """ Expéditeur du mail de notification """
DEST_MAIL = "root@crans.org" DEST_MAIL = "root@crans.org"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment