Skip to content
Snippets Groups Projects
Commit 8690d9ee authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Limit to only massutksick.

parent 7a844a96
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment