[Mailman-Users] Error generated by unsubscribe requests
Mark Sapiro
mark at msapiro.net
Tue Feb 17 19:11:52 CET 2009
Kærast wrote:
>
> I've started getting an error message when people try unubscribing from
> my lists by emailing the -unsubscribe addresses. I'm running a
> slightly modified version of 2.1.9 (based on the Debian version with
> a few modifications of my own) The following error appears in the error
> logs
>
> Feb 16 16:09:48 2009 (22125) Uncaught runner exception: 'str' object
> has no attribute 'address' Feb 16 16:09:48 2009 (22125) Traceback (most
> recent call last): File "/usr/lib/mailman/Mailman/Queue/Runner.py",
> line 112, in _oneloop self._onefile(msg, msgdata)
> File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
> keepqueued = self._dispose(mlist, msg, msgdata)
> File "/usr/lib/mailman/Mailman/Queue/CommandRunner.py", line 243, in
> _dispose res.do_command('leave')
> File "/usr/lib/mailman/Mailman/Queue/CommandRunner.py", line 139, in
> do_command return handler.process(self, args)
> File "/usr/lib/mailman/Mailman/Commands/cmd_unsubscribe.py", line 76,
> in process mlist.ConfirmUnsubscription(cpaddr)
> File "/usr/lib/mailman/Mailman/MailList.py", line 1370, in
> ConfirmUnsubscription cookie = self.pend_new(Pending.UNSUBSCRIPTION,
> addr) File "/usr/lib/mailman/Mailman/Pending.py", line 76, in pend_new
> if data[0] == UNSUBSCRIPTION and data[1] == content[0].address:
> AttributeError: 'str' object has no attribute 'address'
>
> Feb 16 16:09:48 2009 (22125) SHUNTING:
> 1234800587.1249299+27b118ff3b62b500de00fd03a570aefcdf1a1ef2
>
>
> Any ideas how I fix this and let people unsubscribe?
The offending statement that throws the exception is line 76 in
/usr/lib/mailman/Mailman/Pending.py
if data[0] == UNSUBSCRIPTION and data[1] == content[0].address:
This is not in the source distribution. If this is a Debian patch,
contact Debian. If this is one of your "few modifications", fix it.
--
Mark Sapiro <mark at msapiro.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