<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Johnathan,<br>
<br>
I am not too sure about modification of the message body (doesn't
purge attachments do something similar?), but I would certainly be
interested in a scriptable interface that would make it easy to
manipulate any header fields. E.g. there is one problem with smtp
servers modifying from addresses or "decorating"subject lines
"[might be spam]" which are big annoyances and IMO a perfect use
case for extensions to deal with. <br>
<br>
Also, is there any way to go through gloda and flow back changes
from there into the messages? ( I don't know if this is practical
from the implementation POV, I just thought I throw the idea out
there)<br>
<br>
thanks,<br>
Axel<br>
<br>
On 26/01/12 15:19, Jonathan Protzenko wrote:
<blockquote class=" cite" id="mid_4F216EE8_1010007_gmail_com"
cite="mid:4F216EE8.1010007@gmail.com" type="cite">Hi everyone,
<br>
<br>
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:
<br>
- inject a message in a local folder,
<br>
- copy it to the destination folder,
<br>
- remove the old message.
<br>
<br>
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:
<br>
- this is something an addon will want to do, and it seems
legitimate that they should want to do so,
<br>
- it's better to provide a function for that than to have someone
do it real, real wrong.
<br>
<br>
I'm not very familiar with that area, so I'd be interested in
hearing what others have to say on the matter :).
<br>
<br>
Cheers,
<br>
<br>
jonathan
<br>
_______________________________________________
<br>
tb-planning mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:tb-planning@mozilla.org">tb-planning@mozilla.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/tb-planning">https://mail.mozilla.org/listinfo/tb-planning</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>