[Mailmunge] 3.08 change to $ctx->METHOD(@args);
Dianne Skoll
dianne at skollsoft.com
Mon Oct 24 18:50:05 EDT 2022
On Mon, 24 Oct 2022 18:46:07 -0400
list--- via Mailmunge <mailmunge at lists.mailmunge.org> wrote:
> Just to confirm, is log() still one of the actions that requires
> using $self? I notice log() is not listed on the /news page, just
> double checking (wishful thinking) that it wasn't omitted from the
> list.
Check the source...
Mailmunge::Filter::log calls $ctx->log if and only if it's given
a valid Mailmunge::Context object. If it is not, then it assumes
the "$ctx" object is just a queue-ID and it does the logging itself.
But to answer your question: If you have a valid $ctx object, you
can directly call $ctx->log($level, $msg) rather than having to
do $self->log($ctx, $level, $msg).
Regards,
Dianne.
More information about the Mailmunge
mailing list