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

gcc484ntopperl-5.22
Last change on this file since c5c522c 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
  • src/dspam.

    old new  
    599599        strcmp(_ds_pref_val(PTX, "trainPristine"), "on"))
    600600    add_xdspam_headers(CTX, ATX, PTX);
    601601
    602   if (!strcmp(_ds_pref_val(PTX, "spamAction"), "tag") &&
     602  if ((strstr(_ds_pref_val(PTX, "spamAction"), "tag")!=NULL) &&
    603603      result == DSR_ISSPAM)
    604604  {
    605605    tag_message((struct _ds_message_block *) CTX->message->components->first->ptr, PTX);
     
    15631563          if (ATX->source != DSS_CORPUS) {
    15641564            if (ATX->spam_args[0] != 0 ||
    15651565                 (PTX != NULL &&
    1566                    ( !strcmp(_ds_pref_val(PTX, "spamAction"), "tag") ||
    1567                      !strcmp(_ds_pref_val(PTX, "spamAction"), "deliver") )
     1566                   ( strstr(_ds_pref_val(PTX, "spamAction"), "tag")!=NULL ||
     1567                     strstr(_ds_pref_val(PTX, "spamAction"), "deliver")!=NULL )
    15681568                 )
    15691569               )
    15701570            {
Note: See TracBrowser for help on using the repository browser.