如何使用 Thunderbird 扩展插入电子邮件标题?
我正在构建 Thunderbird 扩展,并希望将我自己的标头添加到所有传出电子邮件中(例如
I'm building a Thunderbird extension and would like to add my own header to all outgoing email (e.g. <myext-version: 1.0> ). Any idea how to do this? I know it's possible since this is done in the OpenPGP Enigmail extension. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是我正在处理的一个扩展的代码:
将其放入由撰写窗口加载的 .js 文件中(例如通过覆盖
chrome://messenger/content/messengercompose/messengercompose.xul)< /代码>。
在我的例子中,SendObserver.observe 中的检查是必要的,因为我想要进行用户交互,但您可能可以将其省略。
Here is the code from one extension I'm working on:
Put this inside a .js file that is loaded by the compose window (for example by overlaying
chrome://messenger/content/messengercompose/messengercompose.xul)
.The check in SendObserver.observe was necessary in my case because I wanted to do a user interaction, but you could probably leave it out.
我不知道答案,但只是一些想法...
我认为雷鸟扩展通常只是 xul 和 js。 来自 enigmail 网站:
查看 Enigmail 源代码, 这可能是相关部分(用 c++ 编写)
因此您可能需要将他们所做的事情翻译成 js(!) 或继续寻找不同的示例。
这是另一个可能有用的链接
I don't know the answer but just some thoughts...
I think thunderbird extensions are usually just xul and js. From the enigmail site:
Looking at the Enigmail source code, this might be the relevant section (written in c++)
So you might need to either translate what they've done into js(!) or keep looking for a different example.
Here's another link that might be helpful