Discussion:
Is there any posibility to read all emails usign IMap once a day at
Sesharao
2013-09-16 05:19:20 UTC
Permalink
Hi All,
I am able to read e-mail attachments using IMAP, it will read e-mails for
every time frame mentioned in checkFrequency attribute, /*But i wanted to
read all mails one a day at 10:00AM*/, below you can find my code.


<imap:connector name="IMAP" mailboxFolder="Inbox"
validateConnections="false" checkFrequency="120000"
deleteReadMessages="true" moveToFolder="Processed"/>



<flow name="EmailAttachmentsToLocalDrive">
<description>
Reads Email attachments and write them to local drive.
</description>
<imap:inbound-endpoint user="${mail.user}"
password="${mail.password}" host="${mail.host}"
port="${mail.port}"
transformer-refs="returnAttachments" disableTransportTransformer="true"/>
<collection-splitter/>
<file:outbound-endpoint
connector-ref="emailAttachmentsWriteConnector"
path="${message.incoming.dir}"
outputPattern="#[groovy:payload.name]"/>
</flow>



-----
-Sesha Rao.Nuthanki
--
View this message in context: http://mule.1045714.n5.nabble.com/Is-there-any-posibility-to-read-all-emails-usign-IMap-once-a-day-at-10-00AM-tp5718809.html
Sent from the Mule - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...