[ 
http://issues.apache.org/jira/browse/OFBIZ-56?page=comments#action_12418498 ] 

BJ Freeman commented on OFBIZ-56:
---------------------------------

here is a small change to storeIncomingEmail()

// store a note when the to/from emails are not associated with any
                        // parties in the system
                        String commNote = "";
                        if (partyIdFrom != null) {
                                commEventMap.put("partyIdFrom", partyIdFrom);
                                commEventMap.put("contactMechIdFrom", 
contactMechIdFrom);
                        //      commEventMap.put("contactMechIdTo", 
contactMechIdTo);
                                commEventMap.put("statusId", "COM_ENTERED");
                        } else {
                                // create a task to find party for email
                                commEventMap.put("statusId", 
"COM_UNKNOWN_PARTY");
                                commNote = "Sent from: " + 
UtilMisc.toListArray(addressesFrom);
                        }
                        // modifed 06/20/06 to match the partyIDfrom
                        
                        if (partyIdTo != null) {
                                commEventMap.put("partyIdto", partyIdTo);
                                //moved from PartyIDfrom, since if PartyIDfrom 
is null won't get set.
                                commEventMap.put("contactMechIdTo", 
contactMechIdTo);
                                //no need to status here set in From
                        }else {
                                // create a task to find party for email
                                //this will override the status already set
                                commEventMap.put("statusId", 
"COM_UNKNOWN_PARTY");
                                commNote += "Sent to: " + 
UtilMisc.toListArray(addressesTo);
                        }
                        


> incoming email attachments buggy
> --------------------------------
>
>          Key: OFBIZ-56
>          URL: http://issues.apache.org/jira/browse/OFBIZ-56
>      Project: The Open For Business Project
>         Type: Bug

>   Components: content
>     Versions: SVN trunk
>     Reporter: Si Chen
>      Fix For: SVN trunk

>
> storeIncomingEmail has problems with attachments.  If you send two images, 
> the same image ends up being stored twice.  Some types of content are not 
> stored correctly (such as word docs with images embedded).  Other times the 
> /ViewSimpleContent request has problems retrieving content correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to