On 12/28/24 15:13, Scott Neader wrote:
After successfully removing the problematic user (with the two @ in their
email address), I am still seeing a problem with the 'disabled' cron,
pointing to this user that was already removed (thanks to your help).
Here's the cron output (with the offending email address redacted)
# /usr/bin/python -S /usr/lib/mailman/cron/disabled
Traceback (most recent call last):
File "/usr/lib/mailman/cron/disabled", line 224, in <module>
main()
File "/usr/lib/mailman/cron/disabled", line 161, in main
if mlist.getDeliveryStatus(member) <> MemberAdaptor.ENABLED:
File "/usr/lib/mailman/Mailman/OldStyleMemberships.py", line 140, in
getDeliveryStatus
self.__assertIsMember(member)
File "/usr/lib/mailman/Mailman/OldStyleMemberships.py", line 114, in
__assertIsMember
raise Errors.NotAMemberError, member
Mailman.Errors.NotAMemberError: user@@example.com
Thoughts on how I might make this cron happy again? Thank you!!
To clean this completely put the following in a file
```
for attribute in (
mlist.admin_responses,
mlist.bounce_info,
mlist.delivery_status,
mlist.hold_and_cmd_autoresponses,
mlist.language,
mlist.one_last_digest,
mlist.passwords,
mlist.postings_responses,
mlist.request_responses,
mlist.topics_userinterest,
mlist.user_options,
mlist.usernames,
):
try:
del attribute['user@@example.com']
except KeyError:
pass
```
and then run `bin/config_list -i /path/to/file LISTNAME` as before. That
should get all the occurrences. It will print `attribute "attribute"
ignored` which is expected and not a problem. Removing the address from
mlist.delivery_status alone would probably fix this error, but getting
it everywhere will avoid future issues.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
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