Author: hansbak
Date: Tue Nov 21 01:50:35 2006
New Revision: 477596
URL:
http://svn.apache.org/viewvc?view=rev&rev=477596Log:
output the communicationevent status to be able to run a eca on the value and extended the description
Modified:
incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml
incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
Modified: incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml?view=diff&rev=477596&r1=477595&r2=477596==============================================================================
--- incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml (original)
+++ incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml Tue Nov 21 01:50:35 2006
@@ -115,12 +115,15 @@
location="org.ofbiz.content.email.EmailServices" invoke="storeIncomingEmail" auth="true">
<description>
Process incoming email. Try to determine partyIdFrom from the first SendFrom email address. datetimeStarted and datetimeEnded are the
- sent and received dates respectively, partyIdTo is from the first SendTo email address. If the parties are not found,
+ sent and received dates respectively, partyIdTo is from the first SendTo email address or the delivered-to address. If the parties are not found,
the email addresses are stored in CommunicationEvent.note
- If however it is detected as spam (external) or when the 'from' email address is missing, the service will not return a communicationEventId
+ If however it is detected as spam (external) or when the 'from' email address is missing, the service will not return a communicationEventId.
+ If the party cannot be found the status of the communicationEvent will be set to: COM_UNKNOWN_PARTY.
+ If the parties are found the status is set to COM_ENTERED
</description>
<attribute name="messageWrapper" type="org.ofbiz.service.mail.MimeMessageWrapper" mode="IN"/>
<attribute name="communicationEventId" type="String" mode="OUT" optional="true"/>
+ <attribute name="statusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="storeForwardedEmail" engine="java"
location="org.ofbiz.content.email.EmailServices" invoke="storeForwardedEmail" auth="true">
Modified: incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?view=diff&rev=477596&r1=477595&r2=477596==============================================================================
--- incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Tue Nov 21 01:50:35 2006
@@ -868,6 +868,7 @@
Map results = ServiceUtil.returnSuccess();
results.put("communicationEventId", communicationEventId);
+ results.put("statusId", commEventMap.get("statusId"));
return results;
} catch (MessagingException e) {
Debug.logError(e, module);