Yes it is scheduled job which runs periodically. I don't think James has any built capability to run scheduled job (Not 100% sure though).
On Wed, Jun 3, 2015 at 9:29 AM, Gustavo Sousa <sous...@gmail.com> wrote: > You used a crontab task to perform this cleaning periodically? > > Or James has any facility regarding this? > > My best regards, > > Gustavo. > > 2015-06-02 17:22 GMT-03:00 Girivaraprasad Nambari <girinamb...@gmail.com>: > > > I ended up using JavaMail API to delete the messages. It worked fine for > > me. Haven't explored other options. > > > > Thank you, > > Giri > > > > > > > > On Tue, Jun 2, 2015 at 10:50 AM, Gustavo Sousa <sous...@gmail.com> > wrote: > > > > > Dear Colleagues, > > > > > > Did you have success on your approaches? I have the same requirement > and > > I > > > would like to try the MailboxMapper approach, because I believe it > would > > me > > > more graceful. Would you please give me more information regarding this > > > Interface and how to apply it on my server? > > > > > > Thanks in advance. > > > > > > Gustavo. > > > > > > > > > 2015-03-06 12:11 GMT-03:00 Girivaraprasad Nambari < > girinamb...@gmail.com > > >: > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Gustavo Henrique de Araújo e Sousa > > > > > > Bacharel em Ciência da Computação > > > > > > UFLA - Universidade Federal de Lavras > > > > > > > > > -- > Gustavo Henrique de Araújo e Sousa > > Bacharel em Ciência da Computação > > UFLA - Universidade Federal de Lavras >