Modifying the contents of a message
ludovic at mozilla.com
Thu Jan 26 15:24:29 UTC 2012
On 1/26/12 4:19 PM, Jonathan Protzenko wrote:
> Hi everyone,
> Ever since I started reading the mozilla.dev.apps.thunderbird and
> mozilla.dev.extensions newsgroups, a recurring question about
> Thunderbird has been "how can I modify the contents of a message" from
> an addon? I recently (less than 7 days ago) replied to this question
> twice, and my answer was basically:
> - inject a message in a local folder,
> - copy it to the destination folder,
> - remove the old message.
> I'm not sure there's a better way, but I guess not. My question is:
> could we make that easier by implementing, say, in C++,
> nsIMsgFolder::InjectMessageFromStream, making it of course scriptable?
> The arguments are:
> - this is something an addon will want to do, and it seems legitimate
> that they should want to do so,
> - it's better to provide a function for that than to have someone do
> it real, real wrong.
And could we write some docs on MDN about it ?
@lhirlimann on twitter
my photos http://www.flickr.com/photos/lhirlimann/collections/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4346 bytes
Desc: S/MIME Cryptographic Signature
More information about the tb-planning