+1 vote

could you please tell me how can i get priority values of mail message, based on that i need to display priority text

Thanks

by

1 Answer

0 votes
 
Best answer

Use IMail.GetGenericPriority() method. It gets message priority by checking following headers in the specified order: Priority, Importance and X-Priority:

IMail mail = ...

GenericPriority priority = mail.GetGenericPriority();
 switch (priority)
 {
     case GenericPriority.Low:
         break;
     case GenericPriority.Normal:
         break;
     case GenericPriority.High:
         break;
     default:
         throw new ArgumentOutOfRangeException();
 }
by (297k points)
...