Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Valid CPAN distribution.

Report information
The Basics
Id: 24465
Status: resolved
Priority: 0/
Queue: Email-Valid

People
Owner: Nobody in particular
Requestors: justin [...] skazat.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: email w/spaces checks out as valid (0.179)
Spaces in an email address, even if fudge is off, still seem to make the email address pass. For example: [snip] #!/usr/bin/perl -w use strict; use lib qw(./ ./DADA/perllib ../ ../DADA/perllib ../../ ../../DADA/perllib); use Test::More qw(no_plan); use Email::Valid; use Email::Valid; # pass. ok(defined(Email::Valid->address('user@example.com'))); # pass?... ok(defined(Email::Valid->address('user @example.com'))); # pass again? # pass?... ok(defined(Email::Valid->address(-address => 'user @example.com', -fudge => 0))); ok(defined(Email::Valid->address(-address => 'user@ example.com', -fudge => 0))); # ok(defined(Email::Valid->address(-address => 'user @example.com', -fudge => undef))); # Just in case... ok(defined(Email::Valid->address(-address => 'user @example.com', -fudge => 'FALSE'))); [/snip] Is this correct? I thought, "-fudge" was there to explicitly allow spaces.
Fudge allows email local parts to contain whitespace, making this valid: "joe smith@aol.com" I am not sure, offhand, whether RFC 822 addr-spec allows: "joesmith @aol.com" ..but I would not be suprised. I will try to re-read it tomorrow when I am more alert. -- rjbs