Hi,
I want to watch folders for new items with 2 ultimate goals:
1) New mail notifications for new mail coming to *all* folders (not just
the
Inbox)
2) Custom display of RSS items
The first task of my add-in will be to notify me using a tray icon for new
mail coming to all folders. Is there any event which is fired up every
time
new mail came (regardless of the folder)? If not, should I just iterate
over
all (eventually user-specified) folders and hook to their events or there
is
a better way of doing this?
The second task of my add-in will be to enable Outlook displaying the
article web pages in the preview pane directly. Since there is no way of
making a full Form region replacement for built-in message (in my case
IPM.Post.Rss), I was thinking of changing the message class of every RSS
item (say IPM.Post.Rss.WebView) and design a Form region that would handle
this class of items. The simplest way was to do this in the
Application.ItemLoad event, but Outlook wouldn't let me change the message
class of the item in the event handler (an exception occurs). So I thought
I
could change the message class as soon as the item arrives in the store.
Again, what's the best way to do that? Or is there a better way to achieve
the ultimate goal?
Thank you very much in advance!
Best,
Iliyan Georgiev