mirror of https://github.com/dirtbags/moth.git
more course changes and some spam scripts
This commit is contained in:
parent
8b7ff62c14
commit
f581323c37
|
@ -0,0 +1,19 @@
|
|||
From: The Tracer FIRE Registration Fairy <neale@lanl.gov>
|
||||
To: RCPT
|
||||
Subject: Tracer FIRE: Correction: Please contact your hub coordinator!
|
||||
|
||||
Apologies for the previous email with a course assignment of "COURSE". You
|
||||
can safely ignore it.
|
||||
|
||||
Please view this map:
|
||||
|
||||
http://csr.lanl.gov/tf/hubs.png
|
||||
|
||||
If there is a hub in your area, please send email to the provided address
|
||||
right away so that they can have the right number of chairs, etc.
|
||||
|
||||
The Tracer FIRE FAQ is at
|
||||
http://csr.lanl.gov/tf/faq.html
|
||||
|
||||
--
|
||||
The Tracer Fire Registration Fairy
|
|
@ -0,0 +1,14 @@
|
|||
#! /usr/bin/python3
|
||||
|
||||
import smtplib
|
||||
|
||||
smtpd = smtplib.SMTP("mail.lanl.gov")
|
||||
|
||||
template = open("hubs-mail.txt").read()
|
||||
|
||||
for line in open("assignments.txt"):
|
||||
course, email = line.strip().split()
|
||||
|
||||
print(email)
|
||||
msg = template.replace("RCPT", email)
|
||||
smtpd.sendmail("neale@lanl.gov", [email], msg)
|
Loading…
Reference in New Issue