On Tue, Jun 24, 2008 at 1:08 PM, Pascal Maes <pascal.maes@xxxxxxxxxxxxxx> wrote: > > Le 23-juin-08 à 21:05, Paul Lesniewski a écrit : > >> On Mon, Jun 23, 2008 at 4:39 AM, Helmut Hullen <Hullen@xxxxxxxxxxx> >> wrote: >>> Hallo, Paulo, >>> >>> Du (presende99) meintest am 16.06.08: >>> >>>> I use squirrel mail on a small network, about 100 users. I >>>> automatically delete the trash on exit, but I also would like to >>>> automatically delete from all folders any e-mails older then 60 >>>> days. >>>> Can any one help me on this? >>> >>> I use "archivemail" for this work, as a seperate cronjob. >>> >>> http://archivemail.sourceforge.net/ >> >> Also, some IMAP servers allow you to specify that mail older than X >> days in folders Y and Z is to be deleted automatically. See your IMAP >> server documentation to see if this is a possibility for you. >> > > For example, with cyrus, you could use a crontab that says : > > 5 0 * * * /usr/cyrus/bin/ipurge -f -d 30 user.\*.SPAM >/tmp/ > purge_spam.log 2>&1 > 5 2 * * * usr/cyrus/bin/ipurge -f -d 7 user.\*.Trash >/tmp/ > purge_trash.log 2>&1 As long as we're getting detailed, Courier IMAP has a setting called IMAP_EMPTYTRASH in /usr/lib/courier-imap/etc/imapd... you can do something like: IMAP_EMPTYTRASH=Trash:7,Sent:30 That file is well-documented with more details about the setting. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users