问题标签 [mbox]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 如何使用 python 创建 mbox 电子邮件文件
我有一个包含电子邮件地址和其他数据的 mysql 数据库。我需要创建可以发送到数据库中地址的特定电子邮件。电子邮件的类型将根据 db 上的字段而有所不同。每封电子邮件都会有一个 pdf 附件,该附件取自 db 中的路径字段。由于电子邮件需要从另一台计算机发送,我考虑创建一个 mbox 文件,其中包含作为 base64 ASCII 文本的消息和附件,然后可以在诸如进化之类的电子邮件程序中打开并从另一台计算机发送。我需要获得有关如何使用 python 和 mysql 完成此操作的建议和可能的示例。如何将电子邮件地址、消息正文和 pdf 转换为 ASCII 文本 mbox 文件的示例将是理想的。谢谢。
email - 如何在 CentOS 上自动归档通过 sendmail MTA 接收/发送的邮件副本?
我们有一个应用程序,它发送电子邮件并接收来自用户的电子邮件,这些电子邮件触发了应用程序中的功能。来回有很多电子邮件。我们希望能够自动归档所有发送/接收的电子邮件,并在可能的情况下拥有可搜索的归档。我们每天谈论近 1 GB 的电子邮件。
ruby - 如何在 Ruby 中解析邮箱文件?
Ruby gemrmail
具有解析本地磁盘上的邮箱文件的方法。不幸的是,这个 gem 已经坏了(在 Ruby 2.0.0 中)。它可能无法修复,因为人们正在迁移到 gem mail
。
Gemmail
有 method Mail.read('filename.txt')
,但它只解析邮箱中的第一条消息。
那个 gem 和 builtinNet::IMAP
已经在网上充斥着关于通过 imap 访问邮箱的教程。
那么,还有没有办法在没有 imap的情况下解析一个普通的旧文件?作为我小组中唯一的 rubyist,我宁愿不求助于http://docs.python.org/2/library/mailbox.html让自己尴尬。
或者,更糟糕的是,PHP 的imap_open('/var/mail/www-data', ...)
——如果只Net::IMAP.new
接受这样的文件名。
email - 如何将旧电子邮件的备份从 Mbox 转换为 Maildir?
我有一个旧的邮件服务器(squirrelmail),但它出现了故障,但我备份了发送到所有电子邮件的所有消息,现在我创建了一个新服务器(Iredmail)
问题是我目前拥有的文件是 Mbox 格式,因为每个用户都有一个大文本文件,其中包含他们以前收到的所有电子邮件。而且(Iredmail)有一个Maildir系统,我想转换旧文件然后将它们添加到新系统中,这样用户也可以查看他们的旧电子邮件。
email - 如何使 maildrop 不会静默丢弃所有邮件?
我想尝试使用 maildrop 而不是 procmail,因为我是邮件过滤的新手,并且希望避免意外收不到邮件。将|maildrop
我的$HOME/.forward
结果放入邮件中并没有发送到我的邮箱$MAIL
,更糟糕的是,它不会被退回。它只是消失在以太中。我对有限数量的 maildrop 语法示例感到满意,但我没有看到任何说明如何首先开始使用它的方法。
php - 备份的电子邮件文件格式选项
我打算将邮箱中的电子邮件备份到文件中。我正在尝试根据以下条件找出正确的格式:
- 无需特定操作系统即可读取/创建 - 因此 Outlook 文件格式已淘汰。
- 应该支持附件。(Base64 编码很好)
- 应该是合理的标准(我不想在意识到周围没有客户阅读或处理它们之前备份 5 年的电子邮件。)
- 应该可以使用 Cron 以编程方式进行备份。
我很可能会使用 PHP 作为语言自己编写备份脚本,但在 Ubuntu 上开箱即用的任何东西也都可以。
似乎 MBox ( https://en.wikipedia.org/wiki/Mbox ) 似乎是正确的选择。是这样吗?如果不是还有什么?如果是这样,指向在 mbox 上运行且仍受支持或正在开发中的库的任何指针?
parsing - 如何使用 JavaMail API 解析 Mbox 文件?
我想使用 JavaMail 来解析一个 .mbox 文件,就像这个http://mail-archives.apache.org/mod_mbox/lucene-java-user/201210.mbox一样。
我想做的是:
事实证明这是错误的。任何的意见都将会有帮助。
先感谢您。
更新:工作示例
javascript - 如何在不插入 dom 的情况下加载 mbox 内容
我正在尝试与 Adobe Test & Target 交互,因为我想通过我的 mbox 加载 JSON 而不是标记。我想将一些 mbox 内容加载到 javascript 中并手动将其添加到 DOM。我已经到处搜索了 mbox.js 的完整文档,但除了最基本的内容之外我找不到任何东西。它描述了如何使用mboxDefine()
和mboxUpdate
定位特定的 dom 元素。有没有只返回内容的函数?```
ruby - Mbox 中的数据转为 JSON 还是 CSV?
我刚刚使用 Google 的新下载功能下载了我所有的 Gmail,它给了我一个大的 .mbox 文件。开始从文件中提取和处理单个电子邮件的脚本的基本外壳是什么?
thunderbird - What format specification is the movemail account type of Thunderbird referring to
After a long confusing research I'm wondering what format specification the movemail account type in Thunderbird (version 24) is referring to. As far as I'm concerned, movemail is a program to move Mail between mbox files (http://mailutils.org/manual/html_node/movemail.html#movemail), but not a specification. There're a lot of tutorial and forum threads on the topic (see below), but none of them mentions versions or references specification in a useful way. Following release notes is difficult because they're only rarely explaining impact of implementation changes. Documentation from the side of Thunderbird seems to be missing completely (latest is the wiki https://wiki.mozilla.org/Thunderbird:Help_Documentation:Creating_an_Account#Creating_a_Movemail_Account where screenshot refer to version prior to 12 if I recall correctly).
My research result so far:
http://ubuntuforums.org/showthread.php?t=1718795
https://askubuntu.com/questions/301988/using-movemail-with-thunderbird-on-ubuntu
http://forums.mozillazine.org/viewtopic.php?t=11772
https://askubuntu.com/questions/301988/using-movemail-with-thunderbird-on-ubuntu (involves postfix which shouldn't be necessary)
http://forum.ubuntuusers.de/topic/fetchmail-procmail-thunderbird/ (German, google translate: http://translate.google.com/translate?hl=en&sl=de&tl=en&u=http%3A%2F%2Fforum.ubuntuusers.de%2Ftopic%2Ffetchmail-procmail-thunderbird%2F), strongest indication for mbox format
https://askubuntu.com/questions/1916/how-can-i-access-system-mail-in-var-mail-via-thunderbird