HOME LINKS SAL PUBLIC SOFTWARE SEARCH MADE UP

SAGATOR


spamassassind()
  SpamAssassin daemon scanner.
  
  This scanner scans for spams. If a spam is returned, a string
  SPAM is returned as virus name. Sagator's level is counted as:
    spamassassin_score / spamassassin_required_hits, for example for
  header "X-Spam-Status: Yes, score=12.3 required=5.0":
    12.3 / 5.0 = 2.46
  
  This scanner uses a spamassassind daemon. If you are not familiar with it,
  you also can use spamassassin binary. Look at spamassassin scanner.
  
  Usage: spamassassind(['localhost',783], reqspamlevel=-1,
                       sa_max_file=500000, filter=False,
                       mydestination=None, virtual_users=None,
                       sa_user='vscan')
  
  Where: ['localhost',783] are the host and port of spamd.
         if reqspamlevel is less than spam hits, spam status is returned,
           if it is -1 (default), spam level from spamassassin config is used
         sa_max_file is a number, which defines maximum file size in bytes,
           which can be tested. If a mail (with header) is larger,
           it is not checked (by default 500000).
         filter is an boolean which can be used to process whole message
           by spamassassin. New message (generated by spamassassin) will
           be stored instead of original. It's default is False.
         mydestination is an regular expression, which defines local domains.
           If it is set and only one recipient is specified
           and recipients domain matches against this regular expression,
           then username part will be sent into spamd.
           This parameter is new in 0.7.0.
         virtual_users is an regular expression, which defines virtual users.
           These users can be used to configure virtual user settings
           for spamassassin. Only for emails with one recipient will be
           applied.
         sa_user is an string, which defines username sent to spamd.
           By default it's vscan user.
           This parameter is new in sagator-1.2.0.