[Mailmunge] Add Header based on condition in filter_recipient{}

list at ptld.com list at ptld.com
Wed Jul 31 14:10:58 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{}.

One idea explored was adding an identifier to a DB in filter_recipient{} and checking for it in filter_message{}.
However this is on postfix and the docs warn qid isn't reliable in filter_recipient{}.

I don't think tracking To: and Env-From: in a DB to identify it's the same email between filters is reliable.

I started to get excited when i saw privdata(), but it's not carried over between the two filters.

Any ideas how to accomplish this?


More information about the Mailmunge mailing list