Hi Niclas, we use :
ProtocolCodecFilter codecFactory = new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName("US-ASCII"))); That should be "safe" for the SMTPProtocol. So maybe some "SPAM-Bot" is just not getting it right and send an "invalid" formatted message. Bye, Norman 2009/10/29 Niklas Gustavsson <nik...@protocol7.com>: > On Thu, Oct 29, 2009 at 6:44 PM, Norman Maurer <nor...@apache.org> wrote: >> we started to use MINA in the JAMES SMTPServer. Everything works in >> most cases, but sometimes I see the following error message: > > [snip hexdump] > > Contains some HTML, which I guess might be part of a multipart mail. > What charset are you using in your decoder? The exception comes from > the charset your using not being able to decode all the characters in > the message. > > In the case of FtpServer we choose to catch these exceptions and > return an error to the client saying that it was an invalid request. > > /niklas >