Re: [PATCH RFC3.5.1 04/12] send-email: Verification for --smtp-server and --smpt-server-port
- From
Michael Witten <mfwitten@gmail.com>
- Date
- Apr 20, 2009, 15:53 UTC
- Message-ID
- <b4087cc50904200853x225acbafne421e4edb6120dbb@mail.gmail.com>
- In-Reply-To
- <1240150785-3999-1-git-send-email-mfwitten@gmail.com>
On Sun, Apr 19, 2009 at 09:19, Michael Witten <mfwitten@gmail.com> 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.