[rt-users] Commands by Email
Andreas Ittgenshorst
rt at ittgenshorst.de
Mon Aug 3 10:20:43 EDT 2009
To remove the commands I added a few lines
to /opt/rt3/local/lib/RT/Transaction_Overlay.pm
# Remove quoted signature.
$content =~ s/\n-- \n(.*?)$//s;
+ # Remove CommandByMail commands
+ my @content = split ("\n",$content);
+ my @new_content = ();
+ foreach ( @content ) {
+ if ( ( $_ =~ /^Requestor:/ ) or
+ ( $_ =~ /^CF.{Foo}:/ ) or
+ ( $_ =~ /^CF.{WhatElse}:/ ) ) {
+ next;
+ }
+ push ( @new_content, $_);
+ }
+ $content = join("\n", at new_content);
+
# What's the longest line like?
my $max = 0;
- Andreas
> Another question, though.. is there a way to strip out the email
> commands from the content of the ticket as it shows up in Request
> Tracker?
>
> -Rich
More information about the rt-users
mailing list