[rt-users] Ticket Requestors returned as hash ref
Mike Friedman
mikef at ack.berkeley.edu
Sun Aug 5 20:10:18 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, 5 Aug 2007 at 15:10 (-0400), Mathew Snyder wrote:
> I've been trying to figure out how to dereference the hash but I haven't
> been successful.
Mathew,
Don't you want $ticket->RequestorAddresses, rather than
$ticket->Requestors? The latter returns the ticket's requestors as an
RT::Group object, whereas the former returns all the Requestor email
addresses as a comma-delimited string.
Mike
======================================================================
>> while (my $ticket = $tix->Next) {
>> print $ticket->Requestors . "\n";
>> if (exists($skipEmails{$ticket->Requestors}) or $ticket->Requestors == "") {
>> next;
>> }
>> else {
>> push @emails, $ticket->Requestors;
>> }
>> # $ticket->SetStatus("deleted");
>> }
_________________________________________________________________________
Mike Friedman Information Services & Technology
mikef at ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://socrates.berkeley.edu/~mikef http://ist.berkeley.edu
_________________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBRrZm7a0bf1iNr4mCEQIumgCg4kXsJm+v7CK2aQDESN6xASExbmgAnixm
Lid+57RUeunctOfc6f5ErXqu
=5UIb
-----END PGP SIGNATURE-----
More information about the rt-users
mailing list