Followup to bug 241197 -- or -- feedback from an extension developer

Jonathan Protzenko jonathan.protzenko at gmail.com
Mon Mar 22 21:30:16 UTC 2010


On 03/18/2010 07:50 AM, Siddharth Agarwal wrote:
>> For instance, there exist both GetMsgFolderFromUri and
>> MailUtils.getFolderForURI.
>
> You're right in that I should have filed a followup bug to remove
> GetMsgFolderFromUri entirely. Care to do it?
Yes I will. What about the interface without implementation? Should this
be removed as well?
>
>> The ideal solution would be to have some .jsm that offers helpers for
>> the most common actions.
>
> That's sort of what MailUtils
> <http://mxr.mozilla.org/comm-central/source/mail/base/modules/MailUtils.js>
> was intended to be -- and it is deliberately a module so that all
> sorts of code -- chrome, component and module -- could use it, but I
> do realize that it lacks a number of helpers that would be useful. (As
> far as I know, we've added functions to it mostly as we've needed them
> ourselves.) 
How does this play w.r.t. Gloda? Should helpers be added as GlodaMessage
methods or should they be added a standalone functions there?



More information about the tb-planning mailing list