4D Internet Commands v16IMAP_GetMBStatus |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v16
IMAP_GetMBStatus
IMAP_GetMBStatus
The IMAP_GetMBStatus command returns the status parameter values of the mailbox specified by mbName. It does not change the current mailbox (see IMAP_SetCurrentMB), nor does it affect the state of any messages in the specified mailbox (in particular, it usually does not cause messages to lose the \Recent flag, but this can vary depending on the IMAP4 server implementation). This is an alternative used to check mailbox status parameters without deselecting the current mailbox. This command is particularly useful to:
Important: We strongly recommend that you do not call the IMAP_GetMBStatus command using the current mailbox. By doing so, you may encounter problems and the information returned will not necessarily be synchronized with the current mailbox status (in particular for new e-mails). imap_ID is a long integer reference to an open connection created with IMAP_Login. mbName is the full name of the existing mailbox for which you want to get the status parameter values. Note: Unlike the IMAP_ListMBs command, the mbName parameter does not accept wildcards. msgNber returns the number of messages in the current mailbox (set to zero when the command is called and returns -1 if error). newMsgNber returns the number of recent messages in the current mailbox (set to zero when the command is called and returns -1 if error). unseenMsgNber returns the number of unseen messages in the current mailbox (set to zero when the command is called and returns -1 if error) mbUID returns the mailbox unique identifier validity value (set to zero when the command is called and returns –1 if error ). With the IMAP4 protocol, the mailbox name is not sufficient to identify a mailbox. As such, a unique identifier validity value is associated with each mailbox. This identifier is particularly valuable for synchronizing tasks.
Siehe auch
|
EIGENSCHAFTEN
Produkt: 4D Internet Commands
GESCHICHTE
Erstellt: 4D Internet Commands 6.8.1 ARTIKELVERWENDUNG
4D Internet Commands ( 4D Internet Commands v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||