[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Re: Delete emails automatically
From:       Girivaraprasad Nambari <girinambari () gmail ! com>
Date:       2015-06-03 14:11:15
Message-ID: CA+kOeV5iMaTj4isuhOeS3vs3j25u7x_S6fvb_6zqHQ7MyrbJBg () mail ! gmail ! com
[Download RAW message or body]


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 <sousagh@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 <girinambari@gmail.com>=
:
>
> > I ended up using JavaMail API to delete the messages. It worked fine fo=
r
> > me. Haven't explored other options.
> >
> > Thank you,
> > Giri
> >
> >
> >
> > On Tue, Jun 2, 2015 at 10:50 AM, Gustavo Sousa <sousagh@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 th=
is
> > > Interface and how to apply it on my server?
> > >
> > > Thanks in advance.
> > >
> > > Gustavo.
> > >
> > >
> > > 2015-03-06 12:11 GMT-03:00 Girivaraprasad Nambari <
> girinambari@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 <
> btellier@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 delet=
e
> > > 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 i=
t
> > > > > 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 =C3=A9crit :
> > > > > > 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-unsubscribe@james.apache.org
> > > > > For additional commands, e-mail: server-user-help@james.apache.or=
g
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >  Gustavo Henrique de Ara=C3=BAjo e Sousa
> > >
> > >  Bacharel em Ci=C3=AAncia da Computa=C3=A7=C3=A3o
> > >
> > >  UFLA - Universidade Federal de Lavras
> > >
> >
>
>
>
> --
>  Gustavo Henrique de Ara=C3=BAjo e Sousa
>
>  Bacharel em Ci=C3=AAncia da Computa=C3=A7=C3=A3o
>
>  UFLA - Universidade Federal de Lavras
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic