Emails arrive correctly into the support queue, and in the first ticket
history entry, I do have the “To: application1@example.com”, which is
good for me.
I would like to access this information (application1@example.com here)
in a scrip, in order to correctly set a custom field.
It is maybe obvious, but I can’t find how to do 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);
Emails arrive correctly into the support queue, and in the first ticket
history entry, I do have the “To: application1@example.com”, which is
good for me.
I would like to access this information (application1@example.com here)
in a scrip, in order to correctly set a custom field.
It is maybe obvious, but I can’t find how to do this.
Anyone?
/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/
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);