You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Paul Smit <pa...@gmail.com> on 2006/02/15 12:36:29 UTC

clear folder after sa-learn scan

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.

Please help... thanks!

Re: clear folder after sa-learn scan

Posted by Paul Smit <pa...@gmail.com>.
When I use this util, one message is created with the following subject:

DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA

Can I change this so it will not create this message?

Regards,

Paul


2006/2/15, Ronan McGlue <r....@qub.ac.uk>:
> On Wed, 15 Feb 2006 12:36:29 +0100
> Paul Smit <pa...@gmail.com> 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!
>


--
 Doctor: You are fat
 Patient: I demand a second opinion
 Doctor: You are ugly
--

Re: clear folder after sa-learn scan

Posted by Ronan <r....@qub.ac.uk>.
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 <r....@qub.ac.uk>:
>> On Wed, 15 Feb 2006 12:36:29 +0100
>> Paul Smit <pa...@gmail.com> 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

Re: clear folder after sa-learn scan

Posted by Paul Smit <pa...@gmail.com>.
Does this mailutil also works for Dovecot IMAP folders?


2006/2/15, Ronan McGlue <r....@qub.ac.uk>:
> On Wed, 15 Feb 2006 12:36:29 +0100
> Paul Smit <pa...@gmail.com> 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!

Re: clear folder after sa-learn scan

Posted by Ronan McGlue <r....@qub.ac.uk>.
On Wed, 15 Feb 2006 12:36:29 +0100
Paul Smit <pa...@gmail.com> 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!