Johan Almqvist said the following on 02/21/2006 02:29 PM: > > On Feb 21, 2006, at 14:29, Robin Bowes wrote: > >> I'm still not clear about how this works. >> >> I'm not actually storing anything - just reading what qpsmtpd does. >> >> What I want to do is log the email sender and recipients at the point >> when the mail has been accepted for delivery. >> >> What I'm not sure of is how to detect when the mail has been accepted >> for delivery. > > > hook_queue, and make sure your plugin is listed _after_ the 'real' > queue plugin in config/plugins. The qpsmtpd design will make sure your > plugin only gets run if the message was successfully queued (i.e. > accepted).
Ah, OK. So not in the logging plugin at all? I'm currently modifying the adaptive logging plugin and would prefer to keep it all in one plugin if possible. Are you suggesting that I don't log success from there at all but instead create a new plugin, which hooks hook_queue and write to the log from there? R.
