Mailbox Property
Name of the mailbox selected on the server.
Syntax
ANSI (Cross Platform) char* GetMailbox();
int SetMailbox(const char* lpszMailbox); Unicode (Windows) LPWSTR GetMailbox();
INT SetMailbox(LPCWSTR lpszMailbox);
@property (nonatomic,readwrite,assign,getter=mailbox,setter=setMailbox:) NSString* mailbox; - (NSString*)mailbox; - (void)setMailbox:(NSString*)newMailbox;
#define PID_PIMAP_MAILBOX 20 IPWORKSOPENPGP_EXTERNAL void* IPWORKSOPENPGP_CALL IPWorksOpenPGP_PIMAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSOPENPGP_EXTERNAL int IPWORKSOPENPGP_CALL IPWorksOpenPGP_PIMAP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
"Inbox"
Remarks
This method contains the name of the mailbox selected on the server, and is also used as argument to most methods. Please refer to the class methods for more information.
Example (Open a Mailbox in Read/Write Mode)
IMAPControl.Mailbox = "INBOX" IMAPControl.SelectMailbox
Example (Open a Mailbox in Read-Only Mode)
IMAPControl.Mailbox = "INBOX.Folder" IMAPControl.ExamineMailbox
Data Type
String