Re: [Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-19 Thread mouss

Timo Sirainen wrote:

On Fri, 2008-08-15 at 09:57 -0700, Kenneth Porter wrote:
A patch has been proposed for SpamAssassin to process Maildir folders of 
spam:


https://issues.apache.org/SpamAssassin/show_bug.cgi?id=3003

Is this patch compatible with Dovecot's implementation of Maildir? For 
example, is anything needed to avoid stepping on Dovecot's metadata?


Does it modify any messages? 


no, it's a read-only operation. it does not re-evaluate the message nor 
mark it as trained (it stores the message-id in the bayes db for this).




If not, there shouldn't be any problems.




Re: [Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-18 Thread mouss

Kenneth Porter wrote:
A patch has been proposed for SpamAssassin to process Maildir folders of 
spam:


https://issues.apache.org/SpamAssassin/show_bug.cgi?id=3003

Is this patch compatible with Dovecot's implementation of Maildir? For 
example, is anything needed to avoid stepping on Dovecot's metadata?


I always used sa-learn with maildir (without the patch) with no 
problems. the only thing the patch adds is to visit the new/ and cur/ 
subdirs. thus no problems.


Re: [Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-18 Thread Timo Sirainen
On Fri, 2008-08-15 at 09:57 -0700, Kenneth Porter wrote:
 A patch has been proposed for SpamAssassin to process Maildir folders of 
 spam:
 
 https://issues.apache.org/SpamAssassin/show_bug.cgi?id=3003
 
 Is this patch compatible with Dovecot's implementation of Maildir? For 
 example, is anything needed to avoid stepping on Dovecot's metadata?

Does it modify any messages? If not, there shouldn't be any problems.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-18 Thread Kenneth Porter
--On Tuesday, August 19, 2008 6:08 AM +0300 Timo Sirainen [EMAIL PROTECTED] 
wrote:



Does it modify any messages? If not, there shouldn't be any problems.


No, it just identifies which files are messages and reads them to train 
SA's Bayes database. The patch just does better identification.


I typically run sa-learn from a cron job a few times a day. I have 
Uncaught and FalsePositives folders and run it against those to correct 
the automatic training that happens on delivery.




[Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-15 Thread Kenneth Porter
A patch has been proposed for SpamAssassin to process Maildir folders of 
spam:


https://issues.apache.org/SpamAssassin/show_bug.cgi?id=3003

Is this patch compatible with Dovecot's implementation of Maildir? For 
example, is anything needed to avoid stepping on Dovecot's metadata?


Re: [Dovecot] SpamAssassin and Maildir with Dovecot

2008-08-15 Thread Gabriel Millerd
On Fri, Aug 15, 2008 at 11:57 AM, Kenneth Porter [EMAIL PROTECTED] wrote:
 A patch has been proposed for SpamAssassin to process Maildir folders of
 spam:


Nothing on the disk looks modified by the code change, sa-learn is
just reading from the disk fand altering the sa-storage as instructed
by the learn rule switch.

If you learned and then nuked some headers for example, the file size
would change and that would be an issue if you storage that in the
filename (they wouldn't match) as well as the dovecot index for
imap/pop would be off potentially.

Possibly some active imap sessions might be confused as well.

This patch only really is sensitive to the Maildir structure, it has
been able to handle the mail directories.

-- 
Gabriel Millerd