[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:
1422957261.069973+11febcd5ef3a2e5ca1331e7ee7dddb0f11888759
Apr 23 06:23:46 2015 (19383) Uncaught runner exception: expected string or
buffer
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
_dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/var/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/var/local/mailman/Mailman/Handlers/SpamDetect.py", line 142, in
process
    headers += getDecodedHeaders(p, lcset)
  File "/var/local/mailman/Mailman/Handlers/SpamDetect.py", line 74, in
getDecodedHeaders
    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.)


thanks

-- Fil


More information about the Mailman-Users mailing list