~ubuntu-branches/ubuntu/lucid/mailscanner/lucid

« back to all changes in this revision

Viewing changes to lib/MailScanner/Quarantine.pm

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-03-06 00:16:43 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060306001643-oiu6lxjx90bmkual
Tags: 4.51.5-1
* New upstream version.
* etc/reports/pt_br.old: Remove from source, repackage source due to
  wrong permissions in archive.
* Update dependencies.
* debian/patches/awk-location, debian/patches/filetype.rules.conf: Remove.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#   MailScanner - SMTP E-Mail Virus Scanner
3
3
#   Copyright (C) 2002  Julian Field
4
4
#
5
 
#   $Id: Quarantine.pm,v 1.11.2.7 2005/09/15 09:29:28 jkf Exp $
 
5
#   $Id: Quarantine.pm,v 1.11.2.8 2006/01/06 17:21:06 jkf Exp $
6
6
#
7
7
#   This program is free software; you can redistribute it and/or modify
8
8
#   it under the terms of the GNU General Public License as published by
40
40
use vars qw($VERSION);
41
41
 
42
42
### The package version, both in 1.23 style *and* usable by MakeMaker:
43
 
$VERSION = substr q$Revision: 1.11.2.7 $, 10;
 
43
$VERSION = substr q$Revision: 1.11.2.8 $, 10;
44
44
 
45
45
# Attributes are
46
46
#
196
196
  # messages, not just infections.
197
197
  umask $this->{fileumask};
198
198
  if ($message->{allreports}{""} ||
199
 
      MailScanner::Config::Value('quarantinewholemessage',$this) =~ /1/) {
 
199
      MailScanner::Config::Value('quarantinewholemessage',$message) =~ /1/) {
200
200
    #print STDERR "Saving entire message to $msgdir\n";
201
201
    MailScanner::Log::InfoLog("Saved entire message to $msgdir");
202
202
    $message->{store}->CopyEntireMessage($message, $msgdir, 'message',