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;
$RT::Logger->error($Content);
if( $Content =~ m/Status\:/ ){
$RT::Logger->error("--->found Status...");
return 0;
}
$RT::Logger->error("--->NOT FOUND!!!");
return 1;
but for some reason the content is always blank, and even weirder it somehow
gets in the if statement and logs "--->found status..."
so first off why is it not finding the content, I want to simply check the body
of the email for a string, which I found multiple places on the wiki and list
using the above way. Second why is the if statement finding "Status:" in an
empty string??
--------
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