[rt-users] Commands by Email

Rich West Rich.West at wesmo.com
Thu Aug 6 16:38:08 EDT 2009


Being unfamiliar with how to drop things in the local/lib tree, is the
process to simply create a file of the same name and the contents are
added?  or does the file entirely replace the original?

-Rich



On 08/03/2009 10:20 AM, Andreas Ittgenshorst wrote:
> 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?
>>     




More information about the rt-users mailing list