<span class="Apple-style-span" style="border-collapse: collapse; ">Hrm, that's what I've been trying, here's what I've got so far:<div>condition: user defined</div><div>action: user defined</div><div>template: blank</div>
<div>stage: TransactionCreate</div><div><br></div><div>Custom Condition:</div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">my $Ticket = $self->TicketObj;
my $Transaction = $self->TransactionObj;
my $Attachment = $Transaction->Attachments;
my $AttFirst = $Attachment->First;
my $Content = $AttFirst->Content;
my $test = 0;
$test = 1 if (lc($Content) =~ m/caller hung up/);
if($test == 1) {$Ticket->SetStatus( Status => 'open' , Force => 1,);
return 1;
}return;</span><br></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; "><br></span></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">custom action preparation:</span></div>
<div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">return 1;</span></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; "><br></span></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">custom action cleanup:</span></div>
<div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">$self->TicketObj->SetStatus( "rejected" );
  return 1;</span></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">----</span></div><div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; "><br></span></div>
<div><span style="font-family: '-webkit-monospace'; white-space: pre-wrap; ">I must be doing something wrong tho, it's not working still? I really appreciate all your help, thanks!!</span></div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; white-space: pre-wrap;">P.S. Sorry for sending this to you directly Ruslan, my mistake!</span></div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; white-space: pre-wrap;">-Steve</span></div></span><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 12:21 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Clean up this:<br>
<a href="http://wiki.bestpractical.com/view/ReplyBasedUponContent" target="_blank">http://wiki.bestpractical.com/view/ReplyBasedUponContent</a><br>
Apply this action with obviouse changes:<br>
<a href="http://wiki.bestpractical.com/view/ResolveTicket" target="_blank">http://wiki.bestpractical.com/view/ResolveTicket</a><br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Nov 10, 2008 at 9:04 PM, Steve Hopps <<a href="mailto:steve.hopps@gmail.com">steve.hopps@gmail.com</a>> wrote:<br>
> Hi, I'm sorry if this is noobish, but I'm having trouble figuring out how to<br>
> do it<br>
> We use a service called phonetag to take voicemails and transcribe them<br>
> (with attached .wav files) to emails that reach our helpdesk. The problem is<br>
> about 75% of them are blank, because the caller did not leave a message.<br>
> When that happens the email comes in saying "We're sorry, the caller hung up<br>
> before leaving a message". I'd like to look for "the caller hung up" and<br>
> have RT reject any tickets from emails containing that.<br>
> I tried writing my own conditions based on some samples I found online but I<br>
> can't quite get it working, can anyone recommend some documentation that<br>
> would get me on the right track, or any other kind of help?<br>
> -Steve<br>
</div></div>> _______________________________________________<br>
> <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>
><br>
> Community help: <a href="http://wiki.bestpractical.com" target="_blank">http://wiki.bestpractical.com</a><br>
> Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br>
><br>
><br>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
> Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards, Ruslan.<br>
</font></blockquote></div><br>