Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

unique id #145

Open
lea-lam opened this issue May 27, 2018 · 1 comment
Open

unique id #145

lea-lam opened this issue May 27, 2018 · 1 comment

Comments

@lea-lam
Copy link

lea-lam commented May 27, 2018

what is the uniqeid
it fixed in all sessions?
i can view it in mail source

@mmoo9154
Copy link

@lea-top, I'm not sure which uniqueid you are asking about...

The UID for email messages is generated by the IMAP server when a new message is received. The S22.Imap ImapClient does not have any control over that value. You might want to read through section 2.3.1.1 of RFC 3501 for the details.[1]

The UID of a mesage is fixed in all sessions and for all time. It is assigned at the time the message is created in a particular mailbox, and it NEVER changes.

You seem to ask "Can I view it [the message UID] in mail source?"

You will receive the UID when you call StoreMessage(), StoreMessages(), or Search(). UID's are just uint, so you can view them. You also receive UID's if you register event handlers for the MessageDeleted or NewMessage events.

The UID is not stored in the "mail source". (I am assuming you mean the body of the email message as transmitted over the wire.)

If you are asking about some other "mail source" please help me understand where you are thinking about.

[1] https://tools.ietf.org/html/rfc3501#section-2.3.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants