Net-Sieve
view release on metacpan or search on metacpan
lib/Net/Sieve.pm view on Meta::CPAN
# perlvar documents always "MSWin32" on Windows ...
# what about 64bit windows?
if (exists $ENV{USERNAME} and length $ENV{USERNAME}) {
$user = $ENV{USERNAME};
} elsif (exists $ENV{LOGNAME} and length $ENV{LOGNAME}) {
$user = $ENV{LOGNAME};
} else {
die "Unable to figure out a default user, sorry.\n";
}
} else {
$user = getpwuid $>;
}
# this should handle the non-mswin32 case if 64bit _is_ different.
die "Unable to figure out a default user, sorry!\n"
unless defined $user;
}
if ((defined $sslkeyfile and not defined $sslcertfile) or
(defined $sslcertfile and not defined $sslkeyfile)) {
die "Need both a client key and cert for SSL certificate auth.\n";
}
( run in 0.297 second using v1.01-cache-2.11-cpan-8d75d55dd25 )