[mac_prises] Disclaimers+README
This commit is contained in:
parent
2f052e25dd
commit
65a755ce6f
6 changed files with 34 additions and 10 deletions
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 -*-
|
||||
#
|
||||
# Sclaimer
|
||||
# PEB : 01/02/2013 -> now()
|
||||
#
|
||||
# Blablabla. (cf mac_prise.py)
|
||||
|
||||
import psycopg2
|
||||
import psycopg2.extras
|
||||
|
@ -240,7 +245,7 @@ Content-Disposition: attachment; filename="logs_analyse"
|
|||
mailto = 'test@lists.crans.org'
|
||||
mail.sendmail(mailfrom, mailto, corps)
|
||||
else:
|
||||
Logs = [u"Logs du script mac_prise_analyzer\n\n\n"]
|
||||
Logs = [u"Logs du script %s\n\n\n" % sys.argv[0]]
|
||||
genere_comptage('instantanne')
|
||||
genere_comptage('moyen')
|
||||
genere_comptage('journalier')
|
||||
|
@ -252,16 +257,16 @@ Content-Disposition: attachment; filename="logs_analyse"
|
|||
|
||||
if hargneux:
|
||||
message = """From: %(from)s
|
||||
To: %(to)s
|
||||
Subject: %(subject)s
|
||||
Content-Type: text/plain; charset="UTF-8"
|
||||
To: %(to)s
|
||||
Subject: %(subject)s
|
||||
Content-Type: text/plain; charset="UTF-8"
|
||||
|
||||
%(logs)s
|
||||
"""
|
||||
%(logs)s
|
||||
"""
|
||||
|
||||
corps = message % { 'from': 'Spoofing watcher <spoof-watcher@crans.org>',
|
||||
'to': 'test@lists.crans.org',
|
||||
'subject': 'Logs de mac_prises_analyzer',
|
||||
'subject': 'Logs de %s' % sys.argv[0],
|
||||
'logs': "".join(Logs),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue