Questions tagged [thunderbird-webextensions]

For extensions for the Mozilla Thunderbird e-mail client.

"MailExtensions" are WebExtensions with some added features specific to Thunderbird. WebExtensions is the current type of Extension used for Firefox and Chrome. Unlike how extensions once were, MailExtensions don't have complete access to Thunderbird's internal components and UI, but instead are able to access functionality through the use of APIs.

32 questions
5
votes
0 answers

Thunderbird tasks api

Is there a way to hook into the tasks in Thunderbird as you can do with other parts of the application by addon/webextension? As far, as I understand it, tasks are part of the calender, which, in return, belongs to the lightning addon - is that, why…
5
votes
2 answers

How to write a Thunderbird extension (webextension) to modify the message display?

I'd like to write an extension for Thunderbird that modifies the message display (e.g. insert/replace text/markup/image). Unfortunately, the documentation is lacking (due to recent…
handle
  • 5,859
  • 3
  • 54
  • 82
2
votes
0 answers

Access the clicked item in Thunderbird Add-on

The purpose of my add-on is to export a single email or an entire folder for later analysis. At the moment I have created a field within the menu for the single item, but I don't understand how to access the item I right-clicked on. Can someone…
2
votes
0 answers

Webextension thunderbird get attachment

First of all I want to apologize if this question may seem too simple but I haven't found any solution since yesterday and I'm not very good at javascript. I want to create a personal Thunderbird addons that will communicate with an application I…
2
votes
0 answers

onNewMailReceived Event returns message list containing messages from previous

Since the filtering is not the best I wanted to implement my own filter. browser.messages.onNewMailReceived.addListener(function(folder, messageList) { if(folder.accountId == "account1") { if(folder.path == "/INBOX") { …
2
votes
0 answers

Host Permissions required for SelectionText of info object in Thunderbird 68?

The documentation for menus API of Thunderbird 68 says : The following properties are only set if the extension has host permissions for the given context: linkUrl, linkText, srcUrl, pageUrl, frameUrl, selectionText. In my manifest.json, following…
1
vote
0 answers

Thunderbird Extension Development, Log Error Message "Security Error: Content at moz-nullprincipal"

Hello Stackoverflow community, I am facing a small problem with Thunderbird, more specifically with the development of an extension. The developed extension should automatically forward the selected email to a predefined email by clicking on the…
1
vote
0 answers

Thunderbird WebExtension API (v78) : How to change the message display of threads on Thunderbird?

I'm currently working on a project using the Thunderbird WebExtension API (v78) and I want to change how messages are displayed in Thunderbird when the thread view is selected. Currently, the message view is as follows : picture 1. I can't click on…
1
vote
0 answers

thunderbird bug accessing to tab with messenger.messageDisplay.getDisplayedMessage

I am trying to access the content of a tab. But most of the time it gives an error. Has the code ever worked? list of tabs: messenger.tabs.query( { active: false , currentWindow: true } ).then( (tabs) => { console.log (tabs);…
1
vote
1 answer

How do i access the thunderbird messenger window object from background script -Web extension

currently tried method. the returned object is not showing the array of window object,it showing only one object which is extension manager window , in fact there is two window opened in thundebrird one is messenger window (default) and the…
1
vote
1 answer

Thunderbird Webextensions .messages.getFull() raises Exception 0x80004005 (NS_ERROR_FAILURE)

This is a kind of follow-up of the following question/answer: https://stackoverflow.com/a/60246205/6342243 The code at the end of this question gets a list of accounts, selects the emailAccountName, gets a MessageList object from the…
Richard Gantz
  • 321
  • 1
  • 8
1
vote
2 answers

Thunderbird Webextensions Plug-In get a messageList

I already tried different things to get a list of mails from my inbox folder in Thunderbird. let page = await browser.messages.list(folder); But how to declare folder? MailFolder is explained in Thunderbird Docs, but how do i get accountId…
MrFreeze
  • 23
  • 3
1
vote
1 answer

How to open urls using addon for Thunderbird 68 in external browsers instead of built-in browser?

In Thunderbird 68 while developing addon using webextensions, it has been observed that messenger.launchExternalURL is not supported anymore, and the equivalent option in Webextensions is to use browser.tabs.create. But, the problem with…
bprasanna
  • 2,423
  • 3
  • 27
  • 39
0
votes
1 answer

Filter emails which are older than X days only with several "or" statements

I will explain what I want to do and also why, just because someone knows a better way of what to do to reach the why. My goal is to have an Inbox where most Emails stay for 14 days and only after that are being sorted into their respective folders…
0
votes
1 answer

Listening for changes in the address fields

Is there a way for a web extension add-on to listen for address fields changes when message is being edited? I need to listen for "to" address being added or changed. Tried browser.compose.onComposeStateChanged - it get fired (sporadically) when…
1
2 3