AppleScript - 获取 .eml 文件的信息
我编写了一个 AppleScript 来备份我的所有电子邮件。很多电子邮件我已经在本地硬盘上保存为 .eml 文件,并从服务器中删除了它们。有没有办法使用 AppleScript 作为消息加载 .eml 文件,以获取其中的发送日期、主题等?
I write an AppleScript to backup all my emails. A lot of emails I have already saved as .eml files on my local hard drive and deleted them from the server. Is there a way to load the .eml files with AppleScript as message to get the date sent, subject etc. of them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的事情怎么样:
正文有点难,因为您需要决定是否只需要电子邮件正文或还需要嵌入到正文中的所有以前的电子邮件。以下内容获取我的测试电子邮件的正文。
如果您使用其他字符,请务必注意文件的编码。
How about something like this :
The body is a little harder since you need to decide if you only want the emails body or also all the previous emails that are embedded into the body. The following gets the body of my test email.
Make sure you watch out for the encoding of the file if you use other characters.