Skip to content
Advertisement

Python adding outlook color categories to specific emails with a loop

I am trying to add color categories to existing emails in a given outlook folder based on criterias such as email object and/or sender email address.

JavaScript

the code above enables me to move emails based on the mail object but I am not able so far to add a feature to also change the outlook color categories

I spent time on the following doc without success so far https://learn.microsoft.com/en-us/office/vba/api/outlook.categories

Advertisement

Answer

Categories is a delimited string of category names that have been assigned to an Outlook item.

JavaScript

You may find the update categories in emails using python thread helpful.

Advertisement