Re: [Exim] custom-router

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: tsh
CC: exim-users
Onderwerp: Re: [Exim] custom-router
On Tue, 25 Mar 2003 tsh@??? wrote:

> Is there any way a custom-router could access the message
> headers and body of the address it is trying to route?


Not quite sure what you mean by a "custom-router". Are you talking about
writing a new router in C? Or just about building your own configuration
for an existing router?

In the latter case, you can get at header lines using expansion strings:

$h_xxx: contains the xxx header.
$message_headers contains a concatenation of all the header lines.

The body is harder. $message_body is available, but limited in length.
You don't really want to be loading a 100MB string.

Now, what are you *really* trying to do?

Philip

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