Hello All,
We have a requirement to auto reject email with the subject line “Bulk” for the queue name “Incident report”. I have written the scrip for it … Please find the scrip below.
Custom condition:
my $match = “Bulk”;
my $t_subject = $self->TicketObj->Subject;
my $matchqueue = “Incident Reports”;
my $t_queue = $self->TicketObj->queue;
if ( $t_subject =~ /$match/i && $t_queue =~ /$matchqueue/i ) {
return 1;
}
else {
return 0;
}
Custom action preparation code:
return 1;
Custom action commit code:
$self->TicketObj->SetStatus( “rejected” );
return 1;
Please someone help me in verifying the scrip