Hi,

I would run the script every day. Provided you make the changes as
suggested it will only keep the last 30 days of messages in the trash and
nothing more.

Bill

Bill

http://www.goodcleanemail.com
http://www.freebsdrocks.net <http://www.centosrocks.net>



On Thu, Nov 8, 2012 at 10:24 AM, Matt Rauch <mattr-li...@eagle.ca> wrote:

> Thanks everyone for the help. We're using qmail, Vpopmail, Dovecot and
> Squirrelmail. If there is something built in to Dovecot I could try that.
> The squirelmail plugin doesn't really look at the date of the message, and
> can only be set to remvoe entire trash after x number of days or x number
> of
> logins. I'll also have a look at Bill's script to see if I can apply it.
>
>         So is the find command I listed not a sae way of going about it?
> Maybe Cron it for every 30 days or something?
>
> Matt
>
> > -----Original Message-----
> > From: Bob Miller [mailto:b...@computerisms.ca]
> > Sent: November-07-12 10:28 PM
> > To: qmailadmin@inter7.com
> > Subject: Re: [qmailadmin] [SPAM] Auto-empty trash items older
> > then a certain age
> >
> > if you happen to be using dovecot, a good server-side
> > soltuion is to set up doveadm to purge old messages using cron.
> >
> >
> >
> >
> > On Wed, 2012-11-07 at 17:43 -0500, Matt Rauch wrote:
> > > Hello,
> > >
> > >     Sorry if this isn't the place to ask, but I've looked
> > all over and
> > > haven't managed to find a clear solution. I'm looking for a way to
> > > have items that have been in the user's .Trash folder for a certain
> > > period of time (lets say 30 days or older) removed automatically. I
> > > thought there must be built-in functionality for this, or a script
> > > someone has come up with to manage this sort of thing. I've see a
> > > squirrelmail plugin that does it based on number of logins
> > or every x
> > > number of days, but it empties the whole trash and doesn't
> > check each message's age individually.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Matt Rauch
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
> 
>
>


!DSPAM:509ba6b133991297616107!

Reply via email to