3 ms·
Some years back at work, I actually hit the size limits of email rules in Outlook, just for filing emails into folders for my clients. So, I wrote the first of
by Semiapies 5y ago
Some years back at work, I actually hit the size limits of email rules in Outlook, just for filing emails into folders for my clients. So, I wrote the first of a few iterations of an email-filtering script in Python, connecting into the office's Exchange server in different ways as we upgraded.
The current version wraps exchangelib and, besides just running the straightforward Python code rules, checks whether the email is in a thread and files it away in the folder with the previous emails. (This is the slow part over the web API, with walking folders to find the location of any particular thread the first time it's encountered adding a few seconds to the run. If I find myself caring about the few extra seconds, I'll try one of a few ways it's occurred to me to speed it up.)
While at first I slightly minded having to run the script instead of Outlook silently tucking them away, I found I liked the chance to see what was in my inbox first.