Open
Bug 915134
Opened 12 years ago
Updated 3 years ago
OtherRandomHeaders appearing in to: field when using MailServices.compose.OpenComposeWindowWithParams
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: maxjmaass, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
Steps to reproduce:
Trying to set some mail headers before opening a new message window.
Code:
let fields = Components.classes["@mozilla.org/messengercompose/composefields;1"]
.createInstance(Components.interfaces.nsIMsgCompFields);
let params = Components.classes["@mozilla.org/messengercompose/composeparams;1"]
.createInstance(Components.interfaces.nsIMsgComposeParams);
[...]
fields.otherRandomHeaders += "a-b: "+ "test" +"\r\n"; // was something different, changed for testing
params.type = Components.interfaces.nsIMsgCompType.New;
params.format = Components.interfaces.nsIMsgCompFormat.PlainText;
params.composeFields = fields;
// Spawn message window
MailServices.compose.OpenComposeWindowWithParams(null, params);
Actual results:
The Mail should have been opened with the "a-b"-Header set to "test" (was: "x-enigmail-draft-status": Components.interfaces.nsIEnigmail.SEND_ENCRYPTED, but did not work with that either).
Expected results:
In the "to"-Field, another entry appeared with the content "a-b: test", the header was not set.
According to the Enigmail-Devs, this is a bug in Thunderbird (See http://www.mail-archive.com/enigmail-users@enigmail.net/msg00539.html for the relevant mail from the ML). Please let me know if you need any more code from my implementation, I hope I got all the relevant stuff, but as the actual implementation contained a lot more stuff, I stripped a lot of lines.
Comment 1•5 years ago
|
||
So old, I wonder whether this is still valid.
Component: Untriaged → Message Compose Window
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•