0.3.1 • Published 4 years ago

@cull/imap v0.3.1

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

imap for Cull

A minimal IMAP client interface exposing mailboxes, envelopes and messages.

Limitations

This library is neither feature complete nor Production Ready™.

It is intended for short-lived connections and is generally useful as an introduction to IMAP and for quickly retrieving mailboxes, envelopes and message data in most cases.

The following is not currently implemented:

Installation

npm install @cull/imap

Usage

import Client from '@cull/imap';

let c = new Client({
  host: 'mail.example.com',
  user: 'user@example.com',
  pass: 'password',
});

async () => {
  try {
    await c.connect();
    let mailboxes = await c.mailboxes();
    let envelopes = await c.envelopes('some/mailbox');
    let messages = await c.messages('inbox', '1:3');
    let headers = await c.headers('inbox');
  } catch (error) {
    console.error(error);
  } finally {
    await c.disconnect();
  }
}();

Alternatively, study the tests.

Development

makefile codifies directives for building, testing, linting and other development oriented tasks.

0.3.1

4 years ago

0.3.0

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago