Subject: | Arbitary port numbers |
If you are connecting using an encryption type of IMP_CRYPT, then you
can't change the port number from the default of 990.
The constructor states:
my $port = ($encrypt_mode eq IMP_CRYPT) ? 990 : ($arg->{Port} || 21);
As a fix i've changed it to:
my $port = 21; #default plain text port
if ($arg->{Port}) { #use user defined port
$port = $arg->{Port}
}
elsif ($encrypt_mode eq IMP_CRYPT) { #use default secure port
$port = 990;
}
This would mean that the if the user specifies a custom port it
overrides the two default values.
Thanks