Yep  changed the comparison from equality (eq) to match reg-exp (=~) and was a bit more careful with my expression...<div><br></div><div>  '.*?\@example\.com',</div><div><div><br></div><div>The ? makes the * 'non-greedy' and the back-slashes make the dots literal.</div>
<div><br></div><div>thanks Bart,</div><div>ram</div><div><br></div><br><div class="gmail_quote">On Fri, Feb 3, 2012 at 1:45 AM, Bart <span dir="ltr"><<a href="mailto:bart@pleh.info">bart@pleh.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think your exception list is ok, but this line basically tells the if statement that the content needs to exactly match your list:<div>
<br></div><div><div class="im"><div><font face="'courier new', monospace">  return if grep { $ticketRequestor eq lc($_) } @exceptionList;</font></div>
<div><font face="'courier new', monospace"><br></font></div></div><div><font face="arial, helvetica, sans-serif">Instead of eq you could try using </font><span style="font-family:arial,helvetica,sans-serif">=~ instead, below a little info:</span></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><a href="http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#SymbolExplanations" target="_blank">http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#SymbolExplanations</a></font></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">You might also need to edit the exception list with /@<a href="http://example.com/" target="_blank">example.com/</a>, or something like that.</font></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Maybe someone with a little more programming skills can reply on this ^_^ I'm not sure if the above would work.</font></div>

<div><font face="'courier new', monospace"><br></font></div>-- Bart<br>
<br><br><div class="gmail_quote">Op 2 februari 2012 21:56 schreef Ram Moskovitz <span dir="ltr"><<a href="mailto:ram0502@gmail.com" target="_blank">ram0502@gmail.com</a>></span> het volgende:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Bart,<div>That looks good. I'm having an issue with it though - I need to match against a regexp for the exception list.. I added an entry like '*@<a href="http://example.com" target="_blank">example.com</a>' to @exceptionlist  and rt is still sending out create confirmations. What am I missing?</div>


<div>thanks!</div><div><div><div><br></div><div><br><div class="gmail_quote">On Mon, Jan 30, 2012 at 2:41 AM, Bart <span dir="ltr"><<a href="mailto:bart@pleh.info" target="_blank">bart@pleh.info</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>We had a similar requirement for a bunch of e-mail addresses.</div><div><br></div><div>This can be achieved by editing the autoreply scrip to look something like this:</div><div><ul><li>Condition: User Defined</li>



<li>Action: Auto Reply To Requestors</li><li>Template: Your AutoReply template</li><li>Stage: TransactionCreate</li><li>Custom Condition:</li></ul></div><div><br></div><div><div><font face="'courier new', monospace">my @exceptionList = ('<a href="mailto:name1@example.com" target="_blank">name1@example.com</a>',</font></div>



<div><font face="'courier new', monospace">                     '<a href="mailto:name2@example.com" target="_blank">name2@example.com</a>',</font></div><div><font face="'courier new', monospace">                     '<a href="mailto:name3@example.com" target="_blank">name3@example.com</a>');</font></div>



<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">my $transactionType = $self->TransactionObj->Type;</font></div>
<div><font face="'courier new', monospace">my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);</font></div><div><font face="'courier new', monospace">my $trans = $self->TransactionObj;</font></div>



<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">if ($transactionType eq 'Create') {</font></div>
<div><font face="'courier new', monospace">  return if grep { $ticketRequestor eq lc($_) } @exceptionList;</font></div><div><font face="'courier new', monospace">  my $msgattr = $trans->Message->First;</font></div>



<div><font face="'courier new', monospace">  return 0 unless $msgattr;</font></div><div><font face="'courier new', monospace">  return 1 if $msgattr->GetHeader('Received');</font></div>
<div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace">return 0;</font></div><div><br></div><div>In addition the above only sends an autoreply when someone sends an e-mail, in our case we don't like the autoreply mails when we manually create a ticket (e.g. via quick create).</div>



<div><br></div><div>Hope this helps.</div><div><br clear="all">-- Bart<br>
<br><br><div class="gmail_quote">Op 25 januari 2012 21:02 schreef Ram Moskovitz <span dir="ltr"><<a href="mailto:ram0502@gmail.com" target="_blank">ram0502@gmail.com</a>></span> het volgende:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>
Hey there,<div>I'm looking to not auto-reply on create to inbound emails from a certain domain ( <a href="mailto:anything@example.com" target="_blank">anything@example.com</a> and even <a href="mailto:anything@sd.example.com" target="_blank">anything@sd.example.com</a>). I suppose the right way to go about this is via user defined condition in the global scrip for autoreply on create. I have steps 1 and 3.. what's step 2?</div>




<div><br></div><div>1 return 0 unless $self->TransactionObj->Type eq "Create";</div><div>2 return 0 if #self->TicketObj->???? </div><div>3 return 1</div><div><br></div><div>thanks</div><span><font color="#888888"><div>



ram</div>
<div><br></div>
</font></span><br></div></div>--------<br>
RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
* Boston — March 5 & 6, 2012<br></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div>