more course changes and some spam scripts

This commit is contained in:
Neale Pickett 2013-01-29 14:38:29 -07:00
parent 38f20fd376
commit fa0078ac69
3 changed files with 33 additions and 0 deletions

View File

@ -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

14
doc/2013-02-TF5/spam.py Executable file
View File

@ -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)