|
Summary
Delivers decoded header field
Description
The OnDecodeField will be fired to deliver the decoded header information when the
DecodeHdrField method is called. This event will deliver the value and length of the
decoded header field. The character set and encoding type that were used to encode the
field will also be delivered to the application in this event.
This event may be fired several times to
Example
Sub Mime_OnRecvHeader (Buffer As String, Length As Integer)
' display
Message = "Extracted...." + Chr(10) + Chr(10)
' filename
Result = MIME.DecodeHdrField (Mime.Filename)
' DecodedFilename set in OnDecodeField event
Message = Message & "Filename: " & DecodedFilename & Chr(10)
.
' display message
MsgBox Message, 64, "Sample Program"
End Sub
Private Sub MIME_OnDecodeField(Value As String, Length As Integer,
Charset As Integer, Encoding As Integer)
' delivers decoded field
DecodedFilename = DecodedFilename + Value
End Sub
|