[rt-users] fun with Klez

Vivek Khera khera at kcilink.com
Tue Aug 13 11:02:10 EDT 2002


>>>>> "BC" == Bruce Campbell <bruce_campbell at ripe.net> writes:

BC> RT::Interface::Email->CheckForLoops from:

BC> 	    if ($RTLoop eq "$RT::rtname") {

BC> to

BC> 	    if ($RTLoop =~ /^\s*$RT::rtname\s*$/ ) {


Great.  I like this approach the best.  I'm using it but modified a
bit for efficiency:

    if ($RTLoop =~ m/\s?$RT::rtname\s?/) {

since the * is greedy.  I suspect that the \s? could just be \b but
I'm happy with it this way.

Thanks for the patch/post!




More information about the rt-users mailing list