summaryrefslogtreecommitdiff
path: root/mail/majordomo/files/patch-bj
diff options
context:
space:
mode:
Diffstat (limited to 'mail/majordomo/files/patch-bj')
-rw-r--r--mail/majordomo/files/patch-bj62
1 files changed, 0 insertions, 62 deletions
diff --git a/mail/majordomo/files/patch-bj b/mail/majordomo/files/patch-bj
deleted file mode 100644
index 31733f74a053..000000000000
--- a/mail/majordomo/files/patch-bj
+++ /dev/null
@@ -1,62 +0,0 @@
---- approve.orig 2011-03-08 14:31:12.422976680 +0100
-+++ approve 2011-03-08 14:31:06.810610862 +0100
-@@ -63,7 +63,7 @@
- #
- # $Locker: $
-
--$MAILER = '/usr/lib/sendmail' if -x '/usr/lib/sendmail';
-+$MAILER = '/usr/sbin/sendmail' if -x '/usr/sbin/sendmail';
- $MAILER = '/usr/sbin/sendmail' if -x '/usr/sbin/sendmail';
-
- die "Couldn't find a sendmail to invoke, please define!"
-@@ -137,6 +137,7 @@
-
- sub process_approve {
- local($FILE) = shift;
-+ my @words;
- while (<$FILE>) {
- if ((/^\tsubscribe\s/) || (/^\tunsubscribe\s/)) {
- if (!defined($reply_to)) {
-@@ -144,8 +145,8 @@
- exit(1);
- }
- s/^\t//;
-- split;
-- $list = $_[1];
-+ @words = split;
-+ $list = $words[1];
- $list =~ tr/A-Z/a-z/;
- $passwd = $passwd{"$list\@$reply_to"};
- if (! $passwd) {
-@@ -214,6 +215,11 @@
- $from_skipped = 1;
- next;
- }
-+ if (/^delivered-to: $post_to/i) {
-+ # Remove Delivered-To: lines that point to the list, since they
-+ # will cause postfix to think that the message is looping.
-+ next;
-+ }
- s/^~/~~/;
- print MAIL $_;
- }
-@@ -231,12 +237,13 @@
- s/\n$//;
- s/#.*//;
- if (/^$/) { next; }
-- split;
-- $l = $_[0]; $l =~ tr/A-Z/a-z/; # list
-- $p = $_[1]; # password
-- $m = $_[2]; $m =~ tr/A-Z/a-z/; # majordomo@site
-- split(/\@/, $m);
-- $s = $_[1]; $s =~ tr/A-Z/a-z/; # site
-+ my @words = split;
-+
-+ $l = $words[0]; $l =~ tr/A-Z/a-z/; # list
-+ $p = $words[1]; # password
-+ $m = $words[2]; $m =~ tr/A-Z/a-z/; # majordomo@site
-+ @words = split(/\@/, $m);
-+ $s = $words[1]; $s =~ tr/A-Z/a-z/; # site
-
- $passwd{$l} = $p;
- $passwd{"$l\@$m"} = $p;