Parse an RFC 822 compliant EML file to extract email information such as headers, subject, and content.
eml-file [zipcharset=CHARSET] [zippath=ZIPFILE_PATH] [raw=BOOL] FILE_PATH
- Path to the EML file. Using a wildcard (
*) in the file name, you can retrieve all files containing a specific string pattern in the file name (e.g.
D:\data\eml\*.eml). If you provided the zippath option, input the EML file path in the zip file.
- Character set to be used to decode the ZIP entry name and comment that are not encoded by UTF-8 encoding. Use the preferred MIME name or aliases registered in the following document: http://www.iana.org/assignments/character-sets/character-sets.xhtml
- Path to the ZIP file.
- HTML format to be applied to
f: plain text
The output fields are as follows:
|_file||String||EML file name|
|_time||Date||Sent date from "Date" header|
|mail_from||String||Address from "From" header|
|mail_from_name||String||Display name from "From" header|
|mail_to||String||Addresses from "To" header, delimited by a new line.|
|mail_to_name||String||Display names from "To" header, delimited by a new line.|
|mail_cc||String||Addresses from "Cc" header, delimited by a new line.|
|mail_cc_name||String||Display names from "Cc" header, delimited by a new line.|
|mail_bcc||String||Address from "Bcc" header, delimited by a new line.|
|mail_bcc_name||String||Display names from "Bcc" header, delimited by a new line.|
|mail_content||String||Text or HTML content.|
|mail_attachments||String||Attachment file names, delimited by a new line.|
|mail_headers||String||Header name-value pairs, delimited by a new line.|
|attachments||Array||Elements with file_name and file_size properties.|
Retrieve information by providing the EML file path.
Retrive information when the
zippathoption is provided.
eml-file zippath=image.zip sample.eml