substitution variables
I've hacked per-post AES encryption of subscriber addresses into Decorate.py so that I have a subscriber address identifier available for situations where subscribers have lost redirections in force and can't get headers to me.
Everything works, and I can use the substitution %(user_skey)s in the footer, but I get a nasty warning on the Non-digest options page, "Warning: The following illegal substitution variables were found in the msg_footer string: user_skey".
Where in the code can I list this substitution variable so that it doesn't throw this error on this page?
-- Lindsay Haisley | "The only unchanging certainty FMP Computer Services | is the certainty of change" 512-259-1190 | http://www.fmp.com | - Ancient wisdom, all cultures
On 10/06/2015 08:49 PM, Lindsay Haisley wrote:
Where in the code can I list this substitution variable so that it doesn't throw this error on this page?
Add it to the definition of PERSONALIZED_ALLOWEDS in Mailman/Gui/NonDigest.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Wed, 2015-10-07 at 07:32 -0700, Mark Sapiro wrote:
On 10/06/2015 08:49 PM, Lindsay Haisley wrote:
Where in the code can I list this substitution variable so that it doesn't throw this error on this page?
Add it to the definition of PERSONALIZED_ALLOWEDS in Mailman/Gui/NonDigest.py.
And then turn on OWNERS_CAN_ENABLE_PERSONALIZATION in mm_cfg.py and enable personalization for the list, yes?
-- Lindsay Haisley | "The only unchanging certainty FMP Computer Services | is the certainty of change" 512-259-1190 | http://www.fmp.com | - Ancient wisdom, all cultures
On 10/07/2015 08:23 AM, Lindsay Haisley wrote:
On Wed, 2015-10-07 at 07:32 -0700, Mark Sapiro wrote:
On 10/06/2015 08:49 PM, Lindsay Haisley wrote:
Where in the code can I list this substitution variable so that it doesn't throw this error on this page?
Add it to the definition of PERSONALIZED_ALLOWEDS in Mailman/Gui/NonDigest.py.
And then turn on OWNERS_CAN_ENABLE_PERSONALIZATION in mm_cfg.py and enable personalization for the list, yes?
Well, I assumed you'd already done that since I don't see how you can include a recipient unique token in the msg_footer if delivery isn't personalized.
However, all you need is for the list's delivery is to be personalized. Whether you accomplish this by turning on OWNERS_CAN_ENABLE_PERSONALIZATION and setting personalize via the GUI or setting personalize some other way, e.g. via withlist, that's all you need.
If for some reason you're not personalizing, but ensuring a single recipient per SMTP transaction by setting VERP_DELIVERY_INTERVAL = 1 then yes, you would need to either set the list's personalize attribute non-zero or you could add your variable name to ALLOWEDS in Mailman/Gui/Digest.py, but setting personalize is the right way to do it.
If the list's delivery is not personalized and VERP_DELIVERY_INTERVAL is or becomes unequal 1 (and SMTP_MAX_RCPTS is unequal 1) you will wind up decorating multiple recipients messages with the same data.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Wed, 2015-10-07 at 17:13 -0700, Mark Sapiro wrote:
If the list's delivery is not personalized and VERP_DELIVERY_INTERVAL is or becomes unequal 1 (and SMTP_MAX_RCPTS is unequal 1) you will wind up decorating multiple recipients messages with the same data.
Thanks, Mark. I got it working just fine. The KISS principle is best, so I just turned on list owner personalization and went from there. This wasn't required for the solution I developed for AOL spam feedback reports, which involved putting an AES crypt in the Resent-Message-ID header. Only VERP personalization was needed for that.
The personalization performance hit was already on deck by enabling VERP addresses on my lists, so I don't reckon that putting this personalized crypt string in the footers will increase it much.
-- Lindsay Haisley | "The only unchanging certainty FMP Computer Services | is the certainty of change" 512-259-1190 | http://www.fmp.com | - Ancient wisdom, all cultures
participants (2)
-
Lindsay Haisley
-
Mark Sapiro