source: npl/mailserver/dspam/spamaction.patch @ d36701a

gcc484perl-5.22
Last change on this file since d36701a was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 985 bytes
RevLine 
[c5c522c]1--- src/dspam.c-old     2005-03-22 15:52:29.000000000 +0100
2+++ src/dspam.c 2005-03-22 15:52:21.000000000 +0100
3@@ -599,7 +599,7 @@
4         strcmp(_ds_pref_val(PTX, "trainPristine"), "on"))
5     add_xdspam_headers(CTX, ATX, PTX);
6 
7-  if (!strcmp(_ds_pref_val(PTX, "spamAction"), "tag") &&
8+  if ((strstr(_ds_pref_val(PTX, "spamAction"), "tag")!=NULL) &&
9       result == DSR_ISSPAM)
10   {
11     tag_message((struct _ds_message_block *) CTX->message->components->first->ptr, PTX);
12@@ -1563,8 +1563,8 @@
13           if (ATX->source != DSS_CORPUS) {
14             if (ATX->spam_args[0] != 0 ||
15                  (PTX != NULL &&
16-                   ( !strcmp(_ds_pref_val(PTX, "spamAction"), "tag") ||
17-                     !strcmp(_ds_pref_val(PTX, "spamAction"), "deliver") )
18+                   ( strstr(_ds_pref_val(PTX, "spamAction"), "tag")!=NULL ||
19+                     strstr(_ds_pref_val(PTX, "spamAction"), "deliver")!=NULL )
20                  )
21                )
22             {
Note: See TracBrowser for help on using the repository browser.