Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting Outlook autoreply/out-of-office emails

Been googling for this and haven't found anything ...

Does anybody know if there is a way, given an Outlook email item, to detect whether it was sent by the "Out Of Office Assistant"? Is there any property that Outlook sets on the object, or any header information, that identifies an email as such? I was hoping not to have to parse the subject line for "Out Of Office", etc.

It would be great if there were some standard, so autoreplies from other email services (like Gmail) could also be detected, but for me Outlook is the highest priority.

like image 442
jean Avatar asked Jun 22 '09 14:06

jean


People also ask

How do you check if someone has an out of office?

Using a smart and AUTOMATIC feature of Outlook called Mail Tips. All that you have to do is to LOOK. While you are adding email ids of recipients, Outlook is checking if they are Out of Office. If they are, it will display their ACTUAL OOF message.

How do I find my out of office history?

This feature is stored in a set variable and is overwritten when a new out of office message is created. You can only view the most recent message & settings by going into the out of office assistant (where it'll show until it's changed again).

Can you see sent automatic replies in Outlook?

You can find this in the top left corner of your window. Then click Automatic Replies (Out of Office). The Automatic Replies window will then appear. Note: If you are using an older version of Outlook, such as Outlook 2007, go to Tools > Out of Office Assistant.


2 Answers

Look for these headers:

  • x-autorespond
  • precedence or x-precedence with value "auto_reply", "bulk" or "junk"
  • auto-submitted with value "auto-replied"
  • x-auto-response-suppress (not always, see answer below)

And subjects starting with:

  • Auto:
  • Automatic reply
  • Autosvar
  • Automatisk svar
  • Automatisch antwoord
  • Abwesenheitsnotiz
  • Risposta Non al computer
  • Automatisch antwoord
  • Auto Response
  • Respuesta automática
  • Fuori sede
  • Out of Office
  • Frånvaro
  • Réponse automatique
like image 96
Andris Avatar answered Oct 12 '22 06:10

Andris


This question often comes up in Google, so I decided to add an important note.

Don't ever use X-Auto-Response-Suppress in your filters as suggested in the other answer.

X-Auto-Response-Suppress is used by Exchange to tell other servers to not send auto-replies in response to an email. It doesn't mean that this email is an auto-response.

We had to learn it the hard way, hope you won't have to. I've also wrote a blog post with more details: http://www.jitbit.com/maxblog/18-detecting-outlook-autoreplyout-of-office-emails-and-x-auto-response-suppress-header/

like image 21
Max Al Farakh Avatar answered Oct 12 '22 06:10

Max Al Farakh