1.0.6 • Published 3 years ago

get-last-unread-message v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Get last unread message

Getting Started

Installation

npm i -D get-last-unread-message

Example Usage

import {getMessages$} from "./get-last-unread-message";

function getMessage(email:string,password:string) {
    return new Promise((resolve) => {
        getMessages$(0, email, password).subscribe((data) => {
            resolve(data)
        });
    });
}
const email = 'email@gmail.com';
const password = 'password';
getMessage(email,password).then((data: any) => {
    console.log(data)
});

Description

The module provides an opportunity to get the last unread letter and display (save) its content. The module is based on the rxjs and imap libraries. Please note that in the password field is Google Application Password (the method of obtaining it can be found Here)