I tried to build an extension for thunderbird. For this extension I need to get all email within a particular date. For that reason I called following
let messageList = await browser.messages.query({ fromDate: fromDate, toDate: toDate });
That code works perfectly but it does not return any email from trash. For my extension I need emails from trash too.even I tried to get email from trash folder by specifying trash folder in query list as below:
Even that code does not return result but if I run browser.messages.list It returns result perfectly. What am I doing wrong here? is there any solution for that?
I tried to build an extension for thunderbird. For this extension I need to get all email within a particular date. For that reason I called following
let messageList = await browser.messages.query({ fromDate: fromDate, toDate: toDate });
That code works perfectly but it does not return any email from trash. For my extension I need emails from trash too.even I tried to get email from trash folder by specifying trash folder in query list as below:
Even that code does not return result but if I run browser.messages.list It returns result perfectly. What am I doing wrong here? is there any solution for that?