edgeport - v1.0.3
    Preparing search index...

    Function retrieveAll

    • Connects, retrieves every message in the mailbox, then quits.

      A one-shot convenience over connect: it reads the STAT count, retrieves each message in order, and closes the connection before returning. Messages are left on the server (no DELE).

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>[]>

      The raw bytes of every message, in mailbox order.

      If the server rejects the credentials.

      If the connection cannot be established.

      If the server speaks the protocol incorrectly.

      1.0.0

      import { retrieveAll } from 'edgeport/pop3';

      const messages = await retrieveAll({
      hostname: 'pop.example.com',
      auth: { username: 'me', password: 'secret' }
      });