Page 1 of 1

Extracting lines from RAW emails

Posted: Sun Oct 28, 2012 2:19 pm
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

Re: Extracting lines from RAW emails

Posted: Mon Oct 29, 2012 11:24 pm
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):