/[smeserver]/rpms/qpsmtpd/sme9/0004-microoptimizations-replace-regex-with-lc-eq.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme9/0004-microoptimizations-replace-regex-with-lc-eq.patch

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


Revision 1.1 - (show annotations) (download)
Sat Feb 2 00:59:44 2013 UTC (11 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_84-14_el6_sme, qpsmtpd-0_84-16_el6_sme, qpsmtpd-0_84-12_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-2_el6_sme, qpsmtpd-0_84-13_el6_sme, qpsmtpd-0_84-6_el6_sme, qpsmtpd-0_84-18_el6_sme, qpsmtpd-0_84-9_el6_sme, qpsmtpd-0_84-4_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_84-15_el6_sme, qpsmtpd-0_96-4_el6_sme, qpsmtpd-0_96-3_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_84-17_el6_sme, qpsmtpd-0_84-7_el6_sme, qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_84-10_el6_sme, qpsmtpd-0_84-8_el6_sme, qpsmtpd-0_96-1_el6_sme, qpsmtpd-0_84-5_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_84-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
* Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
- Update spec so building on rhel6 works [SME: 7263]

1 From e37f14b9a63e39b344955e7bc79ffe4262e93811 Mon Sep 17 00:00:00 2001
2 From: Robert <rspier@pobox.com>
3 Date: Sun, 9 May 2010 22:45:59 -0700
4 Subject: microoptimizations - replace regex with lc eq
5
6 ---
7 plugins/check_bogus_bounce | 8 ++++----
8 1 files changed, 4 insertions(+), 4 deletions(-)
9
10 diff --git a/plugins/check_bogus_bounce b/plugins/check_bogus_bounce
11 index 045889c..968f1c6 100644
12 --- a/plugins/check_bogus_bounce
13 +++ b/plugins/check_bogus_bounce
14 @@ -88,7 +88,7 @@ sub hook_data_post {
15 # Find the sender, and return unless it wasn't a bounce.
16 #
17 my $sender = $transaction->sender->address || undef;
18 - return DECLINED unless ($sender =~ /^<>$/);
19 + return DECLINED unless ($sender eq "<>");
20
21 #
22 # Get the recipients.
23 @@ -102,15 +102,15 @@ sub hook_data_post {
24 # 1. It is a bounce, via the null-envelope.
25 # 2. It is a bogus bounce, because there are more than one recipients.
26 #
27 - if ($self->{_action} =~ /^log$/i) {
28 + if (lc $self->{_action} eq "log") {
29 $self->log(LOGWARN,
30 $self->plugin_name() . " bogus bounce for :" . join(",", @to));
31 }
32 - elsif ($self->{_action} =~ /^deny$/i) {
33 + elsif (lc $self->{_action} eq "deny") {
34 return (DENY,
35 $self->plugin_name() . " determined this to be a bogus bounce");
36 }
37 - elsif ($self->{_action} =~ /^denysoft$/i) {
38 + elsif (lc $self->{_action} eq "denysoft") {
39 return (DENYSOFT,
40 $self->plugin_name() . " determined this to be a bogus bounce");
41 }
42 --
43 1.7.2.2
44

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