[Mailman-Users] identifying and disabling monthly reminders
Mark Sapiro
msapiro at value.net
Fri Oct 12 06:12:07 CEST 2007
Juan Miscaro wrote:
>
>--- Mark Sapiro <msapiro at value.net> wrote:
>>
>> You could use bin/withlist -a with a small script along the lines of
>>
>> def show_reminders(mlist):
>> if mlist.send_reminders:
>> print mlist.real_name
>>
>> See bin/withlist -h for more information.
>
>
>Thank you but I need more guidance. I figure that is a python snippet.
> I put a shebang line pointing to my interpreter and ran the following
>command but the thing bombed:
>
>./bin/withlist -a -r identify_reminder_lists.py
Save the above 3-line script as bin/show_reminders.py (or if you'd
rather save it as bin/identify_reminder_lists.py, change the def to
def identify_reminder_lists(mlist):
)
Then run it via
bin/withlist -a -r show_reminders
(note no .py suffix) or run it with
bin/withlist -a -r identify_reminder_lists
if you used that name.
And you do not need a shebang line in the script. bin/withlist has an
appropriate shebang line and it in turn knows what to do with the -r
script.
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list