In my legacy addon this line works
I found somewhere that this line means that I can use Recipients2CompFields.
var win = Services.wm.getMostRecentWindow(“msgcompose”);
But I still have the problem that gMsgCompose is undefined despite it being global in MsgComposeCommands.js
how can I access it so that I can expand the list of recipients?