Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"mail.mime.decodetext.strict"= "false" does not effect at subject

843834Jul 22 2008 — edited Jul 23 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2008
Added on Jul 22 2008
1 comment
288 views