[Bucardo-general] Patch, Added $self to input for custom code
Ben Allen
bsa at lanl.gov
Sat Mar 21 23:55:02 UTC 2009
Attached is a patch that passes $self in the run_kid_custom_code
function of Bucardo.pm in the $input hashref. This allows customcode,
as used for custom exception and conflict handlers, etc to now easily
use the send_mail function of Bucardo.pm (among other things, but this
was what I needed it for).
send_mail can now be used like such from inside customcode:
send_mail($result->{bucself},{ body => "$result->{warning}\n\n$dump",
subject => "Bucardo Exception" });
Regards,
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: added_self_customcode.patch
Type: application/octet-stream
Size: 453 bytes
Desc: not available
Url : https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20090321/0b2072df/attachment.obj
-------------- next part --------------
More information about the Bucardo-general
mailing list