A Thunderbird "stdlib"

Patrick Cloke clokep at gmail.com
Fri Dec 17 00:43:09 UTC 2010

 From your description, it sounds to me like this is the idea that 
STEEL/FUEL [1] was originally created for, I'm not sure how much work 
was ever done on it, but at least the Application interface exists.  
Maybe that would be a good approach to including these for other 
extension developers?  I think modules might be confusing enough for new 
extension developers that it could be worth it to have them included by 
default.  FUEL contains some simple methods for adding/removing 
bookmarks, accessing browser tabs, etc. but (as far as I know) the 
Thunderbird version (STEEL) was never really developed as far.

Just an idea,

Patrick Cloke

[1] https://developer.mozilla.org/en/Toolkit_API/STEEL & 

On 12/16/2010 4:13 PM, Jonathan Protzenko wrote:
> Hi,
> In the process of writing Thunderbird Conversations, I've been writing 
> a considerable amount of small utility functions. Such functions 
> include wrappers to easily get a given address book, a wrapper that 
> deletes messages, archives some, tells you whether a message is in a 
> "Drafts" folder, a function to get a given message's body... these 
> wrappers have been pretty stable for quite some time now.
> I'll probably enrich the set with my JS message sending backend, which 
> should be shared by both Thunderbird Conversations (for quick reply) 
> and "Compose in a tab" [1].
> I don't feel like this is worth integrating into the tree. However, 
> what if I spun off these "common parts" into a separate github repo 
> and we started advertising it as a "readymade" package that extension 
> authors can include in their own builds, to make their lives easier? I 
> feel like that's exactly the kind of stuff I missed when I was 
> starting...
> Here are some sample files:
> https://github.com/protz/GMail-Conversation-View/blob/master/modules/AddressBookUtils.jsm 
> https://github.com/protz/GMail-Conversation-View/blob/master/modules/MsgHdrUtils.jsm 
> https://github.com/protz/GMail-Conversation-View/blob/master/modules/VariousUtils.jsm 
> (the last one is is kinda messy, as it includes specific quote 
> detection heuristics, but the first functions are very useful imho).
> Thoughts?
> jonathan
> [1] The backend was initially developed inside Compose in a tab, it's 
> been improved in Thunderbird Conversations, and now I need to factor 
> out the common parts and make the two addons share as much code as 
> possible.
> _______________________________________________
> tb-planning mailing list
> tb-planning at mozilla.org
> https://mail.mozilla.org/listinfo/tb-planning

More information about the tb-planning mailing list