Thanks for your answer Benoit! I will try to explore based on your points. I think another approach could be use Java Mail API to get this done*. *Will explore.
Thank you, Giri On Fri, Mar 6, 2015 at 5:31 AM, Benoit Tellier <btell...@linagora.com> wrote: > Hi Giri, > > This can be done quite easily by providing a mailbox tool for it... > > It would iterate on all messages of all mailboxes and would delete mails > using the internal date. > > It seems not pretty hard to do... > > 1 : Add a method to MailboxMapper allowing you to retrieve the full > list of mailboxes ( not yet implemented ... But I will need it too... ) > 2 : Iterate on all messages of this mailbox. If too old delete it > directly. There's a delete method in the message mapper for that. > > With that you will have a script you can put in some cron to do what you > want. > > Benoit. > > Le 06/03/2015 04:37, Girivaraprasad Nambari a écrit : > > Hi James community, > > > > How are you? > > > > We are using James-beat3.0. We have a unique requirement, > > > > 1) We would need to delete all emails received before certain date > > (automatically) using through some script (or) JMX calls or something > like > > that. Is this supported in James? If so, could you provide some pointers? > > > > We are using mysqldb as backend. > > > > 2) We *don't* want to keep deleted messages in "Trash", delete means > > complete delete from our database. > > > > Any help would be appreciated. > > > > Thank you, > > Giri > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > >