MAILTO 每个互联网浏览器的最大长度? [英] MAILTO max-length of each internet browsers?
问题描述
更新: 两年前,有人问过一个类似的问题:Peter O. 指出的有效最大邮件:正文长度 幸运的回答这两个问题是互补的:-) 浏览器在过去两年中发展了很多,因此我们可以说这个问题是另一个问题的更新 ;-)
Update: Two years before this question, a similar question was asked: Effective maximum mailto: body lengths as pointed out by Peter O. Luckily answers of both questions are complementary :-) Browsers evolved a lot in the last two years, therefore we can say this question is an update of the other one ;-)
规范不限制mailto
命令长度:
- RFC 6068 规范
- HTML 4 规范(
mailto
命令是一个 URL)
(请参阅这个SO答案,this SO question 和 这个)
- RFC 6068 specification
- HTML 4 specification (
mailto
command is an URL)
(please see this SO answer, the answers of this SO question and the comment of this one)
因此 mailto
命令的长度取决于 Internet 浏览器的实现.
Therefore the mailto
command length depends on internet browser implementations.
我猜很旧的浏览器无法处理使用超过 255 个字符的 mailto
命令.
I guess very old browsers could not handle mailto
commands using more than 255 characters well.
然而,如今,内存大小不再是 mailto
命令长度的问题.
However, nowadays, memory size is no longer an issue about mailto
command length.
最常见 互联网浏览器的mailto
最大长度是多少?强>
What is the mailto
max-length of the most common internet browsers?
看看浏览器是否收敛到相同的mailto
长度限制应该很有趣.
Should be interesting to see whether browsers converge to the same mailto
length limitation.
推荐答案
Safari 和大多数电子邮件客户端没有硬性限制(取决于可用的 CPU 和 RAM)
Safari and most email clients have no hard limit (depends on available CPU and RAM)
2015 年网络浏览器测试:
- 野生动物园
- 705000000
- 2 分钟
- Mozilla/5.0(Macintosh;Intel Mac OS X 10_10_5)AppleWebKit/601.1.56(KHTML,如 Gecko)版本/9.0 Safari/601.1.56
- 受 16GB 内存限制
- 268435455
- 20 秒
- Mozilla/5.0(Macintosh;英特尔 Mac OS X 10.10;RV:41.0)Gecko/20100101 Firefox/41.0
- 受最大字符串长度限制
- 2097132
- 1 秒
- Mozilla/5.0(Macintosh;Intel Mac OS X 10_10_5)AppleWebKit/537.36(KHTML,如 Gecko)Chrome/45.0.2454.101 Safari/537.36
- 限制不解释
- 2029
- 5 秒
- Mozilla/5.0(Windows NT 10.0;WOW64;Trident/7.0;.NET4.0C;.NET4.0E;rv:11.0),如 Gecko
- 限制不解释
2015 年电子邮件客户端测试:
- Mozilla 雷鸟
- 2097132 在 1 秒内起作用
- 268435455 使用 100% CPU 2 分钟,但无法渲染主体且无法使用
- 版本 38.3.0
- 2097132 在 5 秒内起作用
- 268435455 长时间使用 100% CPU(超过 5 分钟)
- 2.38 版
- 500000 在 14 秒内完成
- 2097132 长时间使用 100% CPU(超过 5 分钟)
- 8.2 版
- 在 1 秒内修剪到 2070
- 2013 版
2017 年更新
Chrome 61 在 macOS(16 GB RAM)上仍然使用 2097132 长度;
Chrome 61 still works with 2097132 length on macOS (16 GB RAM);
navigator.userAgent; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" location.href='mailto:?body='+'a'.repeat(2097132);
根据 Windows 上的@Chloe(32 GB RAM),它限制为 1800;
According to @Chloe on windows (32 GB RAM) it's limited to 1800;
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
这篇关于MAILTO 每个互联网浏览器的最大长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!