ReplyBasedUponContent
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Here is a simple scrip to send a reply to a email when the contents of the original mail satisfy a particular condition.
Scrip Fields:
Description: Whatever-you-like Condition: Used Defined Action: Autoreply to Requestors Template: roll-your-own-one Stage: TransactionCreate
In the 'Custom Conditions' field :
my $Attachment = $self->TicketObj->TransactionObj->Attachments; my $Content = $Attachment->First->Content; if( $Content =~ m/Open Sesame/ ){ $Ticket->SetStatus( Status => 'open' , Force => 1,); return 1; }
return;