Commit 98aeef18 authored by Lucas Serrano's avatar Lucas Serrano

[printer_watch] Ajout d'un X-Mailer custom

parent 361fa95b
......@@ -15,4 +15,4 @@ if netsnmp.snmpget(status_id, Version=1, DestHost="imprimante.adm", Community="p
msg = """ L'imprimante est actuellement hors service. Les erreurs suivantes se sont produites:
%s""" % ''.join(errors_list)
sendmail.sendmail(u"imprimante.adm@crans.org", u"impression@lists.crans.org", u"Imprimante hors service", msg)
sendmail.sendmail(u"imprimante.adm@crans.org", u"impression@lists.crans.org", u"Imprimante hors service", msg, more_headers={"X-Mailer": "/usr/scripts/impression/printer_watch.py"})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment