Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 23:19:26 -0500
From:      Louis LeBlanc <leblanc+freebsd@keyslapper.org>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   More SpamAssassin questions - it won't run.
Message-ID:  <20030206041925.GA96790@keyslapper.org>

next in thread | raw e-mail | index | archive | help
Hey all.  I know this has come up recently, and I've looked at the
pages posted recently.  My problem isn't getting it set up in
procmail, it's getting SpamAssassin to execute without errors.

I know, this is just a little OT.  Sorry, but this is usually the best
place to get answers on almost anything that even comes into contact
with FreeBSD.

I'm running Sendmail, procmail, and Cyrus Imap.

This is what I have in procmail:
:0fw
* WHITE ?? !yes
* FOLDER ?? !trash
| spamassassin -a -P

:0:
* ^X-Spam-Status: Yes
{ FOLDER=spam }

Setting the FOLDER variable tells deliver which imap folder to put the
message in.  deliver gets called later.

Here's what I see in the procmail output:
procmail: Executing "spamassassin,-a,-P"
Can't locate object method "splitpath" via package "File::Spec" at /usr/local/bin/spamassassin line 18.
BEGIN failed--compilation aborted at /usr/local/bin/spamassassin line 38.
procmail: Program failure (2) of "spamassassin"
procmail: Rescue of unfiltered data succeeded


I know this is some kind of perl error, but I'm still quite a ways
from guru status where that's concerned.  I've tried a few things, but
I can't get this working.

Here's what I've guessed are the relevant lines:
Line 6:
use File::Spec;

Line 18:
  my @bin = File::Spec->splitpath($0);

I don't know why this doesn't work.  So far as I can tell the call is
correct.

I've placed this question on the SpamAssassin users list, but no
responses have come up.  It's a pretty low traffic list, and it seems
to be a bit slow.

Any ideas?

Thanks
Lou
-- 
Louis LeBlanc               leblanc@keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

mophobia, n.:
  Fear of being verbally abused by a Mississippian.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030206041925.GA96790>