[rt-users] Get recipient with scrip

Sven Kloe sk at net-lab.net
Thu May 24 07:37:15 EDT 2007


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 
Sven
Am 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
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Community help: http://wiki.bestpractical.com
> > Commercial support: sales at 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



More information about the rt-users mailing list