Extracting lines from RAW emails

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Aircut
Posts: 12
Joined: Sun Oct 28, 2012 2:09 pm

Extracting lines from RAW emails

Postby Aircut » Sun Oct 28, 2012 2:19 pm

how can i input the full raw email to textpipe filter and extract only the from, subject and body eliminating all the other email headers

thanks

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Extracting lines from RAW emails

Postby DataMystic Support » Mon Oct 29, 2012 11:24 pm

The body is not like the headers, so you just need to remove header lines not like Subject or From.

First use Filters\Restrict\Matching lines (grep)
with a perl pattern of

Code: Select all

^[a-z_-]+:


Then inside this, use Filters\Remove\Remove lines\Remove non-matching lines
with a perl pattern of

Code: Select all

^(Subject|From):
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest