Jump to page: 1 2
Thread overview
[phobos] Validating email addresses
Feb 14, 2011
Walter Bright
Feb 16, 2011
Jacob Carlborg
Feb 16, 2011
Jonathan M Davis
Feb 17, 2011
Walter Bright
Feb 17, 2011
spir
Feb 17, 2011
Walter Bright
Feb 17, 2011
Jacob Carlborg
Feb 17, 2011
Sean Kelly
Feb 17, 2011
Walter Bright
Feb 17, 2011
Sean Kelly
Feb 18, 2011
Walter Bright
February 14, 2011
http://www.dominicsayers.com/isemail/

On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/

Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
February 16, 2011
You do know that it's BSD licensed?

On 14 feb 2011, at 20:00, Walter Bright wrote:

> http://www.dominicsayers.com/isemail/
> 
> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
> 
> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

-- 
/Jacob Carlborg

February 16, 2011
On Wednesday, February 16, 2011 13:13:50 Jacob Carlborg wrote:
> You do know that it's BSD licensed?

Well, someone can implement something which follows the spec at least. Or maybe the author (or authors) can be contacted (assuming that there aren't a lot of them) about a Boost version. I would think that someone willing to license something under BSD would be willing to license under Boost, but I don't know. The fact that it's under BSD does preclude just translating it to D though.

Regardless, it still requires finding someone able and willing to take the time to do the work.

- Jonathan M Davis
February 16, 2011
Aw, crap.

Jacob Carlborg wrote:
> You do know that it's BSD licensed?
>
> On 14 feb 2011, at 20:00, Walter Bright wrote:
>
> 
>> http://www.dominicsayers.com/isemail/
>>
>> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
>>
>> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
>>
>> 
February 17, 2011
On 02/17/2011 02:05 AM, Walter Bright wrote:
> Aw, crap.
>
> Jacob Carlborg wrote:
>> You do know that it's BSD licensed?
>>
>> On 14 feb 2011, at 20:00, Walter Bright wrote:
>>
>>> http://www.dominicsayers.com/isemail/
>>>
>>> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
>>>
>>>
>>> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.

Was about to write: "Ok, I'll do it in a while". Then, I watched the source. Have you?

Denis
-- 
_________________
vita es estrany
spir.wikidot.com

February 17, 2011
Great news! Dominic Sayers, the author, has agreed to relicense it to the Boost license for us! Woo-hoo!

Jacob Carlborg wrote:
> You do know that it's BSD licensed?
>
> On 14 feb 2011, at 20:00, Walter Bright wrote:
>
> 
>> http://www.dominicsayers.com/isemail/
>>
>> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
>>
>> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
>> 
>
> 
February 17, 2011
Does it extract the address and the full name as well?  Simply validating something as an email address isn't terribly useful.

Sent from my iPhone

On Feb 14, 2011, at 11:00 AM, Walter Bright <walter at digitalmars.com> wrote:

> http://www.dominicsayers.com/isemail/
> 
> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
> 
> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
February 17, 2011
That is great news. I might be able to find time to port this.

-- 
/Jacob Carlborg

On 17 feb 2011, at 11:06, Walter Bright wrote:

> Great news! Dominic Sayers, the author, has agreed to relicense it to the Boost license for us! Woo-hoo!
> 
> Jacob Carlborg wrote:
>> You do know that it's BSD licensed?
>> 
>> On 14 feb 2011, at 20:00, Walter Bright wrote:
>> 
>> 
>>> http://www.dominicsayers.com/isemail/
>>> 
>>> On reddit: http://www.reddit.com/r/programming/comments/fl6i0/email_address_validation_please_stop/
>>> 
>>> Anyone want to translate the php or java source code to D and propose a Phobos module for it? I think these kinds of things are a real service to users, as they have simple interfaces but are pretty hard to implement correctly.
>>> _______________________________________________
>>> phobos mailing list
>>> phobos at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/phobos
>>> 
>> 
>> 
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

February 17, 2011

Sean Kelly wrote:
> Does it extract the address and the full name as well?  Simply validating something as an email address isn't terribly useful.
>
> 

Terribly useful, maybe not. But it is useful in that:

1. lots of code does email validation, and most do it wrong

2. it's a hard thing to get right

3. writing internet software is increasingly important, and supporting that in Phobos with quality functions is worthwhile

To me, it's like writing the math gamma function. How many programs would use it? Very few. But having a well done implementation is appreciated by those who do need it, and it's a mark of quality in the library.
February 17, 2011
On Feb 17, 2011, at 11:18 AM, Walter Bright wrote:
> 
> Sean Kelly wrote:
>> Does it extract the address and the full name as well?  Simply validating something as an email address isn't terribly useful.
>> 
> 
> Terribly useful, maybe not. But it is useful in that:
> 
> 1. lots of code does email validation, and most do it wrong

Yup.  And that's the real problem.  None of the top 5 mail apps/services implement their encoding the same way, and all of them fail RFC compliance in different ways.  But users expect email sent from those services to be accepted and display correctly.  D. Sayers really seems to know his stuff though, and I'd love to see things become more RFC-compliant so I certainly wouldn't object to this addition.  And to be fair, I'll admit that the major compliance issues I've run into with email addresses are RFCs 2047 and 2231.
« First   ‹ Prev
1 2