<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>Anybody has example 
code showing how to implement a custom condition</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>that would filter 
based on Requestor email ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>I'd like to replace 
the "On Create" by</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>something 
like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003># re-implement the 
code to verify " On Create ", and add</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>if ( not 
$self->TicketObj->Requestors->MemberEmailAddresses =~ 
m/domain.com$/ ) {</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003># abort 
action</SPAN></FONT></DIV>    return undef;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003>} else 
{</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003><SPAN 
class=500594001-11072003># execute action</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500594001-11072003><SPAN 
class=500594001-11072003></SPAN>   return 1</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003>};</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=500594001-11072003>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=2>--</FONT></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial>Gilles-Eric DESCAMPS</FONT></SPAN> 
</P></BODY></HTML>