The patch is attached on bugzilla, bug
http://bugzilla.mozilla.org/show_bug.cgi?id=105676
to make a course outline of the problem holding this patch;
I set the To field in the c++ code, and pass that along with the rest
of the info into the openWindow();
but when the window appears, the To: field has been overwritten by the
From address in the original message.
I think the problem is in the function Recipients2CompFields(msgCompFields),
in the file mailnews/compose/resources/content/addressingWidgetOverlay.js
This can, I suppose, be fixed in two places...
either put the address that should end up in the To: field
into where that function reads the original From: header from,
or make a small hack in that js function to use the correct To value,
where I put it in the first place.
--
Morten Nilsen, aka Dr. P
4th Age webmaster & designer - www.4th-age.com
Webprogrammer for hire
:wq