[Mailmunge] Mailmunge::Response syntax
list at ptld.com
list at ptld.com
Tue Jul 30 15:46:15 EDT 2024
> None of that will work. You should have "return " before the
> Mailmunge::Response objects, in which case you do not need to check
> for message_rejected, etc.
I asked because i found in my older code
filter_message {
$ctx->action_bounce(...);
return if $ctx->message_rejected();
}
which doesn't return an object. So i was wondering if the Mailmunge::Response worked under the hood the same way.
My plan is to update the filer_message{} to using Mailmunge::Response instead of $ctx->action_bounce().
And based on your reply, i believe doing that would be proper, and in doing that it requires returning an object. Thx.
More information about the Mailmunge
mailing list