Thank you, Divesh.

-----Original Message-----
From: Divesh Dutta [mailto:[email protected]] 
Sent: 2009年5月6日 13:45
To: [email protected]
Subject: Re: email

Hello Jack,

As it is mentioned in the very first comment that this JavaMail Listener 
Container triggers MCA (Mail condition Action) rules. Presently there is 
only one MCA rule in mca.xml. *storeIncomingEmail* service is triggered 
and this stores all the incoming mail.

You can also trace storeIncomingEmail service in 
CommunicationEventServices.java for more details. So eventually for now 
by uncommenting this code one can store incoming mails, received on 
email which is configure in General.Properties.

But its major purpose is to trigger MCA rules. Please let me know if you 
need any more help.

Thanks
--
Divesh


Jack Liu wrote:
> Hi, All
>
> http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+
> Setup+Guide
> The document tells how to configure email settings in ${ofbiz install
> dir}/framework/common/config/general.properties
> In ${ofbiz install dir}/framework/base/config/ofbiz-containers.xml there
> is an element container named javamail-container
> <!-- JavaMail Listener Container - Triggers MCA Rules -->
>     <!-- if delete-mail is set to true, will delete messages after
> fetching them. otherwise, will try to mark them as seen 
>         mail.store.protocol supports both imap and pop3, but pop3 will
> not be able to mark messages as seen, so you would need to delete them 
>         Sounds like mail.store.protocol value should be "imaps" for
> GMail inbound emails to work. 
>         Not tested found here
> https://sourceforge.net/forum/message.php?msg_id=5879468 -->
>     <!-- To use the mail listerner just uncomment and go...
>     <container name="javamail-container"
> class="org.ofbiz.service.mail.JavaMailContainer">
>         <property name="delegator-name" value="default"/>
>         <property name="dispatcher-name" value="JavaMailDispatcher"/>
>         <property name="run-as-user" value="system"/>
>         <property name="poll-delay" value="300000"/>
>         <property name="delete-mail" value="false"/>
>         <property name="maxSize" value="100000"/>
>         <property name="default-listener" value="store-listener">
>         <property name="mail.store.protocol" value="imap"/>
>         <property name="mail.host" value="[host]"/>
>         <property name="mail.user" value="[user]"/>
>         <property name="mail.pass" value="[pass]"/>
>         <property name="mail.debug" value="false"/>
>         </property>
>     </container>
> -->
>
> I'd like to know what javamail-container is configured for?
> Does it only delete mails if delete-mail is set to true?
> Thanks.
>
>
> Best Regards,
>
> Jack Liu 
>
>
>   

Reply via email to