Get recipient with scrip

Hi all,

I am using a scrip which moves a new (email generated) ticket in another queue.
This works fine if I query the Sender / Requestor, but now I have to know the recipient the “To:” Field (I have several email addresses forwarded into one of RT).
How can I access the “To:”-value from a scrp?

Regards,
Sven

this might help:

$self->TicketObj->QueueObj->CorrespondAddress

Sven Kloe wrote:

Hi,

the correspondAddress is not what I’m searching for.

I queried the DB and saw that the information is only located in the headers.
Now I want to do something like this:
if ($self->TransactionObj->Attachments->Headers =~ m/^To: .email@example.com./i){

}

Untortunaly I don’t get a match.
Is this the right Way to Attach the Headers?

Regards
SvenAm Montag 21 Mai 2007 19:24 schrieb Fahd Sultan:

this might help:

$self->TicketObj->QueueObj->CorrespondAddress

Sven Kloe wrote:

Hi all,

I am using a scrip which moves a new (email generated) ticket in another queue.
This works fine if I query the Sender / Requestor, but now I have to know the recipient the “To:” Field (I have several email addresses forwarded into one of RT).
How can I access the “To:”-value from a scrp?

Regards,
Sven


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Sven Kloe
net-lab GmbH | Frankfurter Str. 99 | 63067 Offenbach
Geschaeftsfuehrer: Andreas John | AG Offenbach, HRB40832
Tel: +49 69 8570033-1 | Fax: -2 | http://www.net-lab.net