Author: sichen
Date: Tue Jan 23 11:25:58 2007
New Revision: 499102

URL: http://svn.apache.org/viewvc?view=rev&rev=499102
Log:
Fixing the content name of attachments to emails so that they show up just as 
the filename, which appears to be the standard for all email systems

Modified:
    
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java

Modified: 
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java?view=diff&rev=499102&r1=499101&r2=499102
==============================================================================
--- 
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java 
(original)
+++ 
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java 
Tue Jan 23 11:25:58 2007
@@ -94,7 +94,7 @@
                                if (attFileName != null && attFileName.length() 
> 17) {
                                        attFileName = 
attFileName.substring(0,17);
                                }
-                               commEventMap.put("contentName", subject + "-" + 
attachmentCount + " " + attFileName);
+                               commEventMap.put("contentName", attFileName);
                                commEventMap.put("drMimeTypeId", 
thisContentType);
                                if (thisContentType.startsWith("text")) {
                                        String content = 
(String)part.getContent();


Reply via email to