My org uses Microsoft DevOps. When a PR is assigned to me or my team, I receive and email with a subject starting with PR -
and a body containing created a new pull request
. As commits are pushed and comments are added, I get a bunch more emails related to it, all containing an identical subject as the original (which Outlook places into a conversation). Finally, when the commit is merged, I receive an email with completed the pull request
in the body.
Once I receive this PR completed email, I manually archive the whole conversation. I would like to automate this process.
Unfortunately, there's no one rule action to move an entire conversation to a folder (that I have discovered). Is there a series of rules I could make that would do this, perhaps using categories?
- PR created email received
- Create new category named with the email's subject
- Assign this email to that new category
- Subsequent PR emails are received with a subject starting with
PR -
- Search categories for subject name
- Assign this email to that category
- PR completed email received
- Search categories for subject name
- Assign this email to that category
- Archive all emails assigned to the category
- Delete category
I don't see an action to dynamically add categories, unfortunately, nor to search categories by name. Not to mention, if archiving a conversation isn't an available action, doing something like this which is more complicated probably isn't.
My goal in general may very well be outside the capabilities of Outlook rules, but if there is a creative/hacky solution, I'd love to hear it. If there isn't, and this is the purview of vbscript (which might just be easiest in the first place), do any of you know if such a script already exists, so I don't reinvent the wheel?