Get Category Color

S-Soft 646 Reputation points

Hello all.
Anyone knows if a single msg/oft email message saved on disk, saves the category color codes?
Using a sdk to extract some data from such files, I also can GetCategories of MapiMessage which is a collection of useless strings!
User might name a Color Category something like my color.
Need the color codes and don't know to extract which property to get it.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,716 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,071 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
528 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Oskar Shon 866 Reputation points MVP

    If you Export message as msg, then text information from categories should stay, but Color is a RDO repository and works with Categories but that is a deferent mechanizm.
    I build Addin to Categories to that account saved as in POP so I make test and I found deference's. between Exchange and IMAP categories.

    I do export two mails from 2 kind of account type


    And I see that in Exchange color in outside msg is not save, but in IMAP (as on POP) works as well.
    But in object mail (as you can use in code) you can not use Color parameter. Then you should take it as a rule that there are no colors when exporting.



    0 comments No comments

  2. S-Soft 646 Reputation points

    Hey, thanks for the great info, did I understand it correctly that the color code as RGB/Hex etc is not saved/accessible?
    What if we extract the message from pst/ost/olm?
    If that's available there please advise which properties to extract to grab the color codes?

    0 comments No comments

  3. Oskar Shon 866 Reputation points MVP

    mailitem means mail object do not have parameter directly responsible for a color. but only for text category only.
    Colors that RDO mechanizm in application. That worked together to use easy and good looking solution.

    I do not know you can connected to it via VBA.
    In VB.Net I do not go so far if I can call creator.


    0 comments No comments