Microsoft Outlook has a robust system of rules that you can use to move, copy, delete (or alert you) when you receive an email based on a number of conditions.
One option I use quite a bit is “when I receive an email with x in the subject line, run a script”. Here’s why: I have an app that downloads files to a specific folder that cannot be changed. When those downloads are complete, I want to move those files to a shared folder. So I have Outlook set up to where if I send an email to myself with the license plate of my first car in the subject line, a script runs that moves the file(s) from one folder to the other.
However, it would appear that December’s updates for Office 365 removed the “run a script” option from the rules, along with a couple other “unsafe rules”. Thankfully, it appears that Microsoft didn’t remove the options, it just hid them. If, like me, you use the “run a script” option, here’s how you can re-enable it:
- Close Outlook, if running.
- Open Regedit.
- Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security
- Right-click on an empty space in the right pane and choose New > DWORD Value. Name the new value EnableUnsafeClientMailRules and set its value to 1.
- Close Regedit; open Outlook.
At this point, go to the “Rules & Alerts” applet. You should see that the “(error)” message next to any existing “run a script” rules is gone, although you might have to check the box to actually enable the rule again.