You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by OpenMacNews <Op...@speakeasy.net> on 2005/06/27 22:25:22 UTC

minor issues with SA (3.1.0-pre2-r192980) --lint tests on OSX 10.4.1

hi all,

when i test local.cf w/:

    spamassassin --lint \
    --debug \
    --siteconfigpath=/var/Data/SpamAssassin \
    --configpath=/var/Settings/SpamAssassin \
    --config-file=/var/Settings/SpamAssassin \
    --nocreate-prefs

i no fatal ERRORs/issues.

however i DO see/have three (3) minor (?) issues:

(1)

    [2322] warn: plugin: failed to create instance of plugin
    Mail::SpamAssassin::Plugin::TextCat: textcat: languages filename not
    defined at /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Plugin/TextCat.pm
    line 322.

and,

(2)
    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.


(3) despite the " --nocreate-prefs" cmd line option, /var/root/.spamassassin 
*IS* being created with user_prefs in it ...

i've found no googled info on (1), ad what i've found on (2) simply says 
"ignore it" ...

comments?


cheers,

richard

Re: minor issues with SA (3.1.0-pre2-r192980) --lint tests on OSX 10.4.1

Posted by OpenMacNews <Op...@speakeasy.net>.
hi theo,

thx for the reply =)


>>    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
>>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
>
> You have a bug in your config file.  Perhaps "score SOMETHING BODY".

doh! you are right.

i honestly thought i'd caught all of them ... i've been a victim of wordwrap!

>>    [2322] warn: plugin: failed to create instance of plugin
>>    Mail::SpamAssassin::Plugin::TextCat: textcat: languages filename not
>>    defined at
>>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Plugin/TextCat.pm
>>    line 322.
>
> Hrm.  Can't reproduce that.  Works fine by default.

oddly, fixing the above SCORE ... BODY issue also fixed the "TextCat.pm" 
warning!

pls let me know if there's ay add'l info i can provide; or just dismiss the 
'gremlin' ...



also, any insight on the:

    (3) despite the " --nocreate-prefs" cmd line option,
    /var/root/.spamassassin *IS* being created with user_prefs in it ...

issue?

now, the dir only has auto_whitelist in it ...

    ls -al /var/root/.spamassassin/
    total 12
    drwx------    3 root     wheel         102 Jun 27 14:18 .
    drwxr-x---   25 root     wheel         850 Jun 27 14:15 ..
    -rw-------    1 root     wheel       12288 Jun 27 14:18 auto-whitelist

cheers,

richard

Re: minor issues with SA (3.1.0-pre2-r192980) --lint tests on OSX 10.4.1

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Jun 27, 2005 at 01:25:22PM -0700, OpenMacNews wrote:
> (1)
> 
>    [2322] warn: plugin: failed to create instance of plugin
>    Mail::SpamAssassin::Plugin::TextCat: textcat: languages filename not
>    defined at 
>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Plugin/TextCat.pm
>    line 322.

Hrm.  Can't reproduce that.  Works fine by default.

> (2)
>    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
>    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
>    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.
>    [2322] warn: Argument "BODY" isn't numeric in addition (+) at
>    /usr/local/perl_libs/sitelib/Mail/SpamAssassin/Conf.pm line 251.

You have a bug in your config file.  Perhaps "score SOMETHING BODY".

-- 
Randomly Generated Tagline:
Wait a minute, Marge.  I saw "Mrs. Doubtfire."  This is a man in drag!
 
 		-- Homer Simpson
 		   Simpsoncalifragilisticexpiala(annoyed grunt)ocious

Re: [lock_method] issues with SA (3.1.0-pre2-r192980) --lint tests on OSX 10.4.1

Posted by OpenMacNews <Op...@speakeasy.net>.
hi,

i've been trying to track down the reason(s) that /var/root/.spamassassin keeps 
getting created by 'spamassassin --lint ...'.

it seems that it's related to, and varies with, the SA lock_method defined ...

if, in local.cf:

	lock_method nfssafe # this is the default

then, after:

   rm -rf /var/root/.spamassassin

   spamassassin --lint \
   --debug \
   --siteconfigpath=/var/Data/SpamAssassin \
   --configpath=/var/Settings/SpamAssassin \
   --prefs-file=local.cf \
   --nocreate-prefs

grep "locker:" on the output -->

	[2824] dbg: locker: safe_lock: created 
/var/Settings/SpamAssassin/.spamassassin/bayes.lock.devbox.internal.testdomain.com.2824
	[2824] dbg: locker: safe_lock: created 
/var/Settings/SpamAssassin/.spamassassin/bayes.lock.devbox.internal.testdomain.com.2824
	[2824] dbg: locker: safe_lock: created 
/var/root/.spamassassin/auto-whitelist.lock.devbox.internal.testdomain.com.2824
	[2824] dbg: locker: safe_lock: trying to get lock on 
/var/root/.spamassassin/auto-whitelist with 0 retries
	[2824] dbg: locker: safe_lock: link to 
/var/root/.spamassassin/auto-whitelist.lock: link ok
	[2824] dbg: locker: safe_unlock: unlink 
/var/root/.spamassassin/auto-whitelist.lock

and,

ls -al /var/root/.spamassassin
	total 12
	drwx------    3 root     wheel         102 Jun 27 15:57 .
	drwxr-x---   25 root     wheel         850 Jun 27 15:56 ..
	-rw-------    1 root     wheel       12288 Jun 27 15:57 auto-whitelist


whereas if, in local.cf:

	lock_method flock

the same

	spamassassin --lint ...

results in:

	[2838] dbg: locker: safe_lock: created 
/var/root/.spamassassin/auto-whitelist.mutex
	[2838] dbg: locker: safe_lock: trying to get lock on 
/var/root/.spamassassin/auto-whitelist with 30 timeout
	[2838] dbg: locker: safe_lock: link to 
/var/root/.spamassassin/auto-whitelist.mutex: link ok
	[2838] dbg: locker: safe_unlock: unlocked 
/var/root/.spamassassin/auto-whitelist.mutex


ls -al /var/root/.spamassassin
	total 16
	drwx------    4 root     wheel         136 Jun 27 16:02 .
	drwxr-x---   25 root     wheel         850 Jun 27 16:01 ..
	-rw-------    1 root     wheel       12288 Jun 27 16:02 auto-whitelist
	-rw-------    1 root     wheel           5 Jun 27 16:02 auto-whitelist.mutex

in the first case, locks are created where, i presume, they _should_ be -- in 
my defined (siteconfigpath)/.spamassassin, as WELL as in /var/root/...

in the latter case, ONLY in /var/root/...


is this correct behavior? why is anything being created in /var/root? and why 
is it different for the two locking methods?


richard