Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
Hello all,

I've got one new user, who can't register. His eMail address is rejected as wrong. It's in the form "[email protected]". I never saw anything like this before, but it works for him.

Is this a valid eMail address? If yes, we need to change the verification in ubbt to let this pass through.

Sponsored Links
mcse007 #231819 01/05/2003 8:08 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Guess it's valid if he says it's valid.

Best place to post this in in the bugs forum at InfoPop community.
http://community.infopop.net/2/OpenTopic?a=cfrm&s=729094322&f=8233088913

That's the best place for Rick to be sure he sees and corrects it to allow it for future versions.


Daine #231820 01/05/2003 8:44 AM
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
just wanted to be sure if this is maybe not a valid address.

Link to the bug-report:
http://community.infopop.net/2/OpenTopic?a=tpc&s=729094322&f=6183028913&m=1343093196

mcse007 #231821 01/05/2003 8:48 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Dunno for sure. I do know that every once and a while, a new email format that Rick didn't figure on pops up.

So many formats. Tough to be perfect in checking I guess.

Thanks.

Daine #231822 01/05/2003 9:14 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
The problem is that by default infopop set their systems to refuse anything that has a - or a . before the @. It is the same with opentopic, and I guess with ubb.

The majority of email systems recognise these type of addresses, but some big boys like the BBC do not - their email system will bounce these types as being invalid.

I am not sure if it complies with the guidelines for email addresses - but certainly the majority of servers will allow you to issue such email addresses, so I guess that threads & opentopic should allow them.

Interestingly I see that this thread does not have a subject in replies - did threads strip the subject automatically?





Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, I noticed that. Must be the quick reply.

Gorlum #231824 01/05/2003 2:47 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I mentioned this as a bug two months ago or something like that. I even mentioned a quick fix to be a bit more standards compliant (which would let the above mentioned email be entered).

There is an RFC (used to be 822, but has been superceded by 2822) that clearly states what is allowed within an adress. In RFC 822 you could have any word-character and dot (.) as long as it doesn't begin or end with a dot. A word character is the normal english alphabet, upper and lower case, numbers as well as "-". So with the old RFC822 it is perfectly okay to end the mailbox part (before @) with -.

With RFC2822, which should now be used, even more characters are allowed. Basically any other alphabetic characters in the standard ASCII table (even foreign ones), as well as a bunch of separation characters: !#$%&'*+-/=?^_`{|}´~
You still can't begin or end with a dot though, but any of the above characters are OK.

Don't know how many mail servers comply with the new RFC though, since it was published in April 2001, but I'd say threads is as good a place as any to start using it.

I can write the regex needed to make it work with either RFC 822 or RFC 2822 depending of what might be best.

c0bra #231825 01/05/2003 2:51 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Gardener I'll admit that my reg expression ability needs much improvement so I would be greatfull if you would put one together for us based on the new RFC documentation.

Thanks!

sjsaunders #231826 01/05/2003 2:59 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Ok, I'll do that later tonight. I'm going over to some friends now, I'm going to get almost every episode of Stargate. Yay! =]

c0bra #231827 01/05/2003 3:50 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Note that with the new email verification feature in 6.2, strict checking of the email address syntax is less important.

And even if someone enters an email address that's RFC2822-compliant, that doesn't mean that it works, or that it's the right email address.

Maybe it would better to go back to a simpler check, e.g., "does it have an @?".

Last edited by Dave_L; 01/05/2003 3:56 PM.
Sponsored Links
joeuser #231828 01/05/2003 3:59 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Very true Dave

This is one of the reasons I think that the the getmxrr() function could be used to validate emails in addition. This still wont stop users from trying to use someone else's email.

LoL does the getmxrr() function still exist?

sjsaunders #231829 01/05/2003 9:05 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yeah, that might be best, no need for adding functionality that isn't really needed. I'll hold off writing the regex for now.

Not sure about the getmxrr(), never used it, but it might be a bit slow connecting to another server to check and it could happen that the server doesn't answer. It seems it doesn't work on the windows version of PHP.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)