Detecting Outlook autoreply/out-of-office emails

jean picture jean · Jun 22, 2009 · Viewed 29.7k times · Source

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.

Answer

Andris picture Andris · Jan 14, 2013

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