[Mailman-Users] traceback: TypeError: expected string or buffer

Fil fil at rezo.net
Thu Apr 23 07:32:12 CEST 2015

Apr 23 06:23:46 2015 (19383) SHUNTING:
Apr 23 06:23:46 2015 (19383) Uncaught runner exception: expected string or
Apr 23 06:23:46 2015 (19383) Traceback (most recent call last):
  File "/var/local/mailman/Mailman/Queue/Runner.py", line 119, in _oneloop
    self._onefile(msg, msgdata)
  File "/var/local/mailman/Mailman/Queue/Runner.py", line 190, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/var/local/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/var/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/var/local/mailman/Mailman/Handlers/SpamDetect.py", line 142, in
    headers += getDecodedHeaders(p, lcset)
  File "/var/local/mailman/Mailman/Handlers/SpamDetect.py", line 74, in
    v = decode_header(re.sub('\n\s', ' ', v))
  File "/usr/lib/python2.7/re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer

I tried to investigate a bit but it appears that in some cases, v is an
"instance", and the message goes to qfiles/shunt/

Does it ring a bell? (I have to say it might be linked to one of my local
patches, though I really can't see which.)


-- Fil

More information about the Mailman-Users mailing list