-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi. This is a recurrent issue.

This morning I received this:

"""
Your "cron" job on stargate
/usr/local/bin/python2.5 -S /home/mailman/cron/disabled

produced the following output:

Traceback (most recent call last):
  File "/home/mailman/cron/disabled", line 224, in <module>
    main()
  File "/home/mailman/cron/disabled", line 208, in main
    mlist.sendNextNotification(member)
  File "/home/mailman/Mailman/Bouncer.py", line 280, in sendNextNotification
    msg['Subject'] = 'confirm ' + info.cookie
TypeError: cannot concatenate 'str' and 'NoneType' objects
"""

The problem is, the particular user is marked as "disabled delivery",
but its bounce information is not the responsible for that:

"""
>>> m.getDeliveryStatus("X")
4
>>> m.bounce_info["X"]
<bounce info for member X
        current score: 1.0
        last bounce date: (2011, 4, 13)
        email notices left: 7
        last notice date: (1970, 1, 2)
        confirmation cookie: None
        >
"""

So the delivery is disabled because "bounce", but the bounce score is
too low for it (my threshold is 5.0).

When the "cron" executes "disabled" to send out the reminders, it tries
to send to this user, but the process fails because the user is marked
as "bounce" but no confirmation cookie is available.

So, the process dies. No more notifications mails are send. PANIC! :).

I think I can solve this particular case, for a while, doing
"m.setDeliveryStatus("X", 0)". But I will wait a couple of days, just in
case you want me to do any kind of test.

Checking the logs, I see this: (email and listname not shown)

"""
bounce:Apr 13 09:17:59 2011 (1567) list: X bounce score: 1.0
bounce:Apr 13 13:56:29 2011 (5194) list: X already scored a bounce for
date 13-Apr-2011
bounce:Apr 14 09:00:03 2011 (24248) Notifying disabled member X for
list: list
bounce:Apr 14 12:05:16 2011 (12355) Notifying disabled member X for
list: list
bounce:Apr 14 12:06:21 2011 (12546) Notifying disabled member X for
list: list
bounce:Apr 14 12:17:09 2011 (14017) list: X residual bounce received
bounce:Apr 14 13:31:00 2011 (20518) Notifying disabled member X for
list: list
bounce:Apr 14 13:31:15 2011 (20554) Notifying disabled member X for
list: list
"""

So here we have mailman getting a bounce for the address yesterday, and
the original "notification" try and my subsequent tests, today.

Hipotesis: The user set "disable delivery" but we have some bounces
coming back, so the "disable delivery" sets by user is mutated
incorrectly to "user bouncing", causing this problem.

Some more data:

"""
>>> m.getDeliveryStatusChangeTime("X")
1302776230.914567
>>> import time
>>> time.ctime(1302776230.914567)
'Thu Apr 14 12:17:10 2011'
>>> m.getDeliveryStatus("X")
4
"""

The change date, is consistent with this line on my log:

"""
bounce:Apr 14 12:17:09 2011 (14017) list: X residual bounce received
"""

This happens from time to time, and it is really painful, since others
users are not getting their reminders, or they are getting them too late
and their token has already expired.

I will keep this state for a couple of days, just in case you need some
more info. Then, I will clean it up. But this is a recurrent issue,
happens from time to time.

Thanks for your help!

PS: I am using Mailman 2.1.12 with Python 2.5.

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
j...@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:j...@jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTabjLZlgi5GaxT1NAQJvDwQAk4evdz+3o5rvQ1s0arcPr86vXqdKH4Kp
uqKddRK2GPE8sgjZN704VTUKlDe2BvbftsCTJXIEo2UOvDVy3w95zftYckRVL5f5
Fg0UxPlwG2GjElJLalMKnJyiQ10VGYb6ke+DeXY4EYOYdlzMt0tGvidjjI+obCJv
BuwS0God1O0=
=OCjv
-----END PGP SIGNATURE-----
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to