How to determine the UID of a message in IMAP
- by Emanuel
I'm working in a mail client project using C#. I'm using both the POP and IMAP protocol to communicate with the server. The problem is than I can not figure out why when I want to get the UID for a message the result from the POP server and the IMAP server are 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 the result for obtaining the UID is so different? In IMAP is another function for this?
Any help is welcome.
Thanks.