in reply to Postfix: Piping an email into a PERL script
In this example you will see how to send your emails to PERL script.
http://e2mm10.blogspot.com/2013/05/postfix-change-time.html
In Section
Cool Uses for Perl
in reply to Postfix: Piping an email into a PERL script