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_IMAP_MAILBOX 16

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_IMAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_IMAP_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

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]