--- spambayes-1.0.4/spambayes/Dibbler.py.orig 2005-08-30 21:49:26.000000000 +0900 +++ spambayes-1.0.4/spambayes/Dibbler.py 2006-10-31 20:21:52.000000000 +0900 @@ -527,7 +527,11 @@ headers = [] headers.append("HTTP/1.1 200 OK") headers.append("Connection: close") - headers.append("Content-Type: %s" % contentType) + # 2005-08-30: updated to support iso-2022-jp, by owa. + if contentType == 'text/html': + headers.append("Content-Type: text/html; charset=utf-8") + else: + headers.append("Content-Type: %s" % contentType) headers.append("Date: %s" % httpNow) for name, value in extraHeaders.items(): headers.append("%s: %s" % (name, value))