Author: sichen Date: Mon Nov 24 09:52:44 2008 New Revision: 720237 URL: http://svn.apache.org/viewvc?rev=720237&view=rev Log: email mime types should not be case sensitive when processing emails
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?rev=720237&r1=720236&r2=720237&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Mon Nov 24 09:52:44 2008 @@ -692,6 +692,7 @@ } String thisContentType = thisContentTypeRaw.substring(0, idx2); if (thisContentType == null || thisContentType.equals("")) thisContentType = "text/html"; + thisContentType = thisContentType.toLowerCase(); String disposition = part.getDisposition(); if (thisContentType.startsWith("multipart") || thisContentType.startsWith("Multipart")) { @@ -777,6 +778,7 @@ if (idx == -1) idx = contentTypeRaw.length(); contentType = contentTypeRaw.substring(0, idx); if (contentType == null || contentType.equals("")) contentType = "text/html"; + contentType = contentType.toLowerCase(); Address[] addressesFrom = message.getFrom(); Address[] addressesTo = message.getRecipients(MimeMessage.RecipientType.TO); Address[] addressesCC = message.getRecipients(MimeMessage.RecipientType.CC);