[Mailmunge] Add Header based on condition in filter_recipient{}
list at ptld.com
list at ptld.com
Wed Jul 31 14:32:29 EDT 2024
>> I am hoping for a creative solution. I want to be able to add a header based on a condition that happens in the filter_recipient{}.
>
> Why do you think the test has to be in filter_recipient()?
> filter_recipient() handles one recipient at a time. Post-DATA, you have all the recipients. Can you just move the test from filter_recipient() to the end? Or can you repeat the test?
Maybe. There are a dozen checks done in recipient and any one of them could be the reason i want to add the header. They could also reject the the mail, and moving the checks to filter_message() delays freeing up the connection.
I would have to go back through the code to ensure all of the checks could be done in filter_message(), that they aren't relying on something only available in filter_recipient(). And i cringe at the idea of redoing these checks in a looping of @recipients.
Any other possible ideas before rewriting everything (assuming it would even work logically)?
More information about the Mailmunge
mailing list