<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ruslan,<br>
<br>
<br>
Thanks. I'm not sure where to put this in my code, but I'll pass it
on to my perl guy and I'm sure we'll get this going. Thanks again.<br>
<br>
Kenn<br>
LBNL<br>
<br>
On 5/21/2009 12:49 PM, Ruslan Zakirov wrote:
<blockquote
cite="mid:589c94400905211249m2c199223u8321dfb22b92e7f@mail.gmail.com"
type="cite">
<pre wrap="">my @user_ids;
my $users = $ticket->Cc->UserMembersObj;
while ( my $user = $users->Next ) {
push @user_ids, $user->id;
}
On Thu, May 21, 2009 at 10:50 PM, Ken Crocker <a class="moz-txt-link-rfc2396E" href="mailto:kfcrocker@lbl.gov"><kfcrocker@lbl.gov></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">List,
I've copied the code that RT uses to get the Email address of CC's
and add them as ticket watchers. When I HARD-CODE the Emaill address, it
works fine. The ticket has several CC Watchers. However, I'm having
trouble getting the actual CC Address ID's from the incoming Email. In
my code, I try to identify them with:
my @AddrObj = {$ticket->CcAddresses->id};
That didn't work. Then I tried:
my @AddrObj = [%{$ticket->CcAddresses}];
that didn't work either. The object I try to evaluate is empty. What
am I missing? Can anyone share with me how I can capture those email
address objects so I can evaluate them and then add them to the Ticket
CC? Your help on this will be greatly appreciated. Thanks.
Kenn
LBNL
_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>
Community help: <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>
Commercial support: <a class="moz-txt-link-abbreviated" href="mailto:sales@bestpractical.com">sales@bestpractical.com</a>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at <a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>