> On 18 Feb 2023, at 10:17 AM, Richard Damon <rich...@damon-family.org> wrote: > > On 2/18/23 8:53 AM, Thomas Coradeschi via Mailman-Users wrote: >> Yes, I know a little behind in version updates. Any rate, I am trying to at >> least slow down the bots which are hammering our subscribe pages. >> >> The challenge (and it’s all me) is in getting baby steps to work. >> >> I am looking to start with SUBSCRIBE_FORM_SECRET, but honestly just don’t >> get the definition of a “non-empty string” >> >> The default is SUBSCRIBE_FORM_SECRET = None >> >> If I replace None with anything else, I get the following when I try to >> restart mailman >> >> Traceback (most recent call last): >> File "../bin/mailmanctl", line 107, in <module> >> from Mailman import mm_cfg >> File "/var/lib/mailman/Mailman/mm_cfg.py", line 167, in <module> >> SUBSCRIBE_FORM_SECRET = random >> NameError: name 'random' is not defined >> >> — >> Tom Coradeschi >> tjc...@icloud.com > > The file is a "Python" script, so you need to enter the string as a python > string, something like: > > > SUBSCRIBE_FROM_SECRET = "My Secret”
Ah. Too easy. Thanks! — Tom Coradeschi tjc...@icloud.com ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/ Member address: arch...@jab.org