Discuss this help topic in SecureBlackbox Forum

TElMessagePartHandler.OnAssemble

TElMessagePartHandler     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


OnAssemble is invoked during message assembly and gives possibility to perform additional handling of the current message part.

Declaration

[C#/Java]
    not available

[VB.NET]
    not available

[Pascal]
    protected function OnAssemble(Destination: TAnsiStringStream; const Charset: AnsiString; HeaderEncoding: TElHeaderEncoding; const BodyEncoding, AttachEncoding: AnsiString; State: TElOnAssembleState; Item: Integer; const sBoundary: AnsiString; var bIsHandled, bStopAssemble: Boolean): ELMIMERESULT;

[PHP]
    not available

[C++]
    not available

Parameters

  • Destination - stream to which assembled data will be written.
  • Charset - charset of the message.
  • HeaderEncoding - type of the header encoding.
  • BodyEncoding - type of the body encoding.
  • AttachEncoding - type of attachment encoding.
  • State - describes assembling event state.
  • Item - contains index of the current element for astAddressFieldItem, astHeaderFieldItem, astBodyPartBefore and astBodyPartAfter states.
  • sBoundary - current boundary value.
  • bIsHandled - True value shows that current event has been handled and assembly for current state has to be excluded from further handling. Final states (with 'After') can not be excluded from handling.
  • bStopAssemble - True value shows that assembly must be interrupted. All further states except astAfter will be skipped. astAfter state is necessary for handler to be able to deallocate resources.

Return value

    Returns 0 (EL_OK) or 1 (EL_WARNING) on success, and Error otherwise.

Description

    Parameters Destination, Charset, HeaderEncoding, BodyEncoding, AttachEncoding, correspond to AssembleMessage method parameters.

See also:     OnParse    

Discuss this help topic in SecureBlackbox Forum