[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Easy way to cut body of email in perl
- Subject: [ale] Easy way to cut body of email in perl
- From: meuon at geeklabs.com (Mike Harrison)
- Date: Thu, 5 Jan 2006 04:35:11 -0500 (EST)
- In-reply-to: <[email protected]>
A snippit of junk code that you can tweak for various purposes.
while(<IN>) {
if (/^From:/) { $from = "T" ; } ;
if(/^Return-Path:/ | /^Received:/ | /^Message-/ | /^Date:/ | /^X-/ ) {
# do nothing
} else {
if ($from eq "T") {
print OUT "$_" ;
} ;
}
} ;