Commit 8690d9ee authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Limit to only massutksick.

parent 7a844a96
......@@ -17,6 +17,10 @@ class CustomSMTPServer(smtpd.SMTPServer):
print("Title missing")
return
if 'massutskick@vastgota.nation.liu.se' not in msg.get('To'):
print('Will only publish massutskick')
return
title = re.sub('^\[.*\] *', '', title)
subprocess.run(['wp', 'post', 'create',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment