You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/05/31 16:22:41 UTC

svn commit: r780433 - /ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java

Author: hansbak
Date: Sun May 31 14:22:41 2009
New Revision: 780433

URL: http://svn.apache.org/viewvc?rev=780433&view=rev
Log:
communications.java: reverting to the original 904 version

Modified:
    ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java

Modified: ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java?rev=780433&r1=780432&r2=780433&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java (original)
+++ ofbiz/branches/release09.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java Sun May 31 14:22:41 2009
@@ -595,25 +595,6 @@
                 contentIndex = "";
                 commEventMap = addMessageBody(commEventMap, (Multipart) messageContent);
             }
-            
-            // select the plain text bodypart
-            String messageBody = null;
-            if (wrapper.getMainPartCount() > 1) {
-            	for (int ind=0; ind < wrapper.getMainPartCount(); ind++) {
-            		BodyPart p = wrapper.getPart(ind + "");
-            		if (p.getContentType().toLowerCase().indexOf("text/plain") > -1) {
-            			messageBody = (String) p.getContent();
-            			break;
-            		}
-            	}
-            }
-            
-            if (messageBody == null ) {
-            	messageBody = wrapper.getMessageBody();
-            }
-                        
-            commEventMap.put("content", messageBody);
-            commEventMap.put("contentMimeTypeId", messageBodyContentType.toLowerCase());            
 
             // check for for a reply to communication event (using in-reply-to the parent messageID)
             String[] inReplyTo = message.getHeader("In-Reply-To");