justinkalland/protonmail-api

Add Unread to Email

Closed this issue · 1 comments

I found it very useful to have the unread field from the email.
This is already brought to us by the API:

function isEmailUnread(email) {
    return email._data.Unread;
}

Better late than never!

I added email.isRead, email.read(), email.unread()