diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-02-20 14:56:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 14:56:48 +0100 |
commit | 0dda92c6a770c6d63664dab5add07ff3e96996a9 (patch) | |
tree | 3de6117d8566e02bd0a4266626731acb0f067d24 /contrib/secbugstats/bin | |
parent | 6fa11a64ee1a96cb66c56a2f6afc063f1afc243e (diff) | |
download | bugzilla-0dda92c6a770c6d63664dab5add07ff3e96996a9.tar.gz bugzilla-0dda92c6a770c6d63664dab5add07ff3e96996a9.tar.xz |
no bug - tie secbugstats to bugzilla email (#404)
Diffstat (limited to 'contrib/secbugstats/bin')
-rwxr-xr-x | contrib/secbugstats/bin/gather.sh | 2 | ||||
-rwxr-xr-x | contrib/secbugstats/bin/sendstats.py | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/contrib/secbugstats/bin/gather.sh b/contrib/secbugstats/bin/gather.sh index 678752762..fd7de7620 100755 --- a/contrib/secbugstats/bin/gather.sh +++ b/contrib/secbugstats/bin/gather.sh @@ -54,5 +54,5 @@ echo "[end graph.py]" # # Email the report echo "[sendstats.py `date +%Y-%m-%d\ %T`]" -$SCRIPTS_DIR/sendstats.py +$SCRIPTS_DIR/sendstats.py | perl scripts/sendmail.pl echo "[end sendstats.py]" diff --git a/contrib/secbugstats/bin/sendstats.py b/contrib/secbugstats/bin/sendstats.py index 32d296533..2df8bfd6b 100755 --- a/contrib/secbugstats/bin/sendstats.py +++ b/contrib/secbugstats/bin/sendstats.py @@ -293,15 +293,4 @@ if img: msgImage.add_header("Content-ID", "<image1>") msgRoot.attach(msgImage) -# if console is chosen, print only to the console -if "--console" in sys.argv: - print "\n", msgRoot.as_string() -# print out only HTML body -elif "--html" in sys.argv: - print "\n", body -# send out the mail -else: - s = smtplib.SMTP(SMTP_HOST, SMTP_PORT) - # s = smtplib.SMTP_SSL(SMTP_HOST, SMTP_PORT) - # s.login(LDAP_USER, LDAP_PASS) - s.sendmail(EMAIL_FROM, EMAIL_TO, msgRoot.as_string()) +print msgRoot.as_string() |