1 |
stephdl |
1.1 |
diff -Nur qpsmtpd-0.84/plugins/spamassassin qpsmtpd-0.84-spam_size_limit/plugins/spamassassin |
2 |
|
|
--- qpsmtpd-0.84/plugins/spamassassin 2010-02-13 06:30:12.000000000 +0100 |
3 |
|
|
+++ qpsmtpd-0.84-spam_size_limit/plugins/spamassassin 2013-04-24 19:49:33.965759534 +0200 |
4 |
|
|
@@ -112,7 +112,8 @@ |
5 |
|
|
my ($self, $transaction) = @_; |
6 |
|
|
|
7 |
|
|
$self->log(LOGDEBUG, "check_spam"); |
8 |
|
|
- return (DECLINED) if $transaction->data_size > 500_000; |
9 |
|
|
+ my $limit = $self->{_args}->{size_limit} || 500_000; |
10 |
|
|
+ return (DECLINED) if $transaction->data_size > $limit; |
11 |
|
|
|
12 |
|
|
my $remote = 'localhost'; |
13 |
|
|
my $port = 783; |