From: Joe Perches <joe@perches.com> Date: 2016-06-15 22:47:35
I typo cut/pasted an invalid email address,
neglecting to copy the trailing ">".
was: "Name <addr.org"
needed: "Name <addr.org>"
Anyone have suggestions on how to get
git-send-email.perl to notify and abort
sending on more invalid address styles?
From: Erik Faye-Lund <hidden> Date: 2016-06-15 22:47:35
On Wed, Oct 21, 2009 at 12:12 AM, Joe Perches [off-list ref] wrote:
I typo cut/pasted an invalid email address,
neglecting to copy the trailing ">".
was: "Name <addr.org"
needed: "Name <addr.org>"
Anyone have suggestions on how to get
git-send-email.perl to notify and abort
sending on more invalid address styles?
Something along these lines? Of course, the error message is, uhm,
less than helpful :)
--->8---
From: Joe Perches <joe@perches.com> Date: 2016-06-15 22:47:35
On Wed, 2009-10-21 at 00:29 +0200, Erik Faye-Lund wrote:
quoted hunk
On Wed, Oct 21, 2009 at 12:12 AM, Joe Perches [off-list ref] wrote:
quoted
I typo cut/pasted an invalid email address,
neglecting to copy the trailing ">".
was: "Name <addr.org"
needed: "Name <addr.org>"
Anyone have suggestions on how to get
git-send-email.perl to notify and abort
sending on more invalid address styles?
Something along these lines? Of course, the error message is, uhm,
less than helpful :)
@@ -374,15 +374,18 @@ my ($repoauthor, $repocommitter);# Verify the user inputforeachmy$entry(@to){-die"Comma in --to entry: $entry'\n"unless$entry!~m/,/;+die"Comma in --to entry: '$entry'\n"unless$entry!~m/,/;+die"Invalid --to entry: '$entry'\n"unless$entry!~m/.*<[^>]*$/;}foreachmy$entry(@initial_cc){-die"Comma in --cc entry: $entry'\n"unless$entry!~m/,/;+die"Comma in --cc entry: '$entry'\n"unless$entry!~m/,/;+die"Invalid --cc entry: '$entry'\n"unless$entry!~m/.*<[^>]*$/;}foreachmy$entry(@bcclist){-die"Comma in --bcclist entry: $entry'\n"unless$entry!~m/,/;+die"Comma in --bcclist entry: '$entry'\n"unless$entry!~m/,/;+die"Invalid --bcclist entry: '$entry'\n"unless$entry!~m/.*<[^>]*$/;}subparse_address_line{
From: Erik Faye-Lund <hidden> Date: 2016-06-15 22:47:35
On Wed, Oct 21, 2009 at 12:48 AM, Joe Perches [off-list ref] wrote:
quoted
Something along these lines? Of course, the error message is, uhm,
less than helpful :)
Maybe this? Seems to work.
Didn't my version work for you? It worked for me.
I find it a bit cleaner to make it a part of the address-sanitizion,
since that needs to be performed for all addresses. I might miss
something vital, though. I don't really speak perl all that well ;)
--
Erik "kusma" Faye-Lund
From: Joe Perches <joe@perches.com> Date: 2016-06-15 22:47:35
On Wed, 2009-10-21 at 00:56 +0200, Erik Faye-Lund wrote:
Didn't my version work for you? It worked for me.
Hi Erik.
It worked, but an unexplained die isn't great,
so I put it where the other validations are done.
It seems that the regex for address validation
isn't very good and perhaps there could/should
be a stronger validation done for each address
entered.
cheers, Joe