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).
STAT
DELE
Connection and credential options.
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' }}); Copy
import { retrieveAll } from 'edgeport/pop3';const messages = await retrieveAll({ hostname: 'pop.example.com', auth: { username: 'me', password: 'secret' }});
Connects, retrieves every message in the mailbox, then quits.
A one-shot convenience over connect: it reads the
STATcount, retrieves each message in order, and closes the connection before returning. Messages are left on the server (noDELE).