Ok some progress I had
extended org.apache.james.mime4j.message.DefaultMessageBuilder, to include
fields and was not using
org.apache.james.jdkim.impl.Message.newMessageBuilder(). I've changed this
to use a decorator pattern, so the original code is now untouched.
The classcastexception is no long
Hi Stefano,
I was very happy to discover that you where signing millions of email's
initially, now I'm just confused. This is an uncaught exception, so I was
thinking maybe it was unnoticed or something.
I'm using apache-mime4j-0.7.2, apache-jdkim-0.2 lists this as a dependancy
in the maven pom.x