Paul Smit wrote:
Does this mailutil also works for Dovecot IMAP folders?
AFAIK it works on normal mbx format folders.
2006/2/15, Ronan McGlue <[EMAIL PROTECTED]>:
On Wed, 15 Feb 2006 12:36:29 +0100
Paul Smit <[EMAIL PROTECTED]> wrote:
Hey All,
Can anyone tell me if there is a possibility to empty my
"sa-lean" folder after I scanned it? I want to delete all
mail in that mbox folder, because it's not being used
anymore.
you can use the mail-util command that comes with the washington imap suite.
I use it as a cron on the shared imap autolearn folder here in the university.
cat /etc/cron.hourly/salearn.clean
#!/bin/bash
/usr/bin/sa-learn --spam --mbx /home/spam/spam
/usr/local/bin/mailutil prune /home/spam/spam "before 31-Dec-2010"
/usr/bin/sa-learn --ham --mbx /home/spam/ham
/usr/local/bin/mailutil prune /home/spam/ham "before 31-Dec-2010"
that does the job for us!
HTH
Please help... thanks!
--
Ronan McGlue
Analyst / Programmer
CMC Systems Group
Queens University Belfast