[rt-users] Scrip: How do I identify who an email was sent to?

Raed El-Hames rfh at vialtus.com
Wed Apr 1 12:52:27 EDT 2009


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:
> 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
> _______________________________________________
> 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
>   



More information about the rt-users mailing list