Massaging Email Content Before Ticket Creation/Comment/Correspondence

I thought it mikght be as simple as altering rt-mailgate as follows:

Read the message in from STDIN

my %message = write_down_message();
unless( $message{‘filename’} ) {

  • ${ $message{content} } =~ s{Confidentiality.*?End Of Confidentiality}{}g;
    $args{‘message’} = [
    undef, ‘’,
    ‘Content-Type’ => ‘application/octet-stream’,
    Content => ${ $message{‘content’} },
    } else {

but I wouldn’t be writing if that had worked.

Our firm as you can see below, adds a lot of stuff to each outgoing email, and when you combine that with multiple levels of quoting in comment replies something needs to be done if anyone wants to be able to read the ticket through the web interface.

Thanks in advance.

Josh Narins

Director of Application Development
845 Third Ave
7th Floor
New York, NY 10022
Tel: (212) 994-6194
Fax: (212) 994-4260
Mobile: (917) 488-6248


SeniorBridge Statement of Confidentiality: The contents of this email message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. Any dissemination, distribution or copying of this email by an unintended or mistaken recipient is strictly prohibited. In said event, kindly reply to the sender and destroy all entries of this message and any attachments from your system. Thank you.