|
Summary
Decode a header field.
Syntax
| Boolean DecodeHdrField (EncodedField) |
Description
This method allows the application to decode header information that may have been
encoded. This method takes an encoded header field (EncodedField) as a parameter
and returns True if the method is successful, or False if the method fails. The EncodedField
parameter should contain the entire field that needs to be decoded.
This method may be called from the OnRecvHeader event during the message extraction
process. The OnRecvHeader event delivers the extracted message information. If the
Filename or FileDesc fields have been encoded, the DecodeHdrField method can be used to
decode these fields.
The control will deliver the decoded header field in one or more OnDecodeField events.
At this time the Filename and FileDesc header fields are the only valid fields to be
encoded and decoded.
Example
Sub Mime_OnRecvHeader (Buffer As String, Length As Integer)
' Filename is encoded - decode
Result = Mime.DecodeHdrField (Mime.Filename)
End
|