# Is this possible in Thunderbird?

**URL:** <https://discourse.mozilla.org/t/is-this-possible-in-thunderbird/19526>\
**Category:** Development\
**Created:** [September 24, 2017, 9:47pm UTC](https://discourse.mozilla.org/t/is-this-possible-in-thunderbird/19526 "2017-09-24T21:47:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThatsJustATypo](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@ThatsJustATypo](https://discourse.mozilla.org/u/ThatsJustATypo)\
**Post date:** [September 24, 2017, 9:47pm UTC](https://discourse.mozilla.org/t/is-this-possible-in-thunderbird/19526/1 "2017-09-24T21:47:11Z")

</div>

I currently use Outlook 2007 which has been customized with several VBA macros. I’d like to switch to Thunderbird if I can duplicate the macro functionality in Thunderbird. Is this possible:

1. Add new choices to the menu bar. (e.g. “ORDER FULFILLMENT”)

2. When the menu is clicked, it presents a sub-menu (e.g. "1. New order; 2. Upgrade order; 3. Support)

3. When the sub-menu item (1,2,3,etc) is selected, the incoming message is Replied to with pre-determined text and images, and a local file is attached. (e.g. “Thank you for your order. Here is a screenshot [image]. Please see the attached file [xyz.pdf].”)

4. I can then manually continue to edit the reply and click Send.

If it’s possible, please direct me where to start with a “hello world” example.

Thank you!

---

<div class="post-metadata">

**Author:** ![NilkasG](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@NilkasG](https://discourse.mozilla.org/u/NilkasG)\
**Post date:** [September 25, 2017, 4:48pm UTC](https://discourse.mozilla.org/t/is-this-possible-in-thunderbird/19526/2 "2017-09-25T16:48:14Z")

</div>

JavaScript is Turing-complete and Thunderbird extensions have OS level access: In theory pretty much everything is possible.

This seems like a reasonably good place to start:

> **[Building a Thunderbird extension 1: introduction](https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Thunderbird_extensions/Building_a_Thunderbird_extension)**
>
> Thunderbird is Mozilla's open-source email application. It shares many of the technologies used by Firefox, including JavaScript, the Gecko layout engine, the XUL XML User Interface Language and the XPCOM Cross-Platform Component Object Model....

---

<div class="post-metadata">

**Author:** ![ThatsJustATypo](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@ThatsJustATypo](https://discourse.mozilla.org/u/ThatsJustATypo)\
**Post date:** [September 26, 2017, 10:43am UTC](https://discourse.mozilla.org/t/is-this-possible-in-thunderbird/19526/3 "2017-09-26T10:43:03Z")

</div>

Thank you, Nilkas. I was hoping for, “Yes, that’s easy to do!” but I’ll settle for “In theory it’s possible.” 🙂
