1 |
--- /usr/share/qpsmtpd/plugins/disclaimer.orig 2008-02-27 10:34:17.000000000 +0100 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/disclaimer mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/disclaimer |
2 |
+++ /usr/share/qpsmtpd/plugins/disclaimer 2008-06-19 16:19:43.000000000 +0200 |
--- smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/disclaimer 2008-07-23 20:44:44.000000000 +0100 |
3 |
|
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/usr/share/qpsmtpd/plugins/disclaimer 2008-07-23 20:44:08.000000000 +0100 |
4 |
@@ -10,6 +10,16 @@ |
@@ -10,6 +10,16 @@ |
5 |
%{$self->{_args}} = @args; |
%{$self->{_args}} = @args; |
6 |
} |
} |
8 |
+sub read_disclaimer { |
+sub read_disclaimer { |
9 |
+ my ($self, $disclaimer_file) = @_; |
+ my ($self, $disclaimer_file) = @_; |
10 |
+ my $disclaimer_dir = $self->{_args}->{disclaimer_dir} || "/service/qpsmtpd/config/"; |
+ my $disclaimer_dir = $self->{_args}->{disclaimer_dir} || "/service/qpsmtpd/config/"; |
11 |
+ return () unless open DISCLAIMER, "<$disclaimer_dir/$disclaimer_file"; |
+ return () unless open DISCLAIMER, "<$disclaimer_dir/$disclaimer_file"; |
12 |
+ my @lines = <DISCLAIMER>; |
+ my @lines = <DISCLAIMER>; |
13 |
+ chomp @lines; |
+ chomp @lines; |
14 |
+ close DISCLAIMER; |
+ close DISCLAIMER; |
15 |
+ return @lines; |
+ return @lines; |
16 |
+} |
+} |
17 |
+ |
+ |
18 |
sub hook_data_post { |
sub hook_data_post { |