Re: [PATCH RFC3.5.1 04/12] send-email: Verification for --smtp-server and --smpt-server-port
From: Michael Witten <hidden> Date: 2016-06-15 22:46:37
On Sun, Apr 19, 2009 at 09:19, Michael Witten [off-list ref] wrote:
+ ($smtp_server, my $port) = parse_server_URI $smtp_server
+ or die "--smtp-server: Not a valid server URI: '$smtp_server'\n";
Whoops! I used to have:
my ($host, $port) = ...
but I tried to be clever and replaced it with the above.
Unfortunately, that means that an incorrect server 'URI' sets
$smtp_server to undef, which perl complains about when it interpolates
the die string.