Kalin,
Honestly this is confusing to me as well in Dspam "when are which
preferences used?"
First of all, you can check individual preferences by calling
dspam_admin like this (no pref attribute, as the help file says)
dspam_admin li pref [EMAIL PROTECTED]
This will list all configured preferences for this user. Here is part
of what I find confusing, if you have not configured any custom
preferences here, then you may not get any listed because it is using
the defaults as defined in either /etc/dspam.conf or
/etc/default.prefs. The preferences also don't get written to the db
until they get altered either, which I also find confusing.
I have gotten in the habit of manually setting preferences for users,
just to populate the DB. Not sure if this puts unnecessary load on dspam.
For instance, when dspam receives mail for a user, does it first look to
the db to check existence of prefs, and then if nothing use what is in
memory as default? Or if you set prefs for the user does it add
something to memory that prefs are configured, so it would never query
the db at all? I probably should do some test so I understand this
better myself.
Regarding your uid, I don't know who uid=0 is on your system. If you
deploy the standard auto-increment tables for dspam_users, you will
start with uid=1.
On the command line, configure your pref for your user:
dspam_admin ch pref [EMAIL PROTECTED] spamAction tag
Once you do that, you should see this also in your db
select * from dspam_preferences where uid=3;
If you do not see that spamAction is configured here now, there could be
some other problem.
Sean
kalin mintchev wrote:
here is what i did:
# dspam_admin
syntax: dspam_admin [function] [arguments] [--profile=PROFILE]
add preference [user] [attrib] [value]
change preference [user] [attrib] [value]
delete preference [user] [attrib] [value]
list preference [user] [attrib] [value]
aggregate preference [user]
# dspam_admin list preference [EMAIL PROTECTED] spamAction
#
absolutly nothing... which kinda makes sence - i haven't used the
dspam_admin to set preferences for myslef since i was expecting the ones
in the dspam.conf to kick in. no gui either... yet....
here this is from the debug log:
28133: [03/13/2007 22:07:46] DSPAM Instance Startup
28133: [03/13/2007 22:07:46] input args: /usr/local/bin/dspam
--deliver=innocent,spam --user [EMAIL PROTECTED] --stdout --debug
28133: [03/13/2007 22:07:46] pass-thru args:
28133: [03/13/2007 22:07:46] processing user [EMAIL PROTECTED]
28133: [03/13/2007 22:07:46] loading preferences for user [EMAIL PROTECTED]
28133: [03/13/2007 22:07:46] Loading preferences for uid 3
28133: [03/13/2007 22:07:46] Loading preferences for uid 0
28133: [03/13/2007 22:07:46] Loading preferences for uid 0
28133: [03/13/2007 22:07:46] loaded default preferences externally
.............................................
i looked at the dspam_preferences table and there is only one user there.
| 0 | spamSubject | [SPAM] |
ok. maybe it needs:
| 0 | spamAction | tag |
who is uid 0? it's not in the dspam_virtual_uids table....
... but according to the debug file those preferences - for uid 0 - are
called on my user (twice ?!?!) since (i guess) there are no preferences at
all for uid 3 ( uid 3 = [EMAIL PROTECTED])..... whatever...
then next line "loaded default preferences externally" - i can only hope
that this means "from dspam.conf". and "there are no preferences for uid 3
so use the default ones from dspam.conf".....
still the processed mail that is tagged as "Spam' does not have the
subject altered. and the dspam signarure is written in the headers but it
also appears at the bottom of the message....
now i really don't get which preferences are actually used... if any are...
thanks....