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
Conditional xul overlay
-
- Posts: 6403
- Joined: February 3rd, 2009, 6:29 pm
Re: Conditional xul overlay
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
nsIMsgDBHdr
http://developer.mozilla.org/docs/Mozil ... sIMsgDBHdr
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;
http://developer.mozilla.org/docs/Mozil ... sIMsgDBHdr
-
- Posts: 13
- Joined: April 18th, 2013, 1:22 am
Re: Conditional xul overlay
Thank you very much. I will take a look into that and reply again to this thread later.
Best regards
Best regards