35

For archival purposes, I am storing a list of emails. I would like to be able to later find a particular message in my Gmail account. A unique message identifier is its Message-ID. However Gmail does not allow searching for it (returns an empty result). I don't really understand why, since the ID is in the message text.

Is there a way to retrieve a message by its Message-ID in Gmail?

45

This is now possible.

Announced in a recent blog post, you can now use a bunch of new search operators, including RFC 822 message ID.

From Gmail Help - Using advanced search

rfc822msgid:

Find a message by the message-id header

Example: rfc822msgid:20050329231145.62086.mail@mail.emailprovider.com

Meaning: Locates the exact message with the specified SMTP message-id.

-2

I use multiple labels on a single conversation.

One label refers to the subject/project and the 2nd label is simply titled "keep". When I need to find one of these important conversations, I just search for "label:projectx label:keep". The result is the small set of conversations that meet both requirements.

  • If you don't want to care "where" your message lives aka the label shouldn't matter, you can use #all as part of the URL when you grab it in a specific message/thread. Like https://mail.google.com/mail/u/0/#all/abc123def456 per this excellent answer, stackoverflow.com/a/24463019/3794873 – dragon788 Dec 4 at 19:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.