/[smeserver]/rpms/qpsmtpd/sme8/0039-qpsmtpd-0.84-spamassassin_size_limit.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme8/0039-qpsmtpd-0.84-spamassassin_size_limit.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Apr 23 05:30:06 2013 UTC (11 years, 1 month ago) by burnat
Branch: MAIN
CVS Tags: qpsmtpd-0_84-6_el5_sme, qpsmtpd-0_84-5_el5_sme, qpsmtpd-0_84-8_el5_sme, qpsmtpd-0_84-9_el5_sme, qpsmtpd-0_84-4_el5_sme, qpsmtpd-0_84-7_el5_sme, HEAD
* Tue Apr 23 2013 chris burnat <devlist@burnat.com> 0.84-4.sme
- qpsmtpd allows the spamassassin plugin to read the size limit
  from its arguments, patch by Daniel [SME: 7541]

1 burnat 1.1 diff -Nur qpsmtpd-0.84/plugins/spamassassin qpsmtpd-0.84_size_limit/plugins/spamassassin
2     --- qpsmtpd-0.84/plugins/spamassassin 2010-02-13 06:30:12.000000000 +0100
3     +++ qpsmtpd-0.84_size_limit/plugins/spamassassin 2013-04-10 19:27:06.541888148 +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 = (defined $self->{_args}->{size_limit}) ? $self->{_args}->{size_limit} : 500_000;
10     + return (DECLINED) if $transaction->data_size > $limit;
11    
12     my $remote = 'localhost';
13     my $port = 783;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed