imap-box-names
This module takes an instance of the imap module, and an error-first callback, generating all valid IMAP box (also known as "folder") names.
general use
const Imap = const boxNames = const imap = user: 'me@gmail.com' password: 'abc123' host: 'imap.gmail.com' port: 993 tls: true // must wait until imap is readyimap
imap
The instance of imap
provided must be instantiated and
have already emitted the ready
event.
error
The returned error is whatever error is given by the imap
module after imap.getBoxes()
is called.
names
(array)
The returned value is an array of formed IMAP box names. For example:
names = 'INBOX' 'INBOX.Sent' 'INBOX.Archived' 'INBOX.Trash'
license
Published and released under the VOL.