automatically delete emails after a few days

Cristian Livadaru drac3 at vwclub.ro
Mon Dec 5 12:58:00 EST 2005


On Mon, Dec 05, 2005 at 09:32:25AM -0600, Michael King wrote:
> Strange...
> 
> I use % instead of * - is that just a version difference thing, or should I
> be using * ?
> 
> I'm using:
> 
> cmd="ipurge -X -d 6 -f user/%/SPAM"
> 
> I use the -X so that emails with a date in the distant future (furthest I've
> seen is 2012) don't stick around until then.

how would the correct syntax bee to purge all spam mails from virtual
domains ? 

user/%/SPAM is not enough I have to also pass the domain, I now created
for every domain a cron script like this:

user/%/SPAM at domain1.net
user/%/SPAM at domain2.net
.
.
.

but this should not be a final solution ( well, this is what I sayd some
long long time ago and forgot about it )

Cris

> 
> HTH,
> 
> Michael King, Systems Administrator
> Web International, Inc.
> mking at webinternational.net
> http://www.webinternational.net
> 
> > -----Original Message-----
> > From: info-cyrus-bounces at lists.andrew.cmu.edu [mailto:info-cyrus-
> > bounces at lists.andrew.cmu.edu] On Behalf Of Darin Perusich
> > Sent: Monday, December 05, 2005 7:50 AM
> > To: Thomas Vogt; info-cyrus at lists.andrew.cmu.edu
> > Subject: Re: automatically delete emails after a few days
> > 
> > setup an event using the ipurge command in cyrus.conf, here's an example.
> > 
> > junkrm cmd="ipurge -d 14 -f user/*/Junk" at=0345
> > 
> > Thomas Vogt wrote:
> > > Hi
> > >
> > > Is there an easy way to delete mails after a certain period? Let's
> > > assume every user has a personal "Junk" folder. I want to delete every
> > > email older than 30 days.
> > >
> > > I know it's possible with find(8) but the problem is that I have to
> > > reconstruct every mailbox. This is very painfull if you have 100k
> > > mailboxes.
> > >
> > > Any idea how I can do that? Perhaps with sieve extension?
> > >
> > > Regards,
> > >
> > >
> > > ------------------------------------------------------------------------
> > >
> > > ----
> > > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> > > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> > 
> > --
> > Darin Perusich
> > Unix Systems Administrator
> > Cognigen Corp.
> > darinper at cognigencorp.com
> > ----
> > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> 
> 
> 
> ----
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> 

-- 
Cristian Livadaru
--=[ http://www.livadaru.net/cristian ]=--



More information about the Info-cyrus mailing list