hey Sean... > > 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.
(mine is at /usr/local/etc.) actually this makes sence - if nothing in the user db then use defaults... > > 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. i don;t think it's a load on dspam it's just a burden if you have a lot of users.... > 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. well since i don;t use dspam in daemon mode i think the dspam.conf is read every time the dspam is called.... i think the debug log is clear on where does dspam check first: > 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 my guess is that dspam first checks for a file under the user name directory in the dspam data directory. than if there's nothing there it looks for the uid in the db preference table and then if it doesn;t find anything there either it goes on and "loads default preferences externally" which i assume it means the dspam.conf. this is the sequence according to my dspam.debug above. the only thing i don't get is why the preferences for uid 0 are loaded too. twice... > On the command line, configure your pref for your user: > dspam_admin ch pref [EMAIL PROTECTED] spamAction tag eventually i'll do that but i want to make sure that those default preferences work for everybody... > Sean thanks again... > > > 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.... >> > > !DSPAM:3,45f7c2f2925353355514740! > >
