system-config/tools/invite2summit
Jeremy Stanley 192414e957 Add Date and Message-ID to summit invites
The mail merger for summit invites includes Date and Message-ID
headers, because Crocker said so in 1977 that's why.

Change-Id: I2105fe4cd04b7b2042c9e32888cb1f094697d7bf
2016-01-14 00:07:47 +00:00
..
atc_sample.csv Adds the script used to send summit invitations to ATC 2013-10-23 15:57:48 -07:00
codes_sample.csv Adds the script used to send summit invitations to ATC 2013-10-23 15:57:48 -07:00
README.rst Note to escape literal $ in invite2summit template 2015-07-10 13:04:57 +00:00
sample.atc.csv Adds the script used to send summit invitations to ATC 2013-10-23 15:57:48 -07:00
send.py Add Date and Message-ID to summit invites 2016-01-14 00:07:47 +00:00
settings.py.sample Stop running stable/folsom jobs 2013-11-13 20:35:34 +00:00

Summit Invite Script

It sends codes from codes.csv to ATCs in atc.csv and outputs a csv file with which name corresponds to which code.

You use it like this:

  • Copy settings.py.sample to settings.py
  • Update values in settings.py, especially EMAIL_USER, EMAIL_FROM, EMAIL_SIGNATURE and EMAIL_PASSWORD
  • Note that literal $ characters in the template which are not part of a substitution variable (such as dollar amounts) should be doubled to escape them like ... a $$600-off discount code ... so as to avoid raising ValueError: Invalid placeholder in string: line <X>, col <Y>
  • Run a test with python send.py atc_sample.csv codes_sample.csv

Should work on stock Ubuntu.

When ready, run the real thing with:

$ python send.py atc.csv codes.csv > sent.csv