Conditional xul overlay

Talk about add-ons and extension development.
Post Reply
MartinWH
Posts: 13
Joined: April 18th, 2013, 1:22 am

Conditional xul overlay

Post by MartinWH »

Hi everyone!

I am absolutely new to extension development for Thunderbird. I wanted to ask how I can get a conditional xul overlay. I want a button in the msg Header only to be displayed when a mail comes from a specific sender.

Can you give me some advice?

Best regards
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Conditional xul overlay

Post by morat »

Here is an example extension that adds a button to the message header view toolbar.

The button changes its style dependent on a property of the selected message.

Filter Button
http://addons.thunderbird.net/thunderbird/addon/407832

Code: Select all

var msg = gFolderDisplay.selectedMessage;
var sender = msg.mime2DecodedAuthor;
nsIMsgDBHdr
http://developer.mozilla.org/docs/Mozil ... sIMsgDBHdr
MartinWH
Posts: 13
Joined: April 18th, 2013, 1:22 am

Re: Conditional xul overlay

Post by MartinWH »

Thank you very much. I will take a look into that and reply again to this thread later.

Best regards
Post Reply