1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers |
2 |
--- smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers 2006-12-28 10:57:02.000000000 -0700 |
3 |
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/peers 2006-12-28 10:56:13.000000000 -0700 |
4 |
@@ -8,11 +8,13 @@ |
5 |
sub init { |
6 |
my $self = shift; |
7 |
my $qp = shift; |
8 |
- my $plugins_list_file = shift; |
9 |
+ my $plugins_list_file = shift || 'peers/0'; |
10 |
my @plugins = $qp->config($plugins_list_file); |
11 |
my $dir = $qp->plugin_dir; |
12 |
|
13 |
- for my $plugin (@plugins) { |
14 |
+ for my $plugin_line (@plugins) { |
15 |
+ my ($plugin, @args) = split ' ', $plugin_line; |
16 |
+ |
17 |
my $plugin_name = $plugin; |
18 |
$plugin =~ s/:\d+$//; # after this point, only used for filename |
19 |
|
20 |
@@ -40,6 +42,7 @@ |
21 |
|
22 |
return 1; |
23 |
} |
24 |
+ |
25 |
sub _peer_plugins { |
26 |
my $qp = shift; |
27 |
my $config = shift; |