Main Menu
Home

Product Sections
Product Locator
Email Utilities
Database Utilities
Other Products

Reference Sections
Articles
MySQL
Outlook - Import EML
.net Network Security
Flash
Fireworks
PHP
DB/C
Java
Email File Extensions
EML email file extension
MSG email file extension
TNEF email file extension
TXT email file extension
HTML email file extension
Java Script

OISV - Organization of Independant Software Vendors - Charter Member

Recommended Links

Get Firefox



Get Thunderbird  

MySQL

Find good sites at
Find good sites at Gimpsy  

 

Web Master:

Keith Birchfield


How To Extract and Save an Email's Text

In this article we will use a tool to read email from a server, and extract the text portion of each email, in to text files. Each text file will be stored in our preferred output folder, and will be named with a path safe version of the email's subject line. This example concentrates on extracting the main text in the email, but the same tool and methods could be applied to create files containing email addresses, subjects, attachment names and more.

Step 1. Get PopTransAct - Using this powerful tool allows you to read email files from your POP3 server. ( * see here if you want to PopTransAct to read .eml email files on your disk instead of from a server.)

Step 2. Create a Batch File. - This very simple batch file will do the work of creating text files with your email's text in them. This example PopTransAct batch file, has only 1 single and simple command: "type %3 > %4\%2-bodytext.txt" It's that easy! Here is the example batch file for you to download and test.

Step 3. Setup PopTransAct to use Attachment Actions - By using Actions, PopTransAct will parse your email content, and provide you with the Body, or other email fields you want.

Create a very simple csv file with this in it:
Extension,Enabled,Application,Before,Prefix,Suffix,After
.eml,y,CMD,/C START c:\test-fields.bat, "," ,"<safe-subject>" "<bodytext>" "<outputfolder>"
Or, just download this example Comma Separated Values text file here.

Here is an example screen shot of what the Attachments Actions tab should look like for this example email project:

Email Actions Screen Shot

Step 4. Enter your Server Information - With just your email server and account information entered, you will be ready to go.

Here is an example screen shot of what the main PopTransAct screen could look like:

Email Server Setup Screen Shot

Step 5. Execute. In this Example, PopTransAct will create 1 file for every email it reads. Each of these files will contain the extracted text from the body of each of your emails!

 

* You can use emlBridge with PopTransAct. By using emlBridge, you will be able to read .eml files you already have stored on your disks.

 

 

@bitdaddys

Highlighted Products
Email Pack

Email Pack
BitDaddys Corp.
$39.95

More Info
Buy Now!

Email conversion and action pack. Get all of our powerful email utilities for one very low price! more ...

PopTransAct
BitDaddys Corp.
$19.95

More Info
Free Trial
Buy Now!
POP3 Email Transfers and Actions. Extract, Archive Save and Merge Attachments. Archive and forward Messages from any POP3 Account, even gmail! more ...

EML and MSG converter
BitDaddys Corp.
$16.00

More Info
Free Trial
Buy Now!
Convert eml and msg Files into EML, MSG,MHT more ...

MSGDETACH
MySql Excel Exporter
BitDaddys Corp.
FREE

More Info
Free Download
Create Excel Spreadsheets from your MySQL data. more ...

emltohtml
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Convert eml Email Files into HTML Web Pages and more ...

O2X
ODBC2XLS
BitDaddys Corp.
$10.00

More Info
Free Trial
Buy Now!
Convert ODBC to Excel XML or CSV! Offers the user a simple, fast and effective method to extract ODBC Table Data from the local ODBC driver into an application, like Excel, more ...

EMLDETACH
email Open View Pro
BitDaddys Corp.
$19.95

More Info
Trial Version
Buy Pro Now!
View .msg and .eml Email Files Print email. Extract Attachments. Convert to PDF, BMP, GIF, JPG and more ...

outlook EML and MSG converter
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Convert eml and msg Files into EML, MSG,TXT, TNEF, HTML ( requires Outlook ) more ...

MSGDETACH
mboxPack
BitDaddys Corp.
$10.00

More Info
Free Trial
Buy Now!
Pack email files into mbox files. Plain text, individual eml,msg,txt files to Thunderstor compatable and ready to use mbox more ...




About Us | Site Map | Privacy | Contact Us |
©2004-2013 BitDaddys Corp.