Question

I have a JavaScript function which operates on strings, and I’d like to write a Thunderbird extension to apply it to every MIME part in an outgoing message – both inline parts like the body and any attachments. However, I can’t find the API call I need to request the MIME data from Thunderbird. Ideally, I’d write something like

var parts = GetMimeParts();
for (var i = 0; i < parts.length; i++) {
    parts[i].data = mutate_string(parts[i].data);
}

What Thunderbird API should I use to retrieve the MIME parts from an outgoing message?

Was it helpful?

Solution

The tl;dr is, there's no simple API to do that. You would have to:

What exactly are you trying to achieve?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top