4D Internet Commands v16IMAP4 Commands, Overview |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v16
IMAP4 Commands, Overview
|
msgNum | uniqueID | Date | From | Subject |
1 | 10005 | 1 Jul 2001 ... | danw@acme.com | Sales lead... |
2 | 10008 | 1 Jul 2001 ... | frank@acme.com | Site-License order |
3 | 10012 | 3 Jul 2001 ... | joe@acme.com | Lunch anyone? |
4 | 20000 | 4 Jul 2002 ... | kelly@acme.com | Your wife called... |
5 | 20001 | 4 Jul 2002 ... | track@fedex.com | FedEx tracking |
During this session, you delete messages number 3 and 4. When you close the current working mailbox, the requested deletions are made. When you log back onto the server, your message list will be re-numbered as follows:
msgNum | uniqueID | Date | From | Subject |
1 | 10005 | 1 Jul 2001 ... | danw@acme.com | Sales lead... |
2 | 10008 | 1 Jul 2001 ... | frank@acme.com | Site-License order |
3 | 20001 | 4 Jul 2002 ... | track@fedex.com | FedEx tracking |
msgNum is not a static value and will vary from one session to another. It will change in relation to other messages in the mailbox at the time the current working mailbox is selected.
However , the uniqueID is a unique number, assigned to the message by the IMAP server in a strictly ascending order. As each message is added to the mailbox, it is assigned a higher ID than the previously added message(s).
Unfortunately, IMAP servers do not use the uniqueID as the primary reference for their messages. When using IMAP commands you will need to specify the msgNum as the reference for messages on the server. Developers may need to be careful when developing solutions which import message references into a database, while leaving the message body itself on the server.
Since the whole point of IMAP is interoperability, and since the latter cannot be tested in a vacuum, the final recommendation is “Test for EVERYTHING.” Therefore, test your client against every server you can get an account on.
For more information, please check out the following sites:
Login | Exactly equiv | No POP parameter for IMAP |
VerifyID | Exactly equiv | |
Delete | Exactly equiv | IMAP commands delete in real time. POP3 waits for POP3_Logout to remove messages permanently. IMAP_SetFlags with \Deleted flag allows you to obtain the same result as the POP3_Delete command |
Logout | Exactly equiv | |
SetPrefs | Exactly equiv | No attachFolder for IMAP, POP3 attachFolder has become optional |
GetPrefs | Exactly equiv | See attachFolder note in SetPrefs |
MsgLstInfo | Exactly equiv | |
MsgInfo | Exactly equiv | |
MsgLst | Exactly equiv | |
UIDToMsgNum | Exactly equiv | IMAP msgUID is a Longint, POP3 msgUID is a string |
Download | Exactly equiv | |
POP3_Reset | No direct equiv | Need combination of IMAP_Search on \Deleted flags and IMAP_SetFlags to remove the \Deleted flag |
POP3_BoxInfo | No direct equiv | Need combination of IMAP_SetCurrentMB &IMAP_MsgLstInfo commands |
IMAP_ MsgNumToUID | No direct equiv | |
GetMessage | Almost Equiv | IMAP is more powerful since it allows you to choose one additional msgPart which is "only body" |
POP3_Charset | No Equiv | IMAP automatically manages charset |
IMAP_Capability | No Equiv | Specific to IMAP protocol |
IMAP_ListMBs | No Equiv | Specific to IMAP protocol |
IMAP_GetMBStatus | No Equiv | Specific to IMAP protocol |
IMAP_SetCurrentMB | No Equiv | Specific to IMAP protocol |
IMAP_GetCurrentMB | No Equiv | Specific to IMAP protocol |
IMAP_CloseCurrentMB | No Equiv | Specific to IMAP protocol |
IMAP_CopyToMB | No Equiv | Specific to IMAP protocol |
IMAP_SubscribeMB | No Equiv | Specific to IMAP protocol |
IMAP_CreateMB | No Equiv | Specific to IMAP protocol |
IMAP_DeleteMB | No Equiv | Specific to IMAP protocol |
IMAP_RenameMB | No Equiv | Specific to IMAP protocol |
IMAP_SetFlags | No Equiv | Specific to IMAP protocol |
IMAP_GetFlags | No Equiv | Specific to IMAP protocol |
IMAP_Search | No Equiv | Specific to IMAP protocol |
IMAP_MsgFetch | No Equiv | Specific to IMAP protocol |
Notes:
Product: 4D Internet Commands
Theme: IC IMAP Review Mail
4D Internet Commands ( 4D Internet Commands v16)