Wouldn't the shortest possible Email address be 3 characters long, as in "a@b", where b is a TLD with a MX record, or did I failed to understand something critical?
You are correct. Although I don't think there are any TLD's with one letter. Sean Hastings seems to be real, and ai has an MX record.
Email Address Length FAQ
11–20 of 20 posts
Re: Email Address Length FAQ
#12Earlier quoted context omitted.
You are correct. Although I don't think there are any TLD's with one letter. Sean Hastings seems to be real, and ai has an MX record.
.ai seems to be a "personal TLD". Most of the websites I've found on the tld (www.ai and nic.ai) are written in first person. The registrar (same person?) takes 3 months to approve accounts after charges before giving you the domain, dns changes are made on weekends, and 2nd level domains (ie hn.ai) are reserved for residents and local companies. I don't have a problem with any of that. I'm just curious how you find…
Personal TLDs don't exist (at least as far as I know). Some registrars are just tiny, AdamsNames for example which maintains .TC, .VG and .GD.
Re: Email Address Length FAQ
#13Wouldn't the shortest possible Email address be 3 characters long, as in "a@b", where b is a TLD with a MX record, or did I failed to understand something critical?
You are correct. Although I don't think there are any TLD's with one letter. Sean Hastings seems to be real, and ai has an MX record.
Re: Email Address Length FAQ
#14Earlier quoted context omitted.
What would you gain from limiting it to 64 characters, versus complying with the RFC?
Remember the days of 640Kb of ram and 360k disks? What did you lose by making your database not fit on a disk because you allowed 256chars for an email address and 32768 for a surname?
The memory used by a VARCHAR or VARCHAR2 data type is
dependent on the actual size of the contents, not the
maximum size specified. For example, one million email
addresses defined using VARCHAR(255) will only take up
approximately 23MB, not 255MB.Re: Email Address Length FAQ
#15[edit: Looks like my view is just plain wrong. Skip this and directly read the replies] IMHO email address fields need not be 254 characters in length. Something like 64 is perfectly defendable I think. Why would a person sign-up with an email address of 200+ characters if he is not looking for a buffer overflow? Why would a sane person even bother to have such a long email address? How much time would he take to typ…
Given that conforming with the standard is effectively free, do you have any other justification for your non-conformal position of "I'd say 64 is enough. Anything above is just weird"? Willfully and capriciously ignoring standard requirements that you think are "weird" results in non-conformal implementations that confound users and other developers attempting to interoperate with your systems. I'm genuinely surpris…
The only way to _really_ validate an email address is to try to send mail to it. But that has non-zero cost (depending on how often you have to do it, what the odds are that you'll end up on a spam blacklist for no good reason, etc., etc.).
The alternative is to use purely server-side validation routines. But these become more and more expensive as you progress through less common edge cases (e.g., regular expressions are not capable of detecting every valid address). So most people, sooner or later, make a trade-off, favoring some more common subset of cases over some less common subset.
If anything, we should be arguing over what constitutes an acceptable place to make that trade-off. Should embedded comments be supported? What about bang paths?
Re: Email Address Length FAQ
#16Earlier quoted context omitted.
Given that conforming with the standard is effectively free, do you have any other justification for your non-conformal position of "I'd say 64 is enough. Anything above is just weird"? Willfully and capriciously ignoring standard requirements that you think are "weird" results in non-conformal implementations that confound users and other developers attempting to interoperate with your systems. I'm genuinely surpris…
Conforming with the standard is not "effectively free". The only way to _really_ validate an email address is to try to send mail to it. But that has non-zero cost (depending on how often you have to do it, what the odds are that you'll end up on a spam blacklist for no good reason, etc., etc.). The alternative is to use purely server-side validation routines. But these become more and more expensive as you progress…
Re: Email Address Length FAQ
#17Earlier quoted context omitted.
Conforming with the standard is not "effectively free". The only way to _really_ validate an email address is to try to send mail to it. But that has non-zero cost (depending on how often you have to do it, what the odds are that you'll end up on a spam blacklist for no good reason, etc., etc.). The alternative is to use purely server-side validation routines. But these become more and more expensive as you progress…
If you are not going to email to it, why bother asking/storing it?
Sending one email per signup can be problematic depending on the volume of signups. Sending email only when absolutely necessary can help with that.
Re: Email Address Length FAQ
#18[edit: Looks like my view is just plain wrong. Skip this and directly read the replies] IMHO email address fields need not be 254 characters in length. Something like 64 is perfectly defendable I think. Why would a person sign-up with an email address of 200+ characters if he is not looking for a buffer overflow? Why would a sane person even bother to have such a long email address? How much time would he take to typ…
Given that conforming with the standard is effectively free, do you have any other justification for your non-conformal position of "I'd say 64 is enough. Anything above is just weird"? Willfully and capriciously ignoring standard requirements that you think are "weird" results in non-conformal implementations that confound users and other developers attempting to interoperate with your systems. I'm genuinely surpris…
Over the year and a half it's been running, I have seen a few addresses exceed the 108 character limit (which isn't fatal as I do store such addresses, only the first 108 characters) and by few I mean "less than 1% of 1%". Bumping the record size to store a full 254 bytes (or is it characters? There is a difference) would double the memory consumption of the program for very little gain in return (but at least I have numbers to back up my position).
Re: Email Address Length FAQ
#19Earlier quoted context omitted.
Remember the days of 640Kb of ram and 360k disks? What did you lose by making your database not fit on a disk because you allowed 256chars for an email address and 32768 for a surname?
That's actually addressed by the original post: The memory used by a VARCHAR or VARCHAR2 data type is dependent on the actual size of the contents, not the maximum size specified. For example, one million email addresses defined using VARCHAR(255) will only take up approximately 23MB, not 255MB.
Re: Email Address Length FAQ
#20Earlier quoted context omitted.
If you are not going to email to it, why bother asking/storing it?
Maybe you don't need to send email right away, but want to store the address in case you need to get in touch with the user? Sending one email per signup can be problematic depending on the volume of signups. Sending email only when absolutely necessary can help with that.