I would like to make this suggestion to Philip Hazel for future
consideration. It would be nice to have some hooks in Exim for calling
customized filtering routines. If enabled during compilation, a hook
function would be called at the following stages while a message was
being received via smtp:
- After 'mail from' and 'rcpt to' smtp commands.
- After headers have been read.
- After message body has been read.
One argument to the hook function would tell it at what stage it is
being called. Other arguments would give the function access to all
defined portions of the message, in some documented format. The return
values from the hook function would instruct Exim to either continue, or
abort the SMTP transaction with some error code and error message
string.
Providing such a hook function would allow site-specific filtering code,
written in C and to be linked with Exim, to be added without having to
add unofficial patches to Exim.
Rahul Dhesi <dhesi@???>
--
* This is sent by the exim-users mailing list. To unsubscribe send a
mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/