Scrip: How do I identify who an email was sent to?

I’ve got four process email accounts that are polled by Fetchmail and
going into a single General queue. From a scrip I need to pull out
that the “To” address is from the original email. I’ve been going
through the wiki site but haven’t bumped into anything yet.

Thanks,
C.Randolph

Hi ;

Try ;

my $contentobj = $self->TransactionObj->Attachments->First();
my $headers = $contentobj->{values}{headers};
if ($headers =~ /\nTo: (.*?)\n/) {
my $to = $1;
}

Regards;

Roy

http://www.vialtus.com/disclaimer.html

Macnlos wrote: