Author: vetinari Date: Mon May 12 07:50:48 2008 New Revision: 901 Modified: trunk/docs/plugins.pod
Log: plugin doc: update for pre- / post-connection hooks, other minor corrections Modified: trunk/docs/plugins.pod ============================================================================== --- trunk/docs/plugins.pod (original) +++ trunk/docs/plugins.pod Mon May 12 07:50:48 2008 @@ -419,12 +419,12 @@ Useful for load-management and rereading large config files at some frequency less than once per session. -This hook only works in the F<qpsmtpd-forkserver> and F<qpsmtpd-prefork> -flavours. +This hook is available in the F<qpsmtpd-forkserver>, F<qpsmtpd-prefork> and +F<qpsmtpd-async> flavours. =cut -NOT FOR: -async, apache, -server and inetd/pperl +NOT FOR: apache, -server and inetd/pperl =pod @@ -433,7 +433,8 @@ B<all> incoming connections, no other connection will be accepted while this hook is running! -Arguments this hook receives are: +Arguments this hook receives are (B<NOTE>: currently no C<%args> for +F<qpsmtpd-async>): my ($self,$transaction,%args) = @_; # %args is: @@ -903,8 +904,8 @@ =pod -B<NOTE:> This hook only works in the (x)inetd, -forkserver and -prefork -flavours. +B<NOTE:> This hook does not work in Apache currently. + The only argument is C<$self> and all return codes are ignored, it would be too late anyway :-). @@ -1124,7 +1125,9 @@ =item DENY -Will result in a syntax error, probably not what you want, better use +The client will get a C<syntax error> message, probably not what you want, +better use + $self->qp->respond(502, "Not implemented."); return DONE;
