TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Email address validity checks suck

7 点作者 MountainMan13124 个月前
I use the + operator in my email address.<p>For example, I just signed up for a second line of internet for my homelab with Spectrum. I provided my email address &quot;me+spectrum@example.com&quot;. The sales rep&#x27;s systems accepted it just fine, but when I try to create an account on their online portal, it&#x27;s suddenly not a valid email address.<p>This is arguably worse than requiring passwords to contain symbols and numbers.<p>I bet there&#x27;s more weird rules that are hurting other people as well.<p>RFC 2822 Section 3.2.4 [1] says:<p><pre><code> atext = ALPHA &#x2F; DIGIT &#x2F; ; Any character except controls, &quot;!&quot; &#x2F; &quot;#&quot; &#x2F; ; SP, and specials. &quot;$&quot; &#x2F; &quot;%&quot; &#x2F; ; Used for atoms &quot;&amp;&quot; &#x2F; &quot;&#x27;&quot; &#x2F; &quot;*&quot; &#x2F; &quot;+&quot; &#x2F; &quot;-&quot; &#x2F; &quot;&#x2F;&quot; &#x2F; &quot;=&quot; &#x2F; &quot;?&quot; &#x2F; &quot;^&quot; &#x2F; &quot;_&quot; &#x2F; &quot;`&quot; &#x2F; &quot;{&quot; &#x2F; &quot;|&quot; &#x2F; &quot;}&quot; &#x2F; &quot;~&quot; </code></pre> + is valid atext.<p>I suspect what&#x27;s happening is they&#x27;ve got some rule against the word &quot;spectrum&quot; or something. Or perhaps they&#x27;re a bad company and just HAVE to have base-level addresses to sell to the advertisers?<p>- [1]: https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc2822#section-3.4.1

9 条评论

OhMeadhbh4 个月前
I always assumed they did this because they DON&#x27;T want you to be able to filter their spam email or know who they sold your email address to. It may be a bit cynical to call the entirety of the internet a shallow money trench intended to put plastic marketing messages in front of increasingly jaded digital natives. But there are a lot of companies that behave that way.<p>To make things more annoying, I once had an email address that had a three-level domain, think me@email.example.com instead of a domain with two components like me@example.com. I found more than one email validator that insisted that this was illegal.
dtnewman4 个月前
I do the same thing as you but with owning the root domain, so no need for a +. In other words, I would use spectrum@example.com for this (i have a catchall rule so it forwards to the same place). I’ve never had an email validation issue and this actually makes <i>more</i> things validate, since some websites require you to enter a “business email” and this passes that (I think they basically filter out Gmail and others).
评论 #42769197 未加载
ClassyJacket4 个月前
I don&#x27;t get why they do this.<p>Email validation can be done by sending an email to the specified address. Why bother differentiating between &quot;invalid&quot; and &quot;valid but doesn&#x27;t exist&quot;?<p>Just check there&#x27;s an @ symbol with something before it and something after it and if so, send it an email.<p>Any reason not to do it this way?
评论 #42767843 未加载
mitchellpkt4 个月前
&gt; I suspect what&#x27;s happening is they&#x27;ve got some rule against the word &quot;spectrum&quot; or something<p>I&#x27;ve avoided this by using only the first few and&#x2F;or last few letters of the service in the email tag (e.g. &quot;HaNe&quot; instead of &quot;hackernews&quot;). It&#x27;s an easy filing system for me, doesn&#x27;t trigger concerns about phishing, and makes for shorter handles.
dcminter4 个月前
I tried to sign up for Stack Overflow the other day with my email address - and got rejected. Initially it seemed to be rejected due to containing the &quot;stack&quot; term and being mistaken for a &quot;temporary address&quot;, but then after a brief to-and-fro with support I&#x27;m told that it&#x27;s due to a &quot;security issue&quot; that they won&#x27;t elaborate on.<p>Finally after 20 years I wanted to ask a question there and failed at step zero! I have no idea what specific &quot;security&quot; reason they dreamed up (I&#x27;ve never had an issue like that with it elsewhere)<p>The irony that I might have to create a temporary address to avoid the issue being reported as due to a temporary address is too much for me so I gave up.<p>It does indeed &quot;suck&quot;
lobito254 个月前
To my business, emails containing + are considered disposable because some users abuse them to create temporary accounts for trial services, etc.
评论 #42767975 未加载
codegeek4 个月前
This is the unfortunate cost of spam. I can totally understand why most services try and filter out disposable emails or at least emails that look disposable. It is far from a perfect system but unless spam and abuse is 100% solved, this is the reality.
dlcarrier4 个月前
They do it on purpose. Gmail allows adding dots between any two letter in the local side of the address, so I&#x27;ll add them in different locations, for each account I have to make with an organization that prohibits the plus aliases.
评论 #42766579 未加载
apothegm4 个月前
In some cases it’s pure ignorance. In others I suspect they want to prevent the “infinite free trial accounts” hack.