Open Bug 1513824 Opened 6 years ago Updated 3 years ago

OpenComposeWindowWithParams doesn't work with type ForwardInline

Categories

(MailNews Core :: Composition, defect)

defect

Tracking

(Not tracked)

People

(Reporter: darktrojan, Unassigned)

References

Details

I've been trying to make the code work: > let params = Cc["@mozilla.org/messengercompose/composeparams;1"].createInstance(Ci.nsIMsgComposeParams); > let composeFields = Cc["@mozilla.org/messengercompose/composefields;1"].createInstance(Ci.nsIMsgCompFields); > let msgHdr = gFolderDisplay.selectedMessage; > > params.origMsgHdr = msgHdr; > params.originalMsgURI = msgHdr.folder.getUriForMsg(msgHdr); > params.type = Ci.nsIMsgCompType.ForwardInline; > params.composeFields = composeFields; > MailServices.compose.OpenComposeWindowWithParams(null, params); But I get no forwarded message in the body of the email. The reply types work, and ForwardAsAttachment works. Also ForwardInline works with other methods to open the compose window.
Flags: needinfo?(jorgk)
(In reply to Geoff Lankow (:darktrojan) from comment #0) > Also ForwardInline works with other methods to open the compose window. Umm, so what works? Sorry, I have no special insight here, I'd have to debug it just as much as you'd have to debug it (although I started my career here as a compose peer ;-)).
Flags: needinfo?(jorgk)
This isn't a good sign: > /* Actually, the only way to implement forward inline is to simulate a template message. > Maybe one day when we will have more time we can change that > */
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.