Detecting incoming mail with WebExtensions
-
- Posts: 7
- Joined: June 17th, 2019, 7:14 am
Detecting incoming mail with WebExtensions
I'm currently working on a basic extension that implements the WebExtensions API live in the current beta build, and I'm having some difficulty implementing code to detect/filter incoming messages. The older Thunderbird extension docs provide some illumination on this (https://developer.mozilla.org/en-US/doc ... oming_Mail), but the link to the previous step is dead and some of the code doesn't seem supported in the current build. Any ideas as to how to detect incoming mail/where I could potentially find resources for this? I'm new to Thunderbird development, so I though this forum might be a good place to start! Any help is appreciated.
- DanRaisch
- Moderator
- Posts: 127234
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Detecting incoming mail with WebExtensions
Moving to Extension Development.
-
- Posts: 7
- Joined: June 17th, 2019, 7:14 am
-
- Posts: 6428
- Joined: February 3rd, 2009, 6:29 pm
Re: Detecting incoming mail with WebExtensions
The Mailbox Alert addon detects incoming mail and uses a custom filter. It works with Thunderbird 67.
The developer recently added support for the new legacy API.
Mailbox Alert
http://addons.thunderbird.net/thunderbi ... box-alert/
http://tjeb.nl/Projects/Mailbox_Alert/
Legacy API for WebExtensions
http://thunderbird-webextensions.readth ... egacy.html
Mail event system
http://developer.mozilla.org/docs/Mozil ... ent_system
Reference
http://dxr.mozilla.org/comm-release/sou ... stener.idl
http://dxr.mozilla.org/comm-release/sou ... ession.idl
http://dxr.mozilla.org/comm-release/sou ... ervice.idl
http://dxr.mozilla.org/comm-release/sou ... Action.idl
http://dxr.mozilla.org/comm-release/sou ... ersion.txt
The developer recently added support for the new legacy API.
Mailbox Alert
http://addons.thunderbird.net/thunderbi ... box-alert/
http://tjeb.nl/Projects/Mailbox_Alert/
Legacy API for WebExtensions
http://thunderbird-webextensions.readth ... egacy.html
Mail event system
http://developer.mozilla.org/docs/Mozil ... ent_system
Reference
http://dxr.mozilla.org/comm-release/sou ... stener.idl
http://dxr.mozilla.org/comm-release/sou ... ession.idl
http://dxr.mozilla.org/comm-release/sou ... ervice.idl
http://dxr.mozilla.org/comm-release/sou ... Action.idl
http://dxr.mozilla.org/comm-release/sou ... ersion.txt
-
- Posts: 7
- Joined: June 17th, 2019, 7:14 am
Re: Detecting incoming mail with WebExtensions
Awesome. Thank you for the help!