Hello,

when I run command zmtrainsa, there happens a Java exception:
Code:
[] INFO: Total messages processed: 12
[] WARN: exception occurred fetching message
javax.mail.internet.ParseException: Expected parameter value, got "?"
        at javax.mail.internet.ParameterList.(ParameterList.java:262)
        at javax.mail.internet.ContentType.(ContentType.java:114)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1331)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
        at com.zimbra.common.zmime.ZMimeBodyPart.updateHeaders(ZMimeBodyPart.java:272)
        at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354)
        at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)
        at com.zimbra.common.zmime.ZMimeMessage.updateHeaders(ZMimeMessage.java:343)
        at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)
        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)
        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)
        at com.zimbra.cs.util.SpamExtract.writeAttachedMessages(SpamExtract.java:379)
        at com.zimbra.cs.util.SpamExtract.extractMessage0(SpamExtract.java:349)
        at com.zimbra.cs.util.SpamExtract.extractMessage(SpamExtract.java:296)
        at com.zimbra.cs.util.SpamExtract.extract(SpamExtract.java:245)
        at com.zimbra.cs.util.SpamExtract.main(SpamExtract.java:194)
[] INFO: Total messages processed: 4
20120611125614 Finished extracting spam/ham from system accounts.
20120611125614 Starting spamassassin training.
netset: cannot include 127.0.0.0/8 as it has already been included
Learned tokens from 12 message(s) (12 message(s) examined)
netset: cannot include 127.0.0.0/8 as it has already been included
Learned tokens from 2 message(s) (3 message(s) examined)
netset: cannot include 127.0.0.0/8 as it has already been included
bayes: synced databases from journal in 0 seconds: 2174 unique entries (2359 total entries)
I'm not really sure if SpamAssassin is even learning anything because of this.
When I've checked with /opt/zimbra/libexec/sa-learn --dump magic --dbpath /opt/zimbra/amavisd/.spamassassin/init/
to see if there is anything in the database, it returned with the following results:
0.000 0 3 0 non-token data: bayes db version
0.000 0 61 0 non-token data: nspam
0.000 0 154 0 non-token data: nham
0.000 0 10338 0 non-token data: ntokens
0.000 0 1115162462 0 non-token data: oldest atime
0.000 0 1117592078 0 non-token data: newest atime
0.000 0 1117592082 0 non-token data: last journal sync atime
0.000 0 0 0 non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta
0.000 0 0 0 non-token data: last expire reduction count
I think the results should be much higher, because SpamAssassin was trained on more the 6000 emails.

Can you please help me sort it out ?

Thank you very much and br,
Jan