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 ...

emltohtml
BitDaddys Corp.
$14.00

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

MSGDETACH
MySQL Data Backup Tool
BitDaddys Corp.
FREE

More Info
Free Download

Automatic Daily MySQL Database backups. Powerful Backup Rotations. more ...

CSV2DG
CSV2DG
BitDaddys Corp.
$10.00

More Info
Free Trial
Buy Now!
Create, Edit, Import and Display CSV ( Comma Separated Values) files in an easy to use Data Grid with the ability to print, launch Excel or even launch a custom application. This application allows for quick edit and display of csv data in a format that allows for easy viewing, sorting and printing. You can also customize the apparent program name, company name, report title and visible options 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 ...

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
MSGDETACH
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Detach Email Attachments from your Email and Save them wherever you want! Extract your message attachments from Outlook msg files. more ...

O2X
ODBC 2 C#
BitDaddys Corp.
$5.00

More Info
Free Trial
Buy Now!
Convert ODBC table information into a c# class and a ready to use Visual Studio 2003 project more ...

MSGDETACH
MySql Excel Exporter
BitDaddys Corp.
FREE

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




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