VSTO: process mail using newmailex before outlook rules move mail

后端 未结 2 1505
[愿得一人]
[愿得一人] 2021-02-03 13:06

I am creating an addon for Outlook 2007 that reads a mail item when it is received, and then rewrites it. The addon works great, and rewrites the mail for items that do not have

2条回答
  •  情歌与酒
    2021-02-03 13:29

    Untested Idea : If you are reliably getting the NewMailEx Event, mark the Mail with a user property or mileage with a GUID and then use Search for that.

    This may not work as you may not be able to get in before the Rule moves the mail.

    As you have worked out the EntryId changes whe the item is moved.

    Other way you need to look at MAPI props to get the PR_SEARCH_KEY that dosent change when mail is moved around.

提交回复
热议问题