~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Plugin/Pyzor.pm

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
=item pyzor_timeout n           (default: 3.5)
119
119
 
120
120
How many seconds you wait for Pyzor to complete, before scanning continues
121
 
without the Pyzor results.
 
121
without the Pyzor results. A numeric value is optionally suffixed by a
 
122
time unit (s, m, h, d, w, indicating seconds (default), minutes, hours,
 
123
days, weeks).
122
124
 
123
125
You can configure Pyzor to have its own per-server timeout.  Set this
124
126
plugin's timeout with that in mind.  This plugin's timeout is a maximum
142
144
    setting => 'pyzor_timeout',
143
145
    is_admin => 1,
144
146
    default => 3.5,
145
 
    type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC
 
147
    type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION
146
148
  });
147
149
 
148
150
=item pyzor_options options
351
353
    }
352
354
  }
353
355
 
354
 
  if ($pyzor_whitelisted) {
355
 
    $permsgstatus->{tag_data}->{PYZOR} = "Whitelisted.";
356
 
  }
357
 
  else {
358
 
    $permsgstatus->{tag_data}->{PYZOR} = "Reported $pyzor_count times.";
359
 
  }
 
356
  $permsgstatus->set_tag('PYZOR', $pyzor_whitelisted ? "Whitelisted."
 
357
                                             : "Reported $pyzor_count times.");
360
358
 
361
359
  if ($pyzor_count >= $self->{main}->{conf}->{pyzor_max}) {
362
360
    dbg("pyzor: listed: COUNT=$pyzor_count/$self->{main}->{conf}->{pyzor_max} WHITELIST=$pyzor_whitelisted");