[rt-users] Accessing the original To: recipient field

2008-01-03 Thread Raphux
Hello list, I'm trying to find how to retrieve -in a scrip- the original To: from a mail submitted ticket. Details : I have a single entry queue (called support), with multiple email aliases. The main adress of that queue is [EMAIL PROTECTED] In my postfix configuration, I created some

Re: [rt-users] Accessing the original To: recipient field

2008-01-03 Thread Jason A. Smith
Try something like this: my $Transaction = $self-TransactionObj; my $header = $Transaction-Attachments-First-GetHeader('To'); my @addr = Mail::Address-parse($header); foreach my $addrobj (@addr) { my $addr = lc $RT::Nobody-UserObj-CanonicalizeEmailAddress($addrobj-address); # $addr should