Re: Piping to sa-learn

2013-07-26 Thread Karsten Bräckelmann
On Thu, 2013-07-25 at 09:39 +0100, James Griffin wrote: > Thu 25.Jul'13 at 1:31:16 +0200, Karsten Bräckelmann > > NOTE: Be careful of using sa-learn in different environments or ways in > > parallel. For example via the dovecot anti-spam plugin, from a cron job > > harvesting mbox files, maildir,

Re: Piping to sa-learn

2013-07-25 Thread Kareem Dana
Thank you both for those replies. That confirmed exactly what I was looking for. Very helpful. Karsten, concerning your note about sa-learn in different environments, I did a few more tests and it looks like the dovecot antispam plugin does not make any changes to the e-mail message and sa-learn t

Re: Piping to sa-learn

2013-07-25 Thread James Griffin
Thu 25.Jul'13 at 1:31:16 +0200, Karsten Bräckelmann [ ... ] > NOTE: Be careful of using sa-learn in different environments or ways in > parallel. For example via the dovecot anti-spam plugin, from a cron job > harvesting mbox files, maildir, processed through f

Re: Piping to sa-learn

2013-07-24 Thread Karsten Bräckelmann
On Thu, 2013-07-25 at 01:10 +0200, Mark Martinec wrote: > The SA 3.3.2 and the current 3.4.0 both contain a code > that copies stdin to a temporary file in order to make the > ArchiveIterator happy, which only accepts files or directories. > > So the only current advantage of passing a message on

Re: Piping to sa-learn

2013-07-24 Thread Karsten Bräckelmann
On Wed, 2013-07-24 at 10:48 -0500, Kareem Dana wrote: > I am using SpamAssassin 3.3.2 on FreeBSD 9.1. I'd just like to confirm > that I can pipe messages to sa-learn. The following commands should do > the same thing, correct? > > # cat spammail | sa-learn --spam > # sa-learn --spam spammail Corr

Re: Piping to sa-learn

2013-07-24 Thread Mark Martinec
On Wednesday 24 July 2013 17:48:47 Kareem Dana wrote: > I am using SpamAssassin 3.3.2 on FreeBSD 9.1. I'd just like to confirm that > I can pipe messages to sa-learn. The following commands should do the same > thing, correct? > > # cat spammail | sa-learn --spam > # sa-learn --spam spammail Yes,

Piping to sa-learn

2013-07-24 Thread Kareem Dana
I am using SpamAssassin 3.3.2 on FreeBSD 9.1. I'd just like to confirm that I can pipe messages to sa-learn. The following commands should do the same thing, correct? # cat spammail | sa-learn --spam # sa-learn --spam spammail I have tested and they appear to be identical, but ultimately I will