[rt-users] help with scrip (search correspond body)
Ruslan Zakirov
ruz at bestpractical.com
Tue Aug 16 18:49:43 EDT 2011
Hi,
What exactly are you trying to do? Why do you need custom condition
when RT has "On Correspond" out of the box?
On Wed, Aug 17, 2011 at 2:44 AM, Robert Vicchiullo <rob at hautelook.com> wrote:
> Ok that’s worked and I have the following
> my $Content = $self->TransactionObj->Content;
> if( $Content =~ m/Status: resolved/){
> return 0;
> }
> return 1;
>
> problem is when the Content does match and it does return 0;
> it sends out an email and says " This transaction appears to have no content"
>
> -----Original Message-----
> From: ruslan.zakirov at gmail.com [mailto:ruslan.zakirov at gmail.com] On Behalf Of Ruslan Zakirov
> Sent: Sunday, August 14, 2011 1:59 PM
> To: Robert Vicchiullo
> Cc: RT-Users at lists.bestpractical.com
> Subject: Re: [rt-users] help with scrip (search correspond body)
>
> On Sat, Aug 13, 2011 at 12:57 AM, Robert Vicchiullo <rob at hautelook.com> wrote:
>> Need a little help and would appreciate any advice.
>>
>> I am trying to write a scrip for
>>
>> “On Correspond Notify Requestors and Ccs”
>>
>> I have Condition set to User defined and stage set to transactionbatch.
>>
>>
>>
>> In Custom condition I have:
>>
>>
>>
>> my $Content = $self->TransactionObj->Attachments->First->Content;
>
> Try the following:
>
> $self->TransactionObj->Content;
>
> It will find text part in the message and return it content.
>
> [snip]
>
> --
> Best regards, Ruslan.
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Chicago, IL, USA September 26 & 27, 2011
> * San Francisco, CA, USA October 18 & 19, 2011
> * Washington DC, USA October 31 & November 1, 2011
> * Melbourne VIC, Australia November 28 & 29, 2011
> * Barcelona, Spain November 28 & 29, 2011
--
Best regards, Ruslan.
More information about the rt-users
mailing list