I want to build a little extension for myself that allows me to copy a message to different folders in my mail account in Thunderbird. I tried to follow https://webextension-api.thunderbird.net/en/91/index.html
First I used console.log(messenger.accounts.list()) in my js file. This worked and I got a tree with my accounts and all the folders and subfolders. But when I want to use the messenger.messages.copy function (https://webextension-api.thunderbird.net/en/91/messages.html#functions) then I need to pass the messageIds and destination to the function. I think I know how to get the messageID, but I do not know how to reference the destination. I tried things like messenger.folders("[PATH]") and so on, but this was wrong. Can you please tell me how to get that destination in a format that the API accepts?
BR Martin