[Mailman-Users] cron - address errors

Mark Sapiro msapiro at value.net
Sun May 28 21:31:44 CEST 2006

Con Wieland wrote:
>Traceback (most recent call last):
>   File "/usr/local/mailman/cron/disabled", line 219, in ?
>     main()
>   File "/usr/local/mailman/cron/disabled", line 162, in main
>     if mlist.getDeliveryStatus(member) <> MemberAdaptor.ENABLED:
>   File "/usr/local/mailman/Mailman/OldStyleMemberships.py", line  
>139, in getDeliveryStatus
>     self.__assertIsMember(member)
>   File "/usr/local/mailman/Mailman/OldStyleMemberships.py", line  
>113, in __assertIsMember
>     raise Errors.NotAMemberError, member
>Mailman.Errors.NotAMemberError: ahref="mailto:bfinkel at uci.edu"

It looks like you have bounce_info for an 'address' that's no longer a
member. Perhaps the bad address was once a member and was removed via
some low level withlist operation that didn't remove the bounce_info.

The following withlist script should find the problem and fix it:

"""Find a bouncing member that's not a member
and remove bounce_info.

Save as bin/find_bad.py

Run via

   bin/withlist -a -r find_bad

def find_bad(mlist):
    for member in mlist.getBouncingMembers():
        if not mlist.isMember(member):
            del mlist.bounce_info[member]
            print 'list: %s - non-member: %s - bounce_info deleted'\
                   % (mlist.internal_name(), member)

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