You cannot use spamassassin directly, you need to write a wrapper script that will accept the message on stdin and return the value of X-Spam-Level in the return code.
Jeff On Tue, 2002-07-02 at 09:18, Giuseppe Castagna wrote: > Hi, > > I did not subscribe to the evolution mailing list, so please if you > could Cc the possible answer to to me ... > > > You wrote: > -> Email started on UNIX, so obviously these days there is alot of code > -> available for processing/filtering/etc... email. I'd like to be able t-> use some >of this stuff with evolution. Take SpamAssassin for instance. > -> I'd like to write a perl script that uses the ::SpamAssassin module and-> have it >exit with a 1 or 0 depending on if the message is spam or not, > -> evolution could then file the message or delete it. > -Take a look at the development version, I've alreaded added a "Command" > -filter criterion that runs a program/script/whatever, pipes the message > -stream to the program's stdin, and then allows you to compare the retval > -of said program to determine if the filter matches or not. > - > -I think this pretty much covers what you want. > > ============ > > > Well great, this is exctly what I was looking for and I installed it at > once (look at the X-mailer Field) but ... ergh, how does it work? > > I tried to put something like /usr/bin/spamassassin -PeaL but then *all* > mails match. I guess I'm missing the way to apply spamassassin to the > actual message. Should I use some argument like /usr/bin/spamassassin > -PeaL < "%s" ???? (I've tried it but it does not work) > > Thanks in advance > > ---Beppe--- -- Jeffrey Stedfast Evolution Hacker - Ximian, Inc. [EMAIL PROTECTED] - www.ximian.com _______________________________________________ evolution-hackers maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution-hackers