emailemail-headers

How to guarantee an email is unique?


An email has a Message-ID that is guarenteed unique by either the client program sending the email or the first email server (source).

To declare an email as unique then, I'd need both the Message-ID and an ID of the client program sending the email or first mail server- is this possible? I can't find any reference to the latter in the following email standards:


Solution

  • Mail clients often use a universally unique identifier (UUID) for this purpose – which (in this case) is just a special formatting of a random number. Since 122 of the 128 bits are chosen randomly, the chance of a collision is vanishingly small.

    There are two main reasons why mail clients should add the Message-ID: