News for hackers. Stuff that matters.
Re:Falsehoods programmers believe about email by Beltalowda on Thursday September 01, 2022 @02:36AM (#32672791)
So if my email is [email protected] because I want to be cute people will have to try 6 times before they finally get the right email address? Imagine telling that to someone in person. This kind "weird" casing isn't that rare and doesn't require cute usernames: "[email protected]", "[email protected]", "[email protected]", etc.

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".

Re:Falsehoods programmers believe about email by leni536 on Thursday September 01, 2022 @03:40AM (#32673233)
It is fine to have multiple email addresses connected to a single inbox. Email providers already do normalization like this that is not baked into the spec. Gmail for example treats [email protected] and [email protected] the same.
Re:Falsehoods programmers believe about email by 867-5309 on Thursday September 01, 2022 @04:26AM (#32673572)
that cannot be true. I think you meant john+doe

edit: wow. goodbye gmail

"if your email is [email protected], you own all dotted versions of your address:

[email protected] [email protected] [email protected]"

>[email protected] and [email protected] are the same address and go to one inbox

https://support.google.com/mail/answer/7436150

Re:Falsehoods programmers believe about email by matsemann on Thursday September 01, 2022 @04:31AM (#32673615)
No, it's true. Can place a dot anywhere and it arrives in the same inbox.
Re:Falsehoods programmers believe about email by l181 on Thursday September 01, 2022 @04:34AM (#32673647)
Re:Falsehoods programmers believe about email by vetinari on Thursday September 01, 2022 @04:48AM (#32673736)
Well, maybe Google should check their own implementation, because interesting things happen when accounts for both version exist.

I have an account with the dot, that was made in age, when Gmail was invite-only. Few years ago, someone created an account without the dot. Yes, I'm receiving their mail, and have no way to contact them, because everything I send out comes back to me.

Re:Falsehoods programmers believe about email by matsemann on Thursday September 01, 2022 @04:51AM (#32673764)
Most likely no account without the dot actually exists, it's just someone having written their email wrong at some places.
Re:Falsehoods programmers believe about email by vetinari on Thursday September 01, 2022 @04:58AM (#32673812)
Then that guy puts the wrong address consistently in places, where you want to receive the mail, from applications to education courses to paypal.
Re:Falsehoods programmers believe about email by astura on Thursday September 01, 2022 @07:32AM (#32674914)
Not only do people do this, it's actually extremely common, ask anyone with [email protected]. Someone here said their original email address has become unusable because it gets thousands of messages a day that are intended for other people. "That guy" might actually be multiple people all making the same mistake with your email address.

My coworker told me there's a complete stranger who, every time she emails her son, accidentally sends the email to him first. This has been going on for years, she makes the same mistake every time, she doesn't learn her son's actual email address, and she doesn't learn to press "reply."

I'm 100% sure the "non-dot-version" doesn't exist as a separate account.

Re:Falsehoods programmers believe about email by InitialLastName on Thursday September 01, 2022 @09:25AM (#32675914)
AOL used to allow users to email other users without using the @aol.com extension. Back in those days I (prior to any capacity to negotiate a sensible ISP, for the record) had an email that matched a common subject line that was inundated by people who typed their subject in the To line and then wrote an email.
Re:Falsehoods programmers believe about email by teddyh on Thursday September 01, 2022 @05:29AM (#32674023)
Yes, people do that.
Re:Falsehoods programmers believe about email by Aethylia on Thursday September 01, 2022 @04:33AM (#32673633)
It is true and it's not just gmail, dots before the @ are ignored.
Re:Falsehoods programmers believe about email by moonchild on Thursday September 01, 2022 @05:37AM (#32674091)
It may be that some other specific email servers implement similar behaviour to gmail, but that is not true as a general rule.
Re:Falsehoods programmers believe about email by znpy on Thursday September 01, 2022 @03:53AM (#32673332)
And that’s why I regularly receive other people’s mail in my gmail inbox, and why i have stopped using gmail for anything important (it’s right to assume that gmail is also sending my emails to other people).

Google’s gmail people aren’t really as smart as they think they are.

Re:Falsehoods programmers believe about email by scambier on Thursday September 01, 2022 @04:29AM (#32673598)
That's something I don't understand. I've always given my email as [email protected], and I sometimes receive emails - addressed to Another John Doe - sent to [email protected].

That Another John Doe never, ever had access to [email protected], they just gave a wrong address. That's not gmail's fault.

Re:Falsehoods programmers believe about email by alistairSH on Thursday September 01, 2022 @08:45AM (#32675532)
That Another John Doe never, ever had access to [email protected], they just gave a wrong address. That's not gmail's fault.

This. My wife and I have two flavors of this.

Her address is [email protected]. There people frequently forget the m initial and somebody else owns [email protected] She's since started using dots first.m.last to mitigate the error.

My address is firstlast@gmail, where first and last are not globally common, but are fairly common in Scotland. Once a year or so, I receive email for somebody else that shares my name. I don' know his real email, but I've been "invited" on his family vacations 3-4 times now. Infrequent enough that I just respond "thanks for the invite, but I think you'll be disappointed when I arrive and not the Alistair you were expecting."

Re:Falsehoods programmers believe about email by rovr138 on Thursday September 01, 2022 @03:24PM (#32681697)
I have a friend that has firstmlast@ and she's friends with firstlast@ because of how common the issue is.

It's actually not a super common first and last, so firstlast@ knows when to who to forward.

Re:Falsehoods programmers believe about email by ghaff on Thursday September 01, 2022 @07:26AM (#32674867)
Or someone assumed (or just tried) that other email address.

I signed up for my university's email forwarding for alumni early on and got my first name as my email. For quite a while, I would get emails, including fairly sensitive ones, sent to me by not yet very email savvy people just assuming you could send an email to someone's first name and it would get to them.

Re:Falsehoods programmers believe about email by derefr on Thursday September 01, 2022 @12:18PM (#32678658)
Nah, it happens with mangled names that no bot would ever try to stuff, too. E.g. I own derefr@gmail; but I sometimes receive email from people trying to reach a man named "Derek" — who almost certainly owns the address derek.fr@gmail, but probably typoed it once as dere.fr@, and now his browser autocompletes that into registration forms for him.
Re:Falsehoods programmers believe about email by scambier on Friday September 02, 2022 @03:48AM (#32687871)
> Or someone assumed (or just tried) that other email address.

I received 2-3 personal emails, but most of them are automated invoices.

Re:Falsehoods programmers believe about email by Aethylia on Thursday September 01, 2022 @04:36AM (#32673657)
This doesn't really make any sense. It's not just gmail that does this, dots are almost always ignored before the @.

Nobody else can register an email that is the same as yours but without a dot. So the only way you receive someone else's email is if they give the wrong address.

Re:Falsehoods programmers believe about email by denton-scratch on Thursday September 01, 2022 @09:08AM (#32675754)
> It's not just gmail that does this, dots are almost always ignored before the @.

That's not my experience. Which non-gmail email software ignores dots before the @?

Thinking about this, I guess the sending MTA doesn't care about dots; it goes RCPT TO: <[email protected]>. The receiving MTA then has to validate that address; it does that using some account database that isn't typically part of the MTA - it could be a unix account (no dots!), a database table, or an LDAP user. Finally it passes the mail off to a delivery agent, which hopefully relies on the same account database.

So the elision of dots appears to be a feature of certain account databases. So which account databases elide dots?

Re:Falsehoods programmers believe about email by account42 on Thursday September 01, 2022 @10:49AM (#32677083)
MTAs can be configured to additional transforms before looking up the account. For example, postfix's virtual table [0] can be used for this and on my server it does elide dots in the local part (along with everything else).

[0] https://www.postfix.org/ADDRESS_REWRITING_README.html#virtua...

Re:Falsehoods programmers believe about email by znpy on Thursday September 01, 2022 @09:38AM (#32676053)
Dots are never ignored before the @, and also aren’t ignored after it, for that matter.

I guess this is another falsehood people believe about emails.

> Nobody else can register an email that is the same as yours but without a dot.

It used to be possible, then google decided to stop allowing that (guess why?)

And by the way, that’s an arbitrary decision.

I have run mail servers and it’s just and cam tell you… it’s an arbitrary decision.

Re:Falsehoods programmers believe about email by jstanley on Thursday September 01, 2022 @03:17AM (#32673078)
> So if my email is [email protected] because I want to be cute people will have to try 6 times before they finally get the right email address? Imagine telling that to someone in person.

Yeah. That's fine.

If my email is [email protected] 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.

Re:Falsehoods programmers believe about email by ctxc on Thursday September 01, 2022 @04:28AM (#32673586)
"everyone will use lowercase (like they pretty much always already do anyway)"

This in itself sounds is a falsehood!

Re:Falsehoods programmers believe about email by Beltalowda on Thursday September 01, 2022 @03:38AM (#32673210)
"LLL@" doesn't map to "LLLLLLLL@" in any logical way. "lll@" does; that's just a silly argument.
Re:Falsehoods programmers believe about email by jstanley on Thursday September 01, 2022 @05:26AM (#32674005)
The only reason "LLL" and "lll" mean the same thing are because currently email addresses are (sometimes) case insensitive.

In a world where email addresses were "obviously" case sensitive, "LLL" mapping to "lll" would be just as crazy as "LLLLLLLLLL" mapping to "LLLLLLLLLLL".

They just seem similar, to humans. But they're different strings.

Re:Falsehoods programmers believe about email by TylerE on Thursday September 01, 2022 @04:15AM (#32673490)
It also maps to 111@ and III@, depending in font
Re:Falsehoods programmers believe about email by Aethylia on Thursday September 01, 2022 @04:38AM (#32673674)
By maps to, they mean it counts as the same email address. 111@ and lll@ do not do that. The font has no impact on the email spec. However it can add extra confusion.
Re:Falsehoods programmers believe about email by tsimionescu on Thursday September 01, 2022 @06:45AM (#32674539)
I doubt anyone is crazy enough to implement the email spec for comparing emails, to be fair. I would honestly be surprised if any publicly available mail agent or server supports that craziness.