HOME LINKS SAL PUBLIC SOFTWARE SEARCH MADE UP

SAGATOR



reporter()
  Reporter virtual service.
  
  This service is only a virtual service to configure parameters for
  reporter script.
  
  Usage: reporter(...parameters...)
  
  There you can define some parameters:
  "begin", "body", "end", "include", "exclude", "include_fx", "exclude_fx"
  and "groups".
  
  First three parameters are email templates. "begin" is report header.
  It must contain RFC2822 headers. "body" is message part displayed for each
  rejected/dropped message. "end" is report's tailer, added to message
  after all "body"s. See srv/reporter.py file for example.
  
  "webq" parameter must define base URL to webq() service. This parameter
  is autodetected as your server hostname + standard webq() root directory.
  A row with this URL is added to your standard body, if no user body
  defined.
  
  "groups" parameter can be used to define email groups, for example you
  can define to send reports only to admin for each domain on you server:
    reporter(groups=[
                     ['@mydomain1.com$', 'admin@mydomain1.com'],
                     ['@domain2.sk$', 'admin@domain2.sk'],
                     ['.', 'root@localhost'] # send other to root
                    ])
  It is possible to define empty string as target to ignore some records.
  
  Example: reporter(include='@mydomain.sk$')
  
  Groups are new in version 0.9.0.