Extracting lines from RAW emails

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

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

Extracting lines from RAW emails

Post by Aircut »

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: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Extracting lines from RAW emails

Post by DataMystic Support »

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):
Post Reply