【问题标题】:How to open the mail window in Thunderbird from an extension?如何从扩展打开 Thunderbird 中的邮件窗口?
【发布时间】:2014-06-27 14:34:59
【问题描述】:

我正在为 Thunderbird 开发一个扩展,并且想要打开一条消息,就像在收件箱文件夹中双击一样。我确实有消息引用(messageID / messageKey)。如何打开对话框?

【问题讨论】:

    标签: thunderbird thunderbird-addon


    【解决方案1】:

    发现它是怎么可能的,MailUtils 模块提供了一些不错的功能。但是,您需要消息头,而不是消息,例如通过 Gloda 找到。所以你必须先转换它们。

    所以,首先导入 MailUtils:

    Components.utils.import("resource:///modules/MailUtils.js");

    然后使用函数,例如displayMessages 或 openMessageInNewWindow,定义如下: http://mxr.mozilla.org/comm-central/source/mail/base/modules/MailUtils.js

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-14
      • 2021-10-20
      • 2011-05-31
      • 2021-04-30
      • 2018-07-04
      • 2018-10-01
      • 1970-01-01
      • 2022-09-28
      相关资源
      最近更新 更多