How to Check if the received mail is OOF using EWS RRS feed

  • Question

  • Hi,

    i have reading mail from our exchange using EWS. as per my requirement i have to process only valid mails using EWS and avoid OOF mails. i am checking ItemType/Class property of mail to identify if it is IPM.NOTE for valid email and IPM.Note.Rules.OofTemplate.Microsoft if mail is OOF. As per our requirement mail are getting auto forwarded from clients exchange server to our organization exchange.most of cases i found out for OOF mails which we received in mailboxes ItemType/Class property is IPM.NOTE.In my testing i am able to figure out using ItemType/Class property if mail is OOF or valid mail.

    can you please help me what are the possible reason why i am unable to get ItemType/class property for OOF mails as IPM.Note.Rules.OofTemplate.Microsoft.

    Sachin Phirke

    Monday, October 21, 2013 7:34 AM

All replies

  • It depends where the OOF messages where generated eg if the messages are being generated internally within your Exchange Organization then you would be getting the IPM.Note.Rules.OofTemplate.Microsoft ItemClass you would also see the OOF icon when you looked at the message in Outlook or OWA. If the OOF messages are being generated outside of your Exchange Org and your receiving them over SMTP then the ItemClass would always be IPM.Note.

    If you control both Exchange organizations involved then you can enable Rich Text Messaging (TNEF) using a Remote domain which means the properties will be transmitted with the Message.

    Otherwise you'll need a workaround such as using the Subject Prefix and check for Autoreply: (and other language specific prefixes)


    Tuesday, October 22, 2013 1:45 AM