guettli
guettli

Reputation: 27816

UID of email in IMAP which does not change if mail get moved

I am unsure if this is possible with IMAP:

  1. There is a particular mail in the folder Inbox.
  2. Mail User Agent 1 sees this mail
  3. Mail User Agent 2 moves the mail from folder Inbox to folder "sub-folder"
  4. Mail User Agent 1 wants to access the particular mail.

AFAIK the IDs in IMAP are always relative to the folder (the spec calls it "mailbox").

How can Mail User Agent 1 find the new location of the mail?

Upvotes: 0

Views: 742

Answers (2)

arnt
arnt

Reputation: 9685

Search by its message-id. The message-id is a header field, practically all messages have a unique id because it's used so much.

Imap lets you search by header field, including the message-id field.

Upvotes: 1

AnFi
AnFi

Reputation: 10903

AFAIK it is not possible with "basic IMAP".

AFAIK gmail offers IMAP protocol extension X-GM-MSGID supporting it.

https://developers.google.com/gmail/imap/imap-extensions

Upvotes: 0

Related Questions