[rt-users] Applying the RTIR_FindIP.pm when changing queues instead of On Create

Landon landonstewart at gmail.com
Wed Jun 26 13:26:30 EDT 2013


On 26 June 2013 09:59, Landon <landonstewart at gmail.com> wrote:

> …snip...
> while (my $message = $attachments->Next) {
>   next unless $message->ContentType =~
> m!^(text/html|text/plain|message|text$)!i;
>   my $content = $message->Content;
>   my @lines = split(/\n/,$content);
>   foreach my $line (@lines) {
>     if ($line =~ /($RE{net}{IPv4}|$RE{net}{IPv6})/g) {
>       $CF_Obj->AddValueForObject( Object  => $self->TicketObj, Content =>
> "TEST" )
>           unless grep($1, at inserted);    # *** See note
>         push(@inserted,$ipaddr);
>     }
>   }
> }
>
>
Oh short note…  The code actually says:

        push(@inserted,$1);

-- 
Landon Stewart <LandonStewart at Gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130626/207e0a88/attachment.htm>


More information about the rt-users mailing list