I am checking email addresses using RFC2822::EmailAddress
address =~ RFC2822::EmailAddress
seems to work fine, but I wonder why an email address like :
me@somewhere is accepeted… there is no domain
is it right ?
tfyl
joss
I am checking email addresses using RFC2822::EmailAddress
address =~ RFC2822::EmailAddress
seems to work fine, but I wonder why an email address like :
me@somewhere is accepeted… there is no domain
is it right ?
tfyl
joss
On Wed, 17 Jan 2007, Josselin wrote:
I am checking email addresses using RFC2822::EmailAddress
address =~ RFC2822::EmailAddress
seems to work fine, but I wonder why an email address like : me@somewhere is
accepeted… there is no domainis it right ?
it could still be ‘me@somehost’ - and as long as your mail service can
resolve that address, it’s perfectly fine… When you perform the regexp
check therefore, this address is fine - the regexp check can’t see
whether
the user, host, or domain are valid - but the format is OK.
Benedikt
ALLIANCE, n. In international politics, the union of two thieves who
have their hands so deeply inserted in each other’s pockets that
they cannot separately plunder a third.
(Ambrose Bierce, The Devil’s Dictionary)
…excuse me…but…how do i load this module or is it a constant???
dave
Josselin wrote:
On 2007-01-17 12:50:22 +0100, Benedikt H. [email protected]
said:ALLIANCE, n. In international politics, the union of two thieves who
have their hands so deeply inserted in each other’s pockets that
they cannot separately plunder a third.
(Ambrose Bierce, The Devil’s Dictionary)thanks a lot
On 2007-01-17 12:50:22 +0100, Benedikt H. [email protected]
said:
ALLIANCE, n. In international politics, the union of two thieves who
have their hands so deeply inserted in each other’s pockets that
they cannot separately plunder a third.
(Ambrose Bierce, The Devil’s Dictionary)
thanks a lot
On Wed, 17 Jan 2007 22:56:26 +0900
Dave R. [email protected] wrote:
…excuse me…but…how do i load this module or is it a constant???
dave
In your program. On in a file of its own and require ‘rfc822.rb’
Dom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs