How to uniquely identify an email ?

  1. 5 weeks ago

    there should be a way to identify an email ,right ?

    I've read that <Message-ID> is not safe as it might be left blank....

    So, I want my app to check the user's mailbox and remember what mails were opened/processed.... what's the right way to implement this ?

    Thanks a lot....

  2. Kem T

    Mar 19 Pre-Release Testers, Xojo Pro New York

    Store a hash of each message?

  3. That sounds good, Kem....

  4. Problem is hash function returns some characters that are no good for a varchar field....

  5. I had forgotten EncodeHex(hash, true)... It should work now.... :-)

  6. Beatrix W

    Mar 19 Pre-Release Testers Europe (Germany)

    The message ID is only blank for unsent mails. I use the message ID when it's there, a hash of the message when it's not.

  7. Thomas T

    Mar 20 Pre-Release Testers Europe (Germany, Munich)

    @Roman V I had forgotten EncodeHex(hash, true)... It should work now.... :-)

    Instead, use EncodeBase64 - that's more efficient (as it'll be shorter).

  8. Thanks everybody for the feedback!

  9. Kem T

    Mar 20 Pre-Release Testers, Xojo Pro New York

    One thing about Base64 is that you can't use it where the comparison is case-insensitive since the encoding itself is case-sensitive.

or Sign Up to reply!