【发布时间】:2014-06-27 14:34:59
【问题描述】:
我正在为 Thunderbird 开发一个扩展,并且想要打开一条消息,就像在收件箱文件夹中双击一样。我确实有消息引用(messageID / messageKey)。如何打开对话框?
【问题讨论】:
标签: thunderbird thunderbird-addon
我正在为 Thunderbird 开发一个扩展,并且想要打开一条消息,就像在收件箱文件夹中双击一样。我确实有消息引用(messageID / messageKey)。如何打开对话框?
【问题讨论】:
标签: thunderbird thunderbird-addon
发现它是怎么可能的,MailUtils 模块提供了一些不错的功能。但是,您需要消息头,而不是消息,例如通过 Gloda 找到。所以你必须先转换它们。
所以,首先导入 MailUtils:
Components.utils.import("resource:///modules/MailUtils.js");
然后使用函数,例如displayMessages 或 openMessageInNewWindow,定义如下: http://mxr.mozilla.org/comm-central/source/mail/base/modules/MailUtils.js
【讨论】: