X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=onak-mail.pl.in;h=8231a127e22abd762e5ff495445b63a1d90f25d3;hb=4ab0e97e5ff2dab7dcc5ae14050e442892b8f0ff;hp=68439d242079506fdeaac1eb24be8d9539321086;hpb=1ec1e2efdf4092233ac2136dff5a35cf6c7f4710;p=onak.git diff --git a/onak-mail.pl.in b/onak-mail.pl.in index 68439d2..8231a12 100644 --- a/onak-mail.pl.in +++ b/onak-mail.pl.in @@ -65,17 +65,17 @@ sub readconfig { open(CONFIG, "@CONFIG@") or die "Can't read config file: $!"; - $section = ""; + my $section = ""; while () { if (/^#/ or /^$/) { # Ignore; comment line. } elsif (/^\[(\w+)\]/) { - section = $1; - } elsif ($section == "main") { + $section = $1; + } elsif ($section eq "main") { if (/^logfile\s*=\s*(.*)/) { $config{'logfile'} = $1; } - } elsif ($section == "mail") { + } elsif ($section eq "mail") { if (/^this_site\s*=\s*(.*)/) { $config{'thissite'} = $1; } elsif (/^maintainer_email\s*=\s*(.*)/) {