You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/03 13:48:08 UTC

[Spamassassin Wiki] Update of "ClamAVPlugin" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/ClamAVPlugin

The comment on the change is:
thx to Jonas Eckerman for this tip; add X-Spam-Virus as a metadatum

------------------------------------------------------------------------------
    }
    $permsgstatus->{main}->{conf}->{headers_spam}->{"Virus"} = $header;
    $permsgstatus->{main}->{conf}->{headers_ham}->{"Virus"} = $header;
+   # add a metadatum so that rules can match against the result too
+   $permsgstatus->{msg}->put_metadata('X-Spam-Virus',$header);
    return $isspam;
  }