IPWorks S/MIME 2020 C++ Edition

Questions / Feedback?

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_SIMAP_MAILBOX 21

IPWORKSSMIME_EXTERNAL void* IPWORKSSMIME_CALL IPWorksSMIME_SIMAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSMIME_EXTERNAL int IPWORKSSMIME_CALL IPWorksSMIME_SIMAP_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 S/MIME 2020 C++ Edition - Version 20.0 [Build 8154]