-------- Original-Nachricht --------
> Datum: Fri, 1 Aug 2008 10:39:09 +0300
> Von: "Ibrahim Harrani" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: [dspam-users] Fwd: global group is not OK in CVS build

> Hi,
> 
> I sent the following mail to dspam-dev, but it seems that it is not
> delivered.
> So I  am forwarding to this list.
> 
> 
> PS: I will forward another mail too..
> 
> 
> ---------- Forwarded message ----------
> From: Ibrahim Harrani <[EMAIL PROTECTED]>
> Date: Thu, Jul 31, 2008 at 4:01 PM
> Subject: global group is not OK in CVS build
> To: [EMAIL PROTECTED]
> 
> 
> Hi,
> 
> I am trying to configure global group in /usr/local/var/dspam/group
> file like below:
> groupname:classification:[EMAIL PROTECTED],
> 
Don't get me wrong, but I think the "[EMAIL PROTECTED]" part is wrong. If 
memory serves me right, then the syntax should be:
groupname:classification:user1,user2,user3


> I compiled dspam-cvs with debug and daemon option, If I issue dspam
> --client -user [EMAIL PROTECTED] ..
> the email is marked as spam but If I try with another user, the result
> is always Innocent.
>
Ah.. I see. You want the user [EMAIL PROTECTED] to be the peer for another user 
classification. Could you try then this:

1) Explicit user list:
[EMAIL PROTECTED]:classification:[EMAIL PROTECTED]

2) Domain based user listing:
[EMAIL PROTECTED]:classification:[EMAIL PROTECTED]


> I recognized that, in the dspam logs there is not clue about global
> configuration. I mean there is no line like :
> "adding user [EMAIL PROTECTED] to classification group groupname",
> 
You want [EMAIL PROTECTED] to be member of a classification group, then you 
should call dspam with --client -user [EMAIL PROTECTED] (see the extra * in 
front of the email address)?


> When I compare with dspam-3.8.0/src/dspam.c with dspam-cvs/src/dspam.c
> the following line was different.
> 
>  // load_agg
> @@ -2344,8 +2382,8 @@
> 
>           while (user != NULL)
>           {
> -            if (!strcmp (user, username) || user[0] == '*' ||
> -               (!strncmp(user, "*@", 2) && !strcmp(user+2,
> strchr(username,'@'))))
> +            if (!strcmp (user, username) || !strcmp(user, "*") ||
> +               (!strncmp(user, "*@", 2) && !strcmp(user+1,
> strchr(username,'@'))))
>             {
> 
> 
> When I change those two line in dspam-cvs like in dspam-3.8.0 (
>            if (!strcmp (user, username) || user[0] == '*' ||
>               (!strncmp(user, "*@", 2) && !strcmp(user+2,
> strchr(username,'@'))))
> )
> 
> Global group started working, It is marking as spam for a user it the
> mail was marked spam for global user.
>
Global groups is not the same as classification groups. Do you have a problem 
with "classification" or with global groups?


> and I see the following lines in the log file.
> 
> 25012: [07/31/2008 15:43:11] adding user [EMAIL PROTECTED] to
> classification group groupname
> 
This is a bug. At least it is a bug if this message get's showed if the user 
doing the training/classification/whatever is "[EMAIL PROTECTED]". DSPAM allows 
wildchars in the whole local part of an email but not for partial matching the 
local part of an email. DSPAM only allows explicit naming of an user (aka: 
[EMAIL PROTECTED], user) or whildchar in the local part (aka: [EMAIL 
PROTECTED]). Assume you have an email [EMAIL PROTECTED], then DSPAM will not 
match that user with the entry [EMAIL PROTECTED] nor will it match the email if 
you use [EMAIL PROTECTED] We could add more complex user matching in the group 
part if needed but so far not much users have requested such functionality. I 
personally would like to go for regexp in user membership matching but this 
would be probably an overkill for most users using DSPAM.


> I think those two lines should be changed to original values in 3.8.0?
> 
No. They should not be changed. Maybe they could be extended to handle more 
complex user membership but reverting them back to the 3.8.0 values would break 
other things (like merged groups).


> Best Regards
> 
// SteveB

> 
> 

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

!DSPAM:1011,48bb001e150924468014734!


Reply via email to