IPWorks S/MIME 2020 C++ Edition

Questions / Feedback?

MessagePart Event

Fired for each message part when FetchMessageInfo is called.

Syntax

ANSI (Cross Platform)
virtual int FireMessagePart(SIMAPMessagePartEventParams *e);
typedef struct {
const char *PartId;
int64 Size;
const char *ContentType;
const char *Filename;
const char *ContentEncoding;
const char *Parameters;
const char *MultipartMode;
const char *ContentId;
const char *ContentDisposition; int reserved; } SIMAPMessagePartEventParams; Unicode (Windows) virtual INT FireMessagePart(SIMAPMessagePartEventParams *e);
typedef struct {
LPCWSTR PartId;
LONG64 Size;
LPCWSTR ContentType;
LPCWSTR Filename;
LPCWSTR ContentEncoding;
LPCWSTR Parameters;
LPCWSTR MultipartMode;
LPCWSTR ContentId;
LPCWSTR ContentDisposition; INT reserved; } SIMAPMessagePartEventParams;
- (void)onMessagePart:(NSString*)partId :(long long)size :(NSString*)contentType :(NSString*)filename :(NSString*)contentEncoding :(NSString*)parameters :(NSString*)multipartMode :(NSString*)contentId :(NSString*)contentDisposition;
#define EID_SIMAP_MESSAGEPART 9

virtual INT IPWORKSSMIME_CALL FireMessagePart(LPSTR &lpszPartId, LONG64 &lSize, LPSTR &lpszContentType, LPSTR &lpszFilename, LPSTR &lpszContentEncoding, LPSTR &lpszParameters, LPSTR &lpszMultipartMode, LPSTR &lpszContentId, LPSTR &lpszContentDisposition);

Remarks

The PartId parameter denotes the PartId which may be identified in other parts or messages. The format of part id-s is specified by the IMAP RFCs.

The Size parameter gives the size of this part.

The ContentType parameter shows the type of data contained in the part.

The ContentEncoding parameter shows how the data is encoded.

The Filename parameter shows the filename corresponding to the part (if the part was included in the message as an attached file).

The Parameters parameter contains the additional parameters passed to the ContentType header such as the part charset etc.

The MultipartMode parameter shows the how this part relates to the message's whole multipart structure ('mixed', 'alternative', etc.).

The ContentId parameter shows the value of the Content-Id header for the part.

The ContentEncoding parameter shows the value of the Content-Encoding header for the part.

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