Mozilla Thunderbird API - 读/写电子邮件
我正在为 Mozilla Thunderbird 开发一个扩展来加密收件箱中的消息。Thunderbird 中是否有任何 API 调用用于读取或写入收件箱中的消息?
我打算使用 AES 加密来加密所有消息,然后我意识到这会改变所有消息的大小,因为 AES 使用固定大小的分组密码。这意味着我必须单独更新索引文件。在达到这种复杂程度之前,我希望能够编写凯撒密码。
任何有关 Thunderbird 电子邮件消息 I/O 的帮助将不胜感激。
I am developing an extension for Mozilla Thunderbird to encrypt messages in the inbox.Are there any API calls in Thunderbird for reading from or writing to messages in the inbox?
I was going to encrypt all the messages with AES encryption and then I realised that it would change the size of all the messages because AES uses a block cipher which is a fixed size. This would mean I would have to update the index file separately. Before I reach that level of complexity I would like to be able to write a ceasar cipher.
Any help on Thunderbird email message I/O would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能这样写入消息。例如,在编辑草稿时,Thunderbird 只需保存新草稿并删除前一个草稿。
要阅读消息,您通常需要流式传输它。不幸的是,我不记得如何将新消息保存到文件夹中。
You can't write to messages as such. For instance, when editing a draft, Thunderbird simply saves a new draft and deletes the previous one.
To read a message, you normally want to stream it. Unfortunately I can't remember how to save a new message to a folder.