[rt-users] Accessing the original "To:" recipient field
Raphux
raphux at raphux.com
Thu Jan 3 12:23:58 EST 2008
Jason A. Smith a écrit :
> 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 now be set to: application1 at example.com
> }
>
This worked.
I though it would be reachable with an RT object, but I guess that will do.
Thank you!
Regards,
--
Raphael Berlamont.
More information about the rt-users
mailing list