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],

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.
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",

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.
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

I think those two lines should be changed to original values in 3.8.0?

Best Regards

!DSPAM:1011,4892bda2150921240012209!


Reply via email to