Reputation: 27816
I am unsure if this is possible with IMAP:
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
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
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