The ExtractFile method writes the contents of a message
part, typically a file attachment, to a file on the local system.
This method will automatically decode any binary file
attachments. If the optional MessagePart argument is not
specified, the current message part is used. To determine if the
current message part contains an attachment and to determine its
file name, check the value of the Attachment property.
An error will be returned if the specified message part does not
contain a file attachment.
To search for a file attachment in the current message with a
specific file name, use the FindAttachment method.