Re: [Exim] calling log_write() in transport

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Peter A. Savitch
Sujet: Re: [Exim] calling log_write() in transport
On Thu, 14 Aug 2003, Peter A. Savitch wrote:

> Can I call log_write() function during transport time?


Only if the transport is running as exim (or root, but you shouldn't do
that).

> In particular, I wish to log something in appendfile transport, say,
> appendfile.c(2908) in appendfile_transport_entry().


Assuming you are running the transport as a user, the answer is no.

> Actually I'm trying to develop a replicating patch for the appendfile
> transport (MAILDIR).


If you are trying to get out debugging information, the only way to do
it is to add debug_printf() statements.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book