IPWorks OpenPGP 2020 C++ Edition

Questions / Feedback?

Header Event

Fired every time a header is parsed.

Syntax

ANSI (Cross Platform)
virtual int FireHeader(MIMEHeaderEventParams *e);
typedef struct {
int PartIndex;
const char *Field;
const char *Value; int lenValue; int reserved; } MIMEHeaderEventParams; Unicode (Windows) virtual INT FireHeader(MIMEHeaderEventParams *e);
typedef struct {
INT PartIndex;
LPCWSTR Field;
LPCSTR Value; INT lenValue; INT reserved; } MIMEHeaderEventParams;
- (void)onHeader:(int)partIndex :(NSString*)field :(NSData*)value;
#define EID_MIME_HEADER 2

virtual INT IPWORKSOPENPGP_CALL FireHeader(INT &iPartIndex, LPSTR &lpszField, LPSTR &lpValue, INT &lenValue);

Remarks

The PartIndex parameter contains the index of the part containing the current header. If the header is from the MIME body, this value will be -1. The Field parameter contains the name of the MIME header. The Value parameter contains the header contents. The Header event is fired when a header is parsed, which occurs for each header of the Message when DecodeFromFile, DecodeFromString, or DecodeFromStream is called.

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