[ale] Easy way to cut body of email in perl

Mike Harrison meuon at geeklabs.com
Thu Jan 5 04:35:11 EST 2006


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 "$_" ;
                        } ;
                }
        } ; 





More information about the Ale mailing list