there is my method,like this:
// set the defaults
System.setProperty("mail.mime.decodetext.strict", "false");
System.setProperty("mail.mime.address.strict", "false");
....
File[] fs = dir.listFiles();
....
for (int fi = 0; fi < fsLen; fi++) {
File f = fs[fi];
....
MimeMessage mm = null;
....
FileInputStream fis = new FileInputStream(f);
mm = new MimeMessage(null, fis);
fis.close();
....
String subject = mm.getSubject();
int rowsAffected = jt.update(sql, new Object[]{
getEmail(mm.getFrom()),
getEmail(mm.getRecipients(RecipientType.TO)),
getEmail(mm.getRecipients(RecipientType.CC)),
getEmail(mm.getRecipients(RecipientType.BCC)),
mm.getSentDate(), subject, processDate}, new int[]{
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
Types.VARCHAR, Types.TIMESTAMP, Types.VARCHAR,
Types.TIMESTAMP});
....
it seems that,"mail.mime.decodetext.strict"= "false" does not effect at subject.i got the subjects like this:
=?ISO-2022-JP?B?GyRCIVo7cU5BIVsbKEI=Java=?ISO-2022...
how do set the system properties in my web app with spring&quartz?thank you very much