Bug 4838 - *noisy* warning: "config: can not determine userstate dir"
Summary: *noisy* warning: "config: can not determine userstate dir"
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P5 trivial
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 19:30 UTC by openmacnews
Modified: 2006-08-01 20:20 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description openmacnews 2006-03-22 19:30:12 UTC
current SA-trunk (r387415) built on OSX 10.4.5

when i run, e.g., sa-learn, i see warning: "config: can not determine userstate
dir".

running SA 'make test', i see the warning on just abt every test.

from #irc i learn from felicity:

"that warning occurs when __userstate__ is used in a path and SA can't find a
directory to use for it (~/.spamassassin by default)

I put it in a week or two ago to fix a really annoying debug problem. the old
version of the code would go through an array to find the first existing
directory, but if none were found, the last one was returned as found. which
caused lots of debugging confusion.

now it returns undef, but also throws a warning when it occurs so that a person
doing debugging can see something odd happened.

feel free to open up a BZ ticket about it.

there seems to be lots of places we call that function
(M::SA::get_and_create_userstate_dir()) where we probably don't need to. either
that or make the warning an info or something."


on my sys, i see that warning DESPITE the fact that i do NOT use "~/" paths,
rather explicitly spec'ing 'other' absolutie path locations for .spamassassin/*.

although i understand it's 'just' a warning ... when running, e.g., 'make test',
seeing it virtually every test is a little disconcerting.

perhaps this warning can be 'quieted down'?

thx.
Comment 1 Theo Van Dinter 2006-08-02 02:02:21 UTC
I believe this was fixed already in 3.1.2. :)
Comment 2 openmacnews 2006-08-02 03:20:56 UTC
once i got past 'new' errors of:

	"Can't locate Debug.pm in @INC"

updating:

	IO::Socket::SSL v0.993 --> v0.994

per,

	http://www.mail-archive.com/dev@spamassassin.apache.org/msg15500.html

(it's always sumthin' !)

w/:

% svn info | grep Revision
	Revision: 421710

% spamassassin --version
	SpamAssassin version 3.2.0-r418131
	  running on Perl version 5.8.8


on:

	% sa-learn ...

i see NO trace of the:

	"config: can not determine userstate dir"

message.

looks good here!

thanks.