Skip to content

Instantly share code, notes, and snippets.

@emory
Created October 10, 2012 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emory/3866253 to your computer and use it in GitHub Desktop.
Save emory/3866253 to your computer and use it in GitHub Desktop.
#---TEST-IP-Addresses
while ($body =~ /X-IP-Addresses\:(.*)\n/gi){
my $ip = $1;
($id,$msg) = $cf->LoadByNameAndQueue (Name=>'TEST-IP-Addresses', Queue=>$queue);
($id,$msg) = $Ticket->AddCustomFieldValue (Field => $cf, Value =>$ip);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment