Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从邮件中读取标题?有正则表达式吗?我对这样的标题特别有问题:
From: John Doe <example@example.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="XXXXboundary text"
边界前的空间是多少?是标签还是什么?
什么语言?
我推荐 perl 来完成这个任务。如果您的 perl 安装没有附带这些模块,请访问 cpan.org 并获取 MIME::Tools。