【问题标题】:Is it possible to update filter rules in Thunderbird via custom extension?是否可以通过自定义扩展更新 Thunderbird 中的过滤规则?
【发布时间】:2021-11-16 00:24:54
【问题描述】:

您好,感谢您的关注。

我想为实现某种黑名单的 Mozilla Thunderbird 创建一个扩展。 可以为邮件创建过滤规则,我想添加一个按钮,为选定的邮件创建过滤规则。这些规则存储在 msgFilterRules.dat 文件中,我可以手动编辑它,但只能在 Thunderbird 关闭时进行。

有没有办法使用某种 API 或 WebExtensions 来操作这个文件?

【问题讨论】:

    标签: thunderbird thunderbird-addon thunderbird-webextensions


    【解决方案1】:

    感谢https://thunderbird.topicbox.com/groups/addons的John Bieling

    目前我们没有 API 来操作过滤器,但它已被请求,我们最终会添加它。同时,您可以实现自己的过滤系统,通过侦听新消息并在它们到达您自己的阻止列表时移动它们: https://webextension-api.thunderbird.net/en/91/messages.html#onnewmailreceived https://webextension-api.thunderbird.net/en/91/messages.html#move-messageids-destination

    【讨论】:

      猜你喜欢
      • 2015-05-16
      • 1970-01-01
      • 2020-10-05
      • 2014-03-09
      • 2012-02-09
      • 1970-01-01
      • 2013-12-12
      • 2014-12-01
      • 1970-01-01
      相关资源
      最近更新 更多