none
Check if email is Automatic reply RRS feed

  • Question

  • Using Exchange 2010.

    In Outlook if a message in the Inbox is an automatic reply, "Automatic reply" is shown in front of the subject but it's not actually part of the subject text.

    Is it possible in EWS 2.0 to determine if an email is an "Automatic reply"?

    Obviously I could search the email for "out of office" or "out of the office" text but a person may say something like "away from the office".
    Tuesday, January 15, 2013 2:42 PM

All replies

  • Hello Corey,

    Outlook is using mail tips to get that information.

    http://blogs.technet.com/b/exchange/archive/2009/04/28/3407377.aspx

    Outlook uses the EWS GetMailTips operation. Here is an example request/response.

    http://msdn.microsoft.com/en-us/library/dd877060.aspx

    This is applicable to Exchange 2010 and later.

    With regards, 


    Michael | Microsoft Exchange Developer Content

    The Exchange Development Forum Guide has useful information for using the Exchange Development Forum.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, January 15, 2013 7:11 PM
    Moderator
  • Thanks for clearing that up.  I wasn't sure where that was generated from.

    Unfortunately I have a interesting situation.  Our sales staff, even when out of the office, will submit an email to a designated email address.  This email address is checked every 60 seconds by a Windows Service I made.  If the subject contains valid information, such as a customer ID, the attachments are saved to a particular folder.

    If not then an email is sent back to the sender specifying their missing information.  But since their out of office is enabled in Outlook, an email loop now exists.  Checking their Outlook settings for Out of Office doesn't help.  I need to check each email.  I inquired about this due to the staff here are not required to have a "standard" out of office message.  For the time being, I'll check the body of emails for variations of "out of office".

    Tuesday, January 15, 2013 7:22 PM
  • Hello Corey,

    What if when an email arrives without the customer ID, your application does a GetMailTips request and determines whether Out of Office is set. If the Out of Office is set, you send the email about the missing information and then set a flag on your client to indicate that the client will not respond to the OOF message. You will already know the contents of the OOF to identify the OOF message as you got that information from the MailTip. When the OOF is received by the client, the flag is reset so that you can repeat the process with the next email missing the customer ID. You can use the flag and the MailTip to break the loop.

    Would that work?


    Michael | Microsoft Exchange Developer Content

    The Exchange Development Forum Guide has useful information for using the Exchange Development Forum.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, January 15, 2013 7:31 PM
    Moderator
  • This probably could work but for whatever reason our Exchange administrator hasn't installed SP2 yet.  If I understand correctly, I would need SP2 installed to use the MailTips class.

    Tuesday, January 15, 2013 10:06 PM
  • Hello Corey,

    GetMailTips was introduced Exchange 2010. With that said, the EWS Managed API doesn't appear to have a Mailtips implementation. If you EWS Managed API 2.0, there is a convenient IEWSWebRequest interface for submitting web requests for EWS features not yet implemented in the EWS Managed API.

    I don't have an example of that interface.

    With regards,


    Michael | Microsoft Exchange Developer Content

    The Exchange Development Forum Guide has useful information for using the Exchange Development Forum.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, January 16, 2013 12:08 AM
    Moderator
  • Thanks for your help.  I've spent enough time on this so until our Exchange Server gets SP2 installed, I'll just search the body as various flavors of "out of office".  We only have about a dozen sales people so I'll ask them to use a choice of a few options.
    Wednesday, January 16, 2013 2:29 PM