aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/localmail
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-03-04 18:23:30 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 11:59:45 +0200
commitf528313c20fb020c653a9aad27cc3b14b6a8f20a (patch)
treec5cdfa52baa8408ac6ec970169a45fbdcab84fba /.local/bin/localmail
parent212af8da568cf8f1c3f587ac3bd8420cc1f84387 (diff)
Use explicit port numbers in localmail
Diffstat (limited to '.local/bin/localmail')
-rwxr-xr-x.local/bin/localmail3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/localmail b/.local/bin/localmail
index 428e0fc..50894a1 100755
--- a/.local/bin/localmail
+++ b/.local/bin/localmail
@@ -50,10 +50,11 @@ sub fetch ($config, @args) {
}
say "Fetching mail for $account";
- say " Connecting to $current->{server}";
+ say " Connecting to $current->{server}:" . ($current->{port} // 993);
my $connection = Net::IMAP::Simple->new(
$current->{server},
+ #port => $current->{port} // 993,
use_ssl => $current->{ssl} // 1,
Timeout => $current->{timeout} // 5,
);