Re: [Exim] Accessing full message from embedded perl

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: David Saez
CC: Terry.Shows, exim-users
Subject: Re: [Exim] Accessing full message from embedded perl
On Wed, 2 Oct 2002, David Saez wrote:

> Is there any way to access the full message (full headers + full body)
> from within embedded perl ?? it could be very useful as it could be
> used for message filtering instead of hardcoding local_scan functions
> in C.


You can read the -D spool file for the body. The headers are available in
$message_headers. Or you can read and unpick the -H file; its format is
documented.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.