aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-postfwd/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-09-20 00:57:15 +0800
committermiwi <miwi@FreeBSD.org>2009-09-20 00:57:15 +0800
commit71f18b57749e66d137f7fbe15946ce8a86aae918 (patch)
tree3cee343231deed480d6ff3d9c51e98dc5460c9b2 /mail/postfix-postfwd/files
parentcfa84f408f2fa1048317b3fbee665b694209a018 (diff)
downloadfreebsd-ports-gnome-71f18b57749e66d137f7fbe15946ce8a86aae918.tar.gz
freebsd-ports-gnome-71f18b57749e66d137f7fbe15946ce8a86aae918.tar.zst
freebsd-ports-gnome-71f18b57749e66d137f7fbe15946ce8a86aae918.zip
- Update to 1.16
Changelog: http://nopaste.unixfreunde.de/3840 PR: 138520 Submitted by: Sahil Tandon <sahil@tandon.net> (maintainer) Feature safe: yes
Diffstat (limited to 'mail/postfix-postfwd/files')
-rw-r--r--mail/postfix-postfwd/files/extra-patch-sbin-postfwd42
1 files changed, 0 insertions, 42 deletions
diff --git a/mail/postfix-postfwd/files/extra-patch-sbin-postfwd b/mail/postfix-postfwd/files/extra-patch-sbin-postfwd
index 22595e715e1e..e69de29bb2d1 100644
--- a/mail/postfix-postfwd/files/extra-patch-sbin-postfwd
+++ b/mail/postfix-postfwd/files/extra-patch-sbin-postfwd
@@ -1,42 +0,0 @@
---- sbin/postfwd.orig 2009-06-29 05:36:15.000000000 -0400
-+++ sbin/postfwd 2009-07-09 22:56:26.000000000 -0400
-@@ -1229,7 +1229,7 @@
- type => $mycmd,
- maxcount => $ratecount,
- ttl => $ratetime,
-- count => ( ($mycmd eq 'size') ? $request{size} : 1 ),
-+ count => (($mycmd eq 'size') ? $request{size} : (($mycmd eq 'mrcpt') ? $request{recipient_count} : 1)),
- time => $now,
- rule => $Rules[$index]{$COMP_ID},
- action => $ratecmd,
-@@ -1246,6 +1246,8 @@
- },
- # size() command
- "size" => sub { return &{$postfwd_actions{rate}}(@_); },
-+ # mrcpt() command
-+ "mrcpt" => sub { return &{$postfwd_actions{rate}}(@_); },
- # wait() command
- "wait" => sub {
- my($index,$now,$mycmd,$myarg,$myline,%request) = @_;
-@@ -1724,7 +1726,9 @@
- next RATES unless ( $request{$checkreq} and (defined $Rates{$request{$checkreq}}) );
- if ( ($now - $Rates{$request{$checkreq}}{"time"}) > $Rates{$request{$checkreq}}{ttl} ) {
- # renew rate
-- $Rates{$request{$checkreq}}{count} = ( ($Rates{$request{$checkreq}}{type} eq 'size') ? $request{size} : 1 );
-+ $Rates{$request{$checkreq}}{count} = ( ($Rates{$request{$checkreq}}{type} eq 'size')
-+ ? $request{size} : (($Rates{$request{$checkreq}}{type} eq 'mrcpt')
-+ ? $request{recipient_count} : 1) );
- $Rates{$request{$checkreq}}{"time"} = $now;
- mylogs $syslog_priority, "[RATE] renewing rate object ".$request{$checkreq}
- ." [type: ".$Rates{$request{$checkreq}}{type}
-@@ -1733,7 +1737,9 @@
- if ($opt_verbose > 1);
- } else {
- # increase rate
-- $Rates{$request{$checkreq}}{count} += ( ($Rates{$request{$checkreq}}{type} eq 'size') ? $request{size} : 1 );
-+ $Rates{$request{$checkreq}}{count} += (($Rates{$request{$checkreq}}{type} eq 'size')
-+ ? $request{size} : (($Rates{$request{$checkreq}}{type} eq 'mrcpt')
-+ ? $request{recipient_count} : 1));
- mylogs $syslog_priority, "[RATE] increasing rate object ".$request{$checkreq}
- ." to ".$Rates{$request{$checkreq}}{count}
- ." [type: ".$Rates{$request{$checkreq}}{type}