How to detect user sending a draft

What is the correct way to detect whether a draft email that was generated through the Nylas API was sent by the user? For Gmail, I can detect whether the folder the draft email shows up in the’sent’ folder, but that doesn’t work for Outlook because Outlook doesn’t put it in a sent folder. It just stays in the inbox folder. So how do I know if it was sent by the user?

I seem to be unable to link the draft to the sent message. Like there doesn’t seem to be any ID that points from one to the other.

Hi @oskar - thanks for posting.

Shifting email from draft to sent folder is only available if its done by the Provider (so seems only Gmail in this scenario).

One way to check for drafts is using the has_drafts field for GET /threads call which includes draft_ids: Nylas v3 Email, Calendar, and Contacts API docs | Docs