【问题标题】:get inReplyTo and references from Thunderbird mail header从 Thunderbird 邮件头获取 inReplyTo 和引用
【发布时间】:2017-01-18 13:48:15
【问题描述】:

我在敲我的脑袋:如何从 Thunderbird 消息头中获取 In-Reply-To 和 References?是不是消息头属性:aMsgHdr.get(String??)Property()?

在哪里可以找到可能的属性名称? 如果它不在数据库中,我如何将它从标题中取出? 我该如何设置?

非常感谢您的帮助, 克劳斯

【问题讨论】:

    标签: javascript xpcom thunderbird thunderbird-addon


    【解决方案1】:

    它不在标题中。需要查看 mimemessage。我把它放到了 MDN 的 hotow 怎么做(页面底部)。 https://developer.mozilla.org/en-US/docs/Thunderbird/Message_View_Examples#section_8

    某些标题条目在 msgHdr 中可用,有些则不可用。这些可以在 MsgHdrToMimeMessage 回调返回的 mimemessage 中找到。它们可以通过 aMimeMsg.get('in-reply-to') 或 aMimeMsg.headers['in-reply-to'][0] 检索(例如,如果需要 in-reply-to 标头 - 注意如果使用 aMimeMsg.headers,则为 [0]。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-01
      • 2011-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多