How to determine message UID in IMAP

I work in a mail client project using C #. I use POP and IMAP to communicate with the server. The problem is that I cannot understand why, when I want to get the UID for the message, the result from the POP server and IMAP server is different.

POP
C: UIDL 1
S: +OK 1 UID2-1269789826

and

IMAP
C: $ FETCH 1 (UID)
S: * 1 FETCH (UID 2)
S: $ OK Fetch completed.

Why is the result for getting the UID so different? Is this another feature in IMAP? Any help is appreciated. Thank.

+5
source share
2 answers

POP3 IMAP - . UID, , . , POP3 UID , UID IMAP - 32- ( ).

, IMAP, POP3, UID , , . UID POP3 UID UAP .

RFC 1939 (POP3): , -70 0x21 0x7E, .

RFC 3501 (IMAP): ( (UID)) - 32- , , (. ) 64- , .

+11

IMAP

, GMail ( , ):

  • UID 45
  • UID 5 ( UID )
  • ""
  • UID 46
  • UID 6
  • ...

GMail.com

, UID . Search ("UID 34:*), UID 34 .

UID , .

, , UID, .

+3

All Articles