/[smeserver]/rpms/smeserver-qpsmtpd/sme7/smeserver-qpsmtpd-1.2.1-FixDisclaimerEmptyLines.patch
ViewVC logotype

Diff of /rpms/smeserver-qpsmtpd/sme7/smeserver-qpsmtpd-1.2.1-FixDisclaimerEmptyLines.patch

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

Revision 1.1 by bytegw, Wed Jul 23 19:26:22 2008 UTC Revision 1.2 by bytegw, Thu Jul 24 18:18:07 2008 UTC
# Line 1  Line 1 
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   }   }
# Line 7  Line 8 
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 {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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