Identify auto generated Emails from headers

Avinash Kashyap 1 Reputation point
2021-12-24T12:14:35.303+00:00

How can we identify if a mail received is an auto-generated one (OOO) from its headers?
It is required for functionality in the product, otherwise, we are entering in an infinite loop of auto-generated emails to and forth.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
Outlook | Windows | Classic Outlook for Windows | For business
Exchange | Exchange Server | Management
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 158.9K Reputation points MVP Volunteer Moderator
    2021-12-24T13:06:23.46+00:00

    If the messaging system follows RFC3834

    https://datatracker.ietf.org/doc/html/rfc3834

    Automatic responses SHOULD NOT be issued in response to any
    message which contains an Auto-Submitted header field (see below),
    where that field has any value other than "no".

    As an example, in Exchange Online, the following is the header of an OOF:
    Auto-Submitted: auto-generated

    So look for that header and handle based on that.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.