1

currently we can add some red flags to email. And after that, we can those flag icons to appear while listing of emails.

I want the similar thing to happen but I want a custom icon.

Is that possible.

Also it became really difficult to get support on c# outlook addin. Where can I get proper support ?

More details if you want:

I have already built an addin with forms and some actions etc. In outlook we can see list of emails. After clicking an email, we can click some buttons(like 'push to server'). Once clicked, the email will be stored in server and also will be moved to another folder. But we also need another functionality. We should be able to see some icons (like flags etc) in the email (or for each mailitem in the list of items like flags) that says whether it is already pushed to server.

Regarding what I have tried, I donno where to start, there is no online documentation for custom icons or flags(have been trying from days). To say clearly what I tried, in vs2013, Outlook.OlFlagIcon. - then vs2013 shows list of available flags, but there is no method like add.

user2349115
  • 1,288
  • 2
  • 17
  • 34
  • Please explain us what you are using: Winforms, WPF and/or what you already tried. And about support: I think the people of this site will help you, but please describe the trouble that you have in a clear way. – Sjips Nov 29 '14 at 10:34
  • Thanks for your comment. I added extra info. People of this site will help, but I think there are less professional working on c# outlook addin. – user2349115 Nov 29 '14 at 10:52
  • Seems like I need to use categories, I will try and post here again. – user2349115 Nov 29 '14 at 10:58

2 Answers2

1

I want the similar thing to happen but I want a custom icon. Is that possible.

No, it is not. Please read more about that on the add new colmn to view table in outlook forum.

Also it became really difficult to get support on c# outlook addin. Where can I get proper support ?

It depends on what kind of question you want to ask. If you develop a VSTO based add-in I'd recommend asking such questions on the Visual Studio Tools for Office VSTO forum (see MSDN forums). But if you are looking some help regarding the Outlook object model or common programming questions - the Outlook for Developers forum is the right place (see MSDN forums). But you are free to ask your question here also.

You can implement your task using choosing one of the following ways:

  1. Using categories. You can add your own categories in Outlook. See the Categories property of Outlook items for more information.
  2. Customizing the current view for adding a check box which can be bound to a custom property (user property). See the View class from the Outlook object model for more information. The check box will reflect the state - whether an item is uploaded to the server or not.
Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
1

The only way to get a truly custom icon is to design and install your own form with a custom message class (e.g. IPM.Note.MyClass) and associate it with your icon. If you set the MailItem.MessageClass property appropriately, Outlook will show your icon.

You can also set the PR_ICON_INDEX property to one of the predefined integer values (that's how Outlook shows the replied/forwarded icons) - you can play with it in OutlookSpy (I am its author): select a message with a replied/forwarded icon (so that PR_ICON_INDEX is present), click IMessage icon on the OutlookSpy toolbar, double click the PR_ICON_INDEX property to edit its value: there are a few dozen icons available, try values from 1 to 1000 or so, the ranges are not continuous, and the values are not documented of course.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78