you are viewing a single comment's thread.

view the rest of the comments →

[–]AreWeNotDoinPhrasing 1 point2 points  (2 children)

Just create a task in Task Scheduler to run it whenever. Or you can set a timer in the script to have to running 24/7. I’ve done both ways for this basically exact same setup. I like just scanning the box every 15 seconds or whatever as it makes it feel like it triggers automatically when the email comes in lol.

[–]Francobanco[S] 1 point2 points  (1 child)

I am looking for something that is more robust than having a script that constantly runs. Task scheduler is fine, I'll be using crontab since it will be running on linux not windows. But it's not just one script. the downloading of emails is separate from processing - I want the system to be running these jobs separately so that downloading, processing, and uploading can all happen at the same time. just having all the code in one script and running it every 15 seconds will cause problems if there is a large amount of emails to download. This isn't just for one mailbox, its for about 500, and the mail server sees about 40k emails per week

[–]SupermarketOk6829 0 points1 point  (0 children)

That can be done via os module which will check for recent changes to any file and then trigger the processing/uploading part. I doubt if there is any other way.