I have created a shutdown.py script that shuts down my computer when executed. I have also created a rule in Microsoft Outlook that executes my Python script when I receive an email that has %BLAHBLAHBLAH% in the subject. I have tested it out and it works flawlessly; however, my question for you all is: is it possible to pass the email's subject line into the Python script before executing it? Basically, I want to have a keyword in the subject line that will execute a certain script but also be able to "pass" parameters into the email's subject line that the Python script will then use. For example if I sent %shutdown30% my python script would be able to parse the string %shutdown30% and use the 30 as a parameter to shutdown the computer in 30 minutes.
Thanks in advance for any advice/comments/suggestions/answers :)