On Feb 19, 2006, at 4:57 PM, Robin Bowes wrote:
1. Is this normal? i.e. is it correct that this is getting called
three
times?
Johan explained this well.
2. If it is normal, how to I detect the final time it is called as I
only want to log the accepted mail details once? i.e. what changes
between calls to reset_transaction?
Instead of storing the log entry as it's being built in $self->{} you
could use a transaction note; that way it'll be cleared out
automatically with the transaction. (Look for "sub
reset_transaction" in lib/Qpsmtpd/SMTP.pm or lib/Qpsmtpd.pm in trunk
http://svn.perl.org/qpsmtpd/branches/0.3x/lib/Qpsmtpd/SMTP.pm http://
svn.perl.org/qpsmtpd/trunk/lib/Qpsmtpd.pm )
- ask
--
http://askask.com/ - http://develooper.com/