The Perl program would go through the headers and decide on whether the mail should even be forwarded to the alpha-pager (e.g., ignore mailing lists, etc.). If it was worthy of forwarding, another part of the script would modify the message to get as much information across as
Sounds like a typical sendmail solution (i.e. a bit clunky :-)
A simple procmail recipe would suffice in this situation.
-- Aj. Systems Administrator / Developer