Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] r58609 - /trunk/mail/src/YaPI/MailServer.pm
  • From: varkoly@xxxxxxxxxxxxxxxx
  • Date: Thu, 10 Sep 2009 10:49:03 -0000
  • Message-id: <E1MlhD5-0007N3-7c@xxxxxxxxxxxxxxxx>
Author: varkoly
Date: Thu Sep 10 12:49:02 2009
New Revision: 58609

URL: http://svn.opensuse.org/viewcvs/yast?rev=58609&view=rev
Log:
If we do not have the value in hash take the value of postconf

Modified:
trunk/mail/src/YaPI/MailServer.pm

Modified: trunk/mail/src/YaPI/MailServer.pm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/mail/src/YaPI/MailServer.pm?rev=58609&r1=58608&r2=58609&view=diff
==============================================================================
--- trunk/mail/src/YaPI/MailServer.pm (original)
+++ trunk/mail/src/YaPI/MailServer.pm Thu Sep 10 12:49:02 2009
@@ -197,9 +197,8 @@
$GlobalSettings{'MaximumMailSize'} =
read_attribute($MainCf,'message_size_limit');

#
- $GlobalSettings{'Banner'} = `postconf -h smtpd_banner`;
- $GlobalSettings{'Interfaces'} = `postconf -h inet_interfaces`;
- chomp $GlobalSettings{'Banner'};
+ chomp( $GlobalSettings{'Banner'} = `postconf -h smtpd_banner`);
+ chomp($GlobalSettings{'Interfaces'} = `postconf -h inet_interfaces`);

# Determine if relay host is used
$GlobalSettings{'SendingMail'}{'RelayHost'}{'Name'} =
read_attribute($MainCf,'relayhost');
@@ -3078,6 +3077,7 @@
sub read_attribute {
my $config = shift;
my $attribute = shift;
+ my $a = undef;
foreach(@{$config})
{
if($_->{"key"} eq $attribute)
@@ -3085,6 +3085,8 @@
return $_->{"value"} if defined $_->{"value"};
}
}
+ chomp( $a = `postconf -h $attribute` );
+ return $a if( defined $a );
return undef;
}


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages