[wellylug] Awk / mail processing
Chris Harris
chris.harris at actrix.gen.nz
Tue Feb 25 22:29:42 NZDT 2003
I've done this with chains of grep in the past, eg:
cat mbox | grep -vi Content-Length: | grep -vi MIME-Version: | grep -vi
Content-Type: > new.mail.box
each time I have thought "I must write a little prog to do this for me when
I get 'time'" :-)
> From: Edouard Chalaron [mailto:e.chalaron at paradise.net.nz]
> I was wondering if someone here could indicate me how I could
> process a bunch
> of mail (got by fetchmail) to remove headers and attachements,
> keeping just
> the "from", "subject" "date" and text and save it into one txt file / mail
>
> I thought that (g)awk could be the solution, but any advice on
> this matter
> would be nice, since I know very little about (g)awk.
>
> Thanks
> Edouard
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/0XFolB/TM
---------------------------------------------------------------------~->
.-. Wellington
/V\ Linux
// \\ Users
/( )\ Group
^^-^^
http://wlug.paradise.net.nz/
To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the wellylug
mailing list