GroupWise IMAP icon

GroupWise IMAP

IMAP operations for GroupWise with robust connection handling

Get Emails

AI-generated

Summary

Fetch emails from a specified mailbox/folder in the GroupWise IMAP server, returning details including UID, sequence number, flags, and envelope for each email, up to a user-defined limit.

Inputs

  • Mailbox / Folder — The name of the mailbox folder to fetch emails from. Defaults to 'INBOX'.
  • Limit — Maximum number of emails to retrieve, must be at least 1. Defaults to 50.
  • Options — Optional advanced settings for the IMAP connection such as connection timeouts, debug logging, authentication method, certificate error handling, retry behavior, and TLS options.

Output shape

a list of email objects, each containing the email's UID, sequence number, flags (array), and envelope (metadata)

The emails are fetched in ascending order from the mailbox starting at sequence number 1. The operation opens the mailbox in read-only mode. Returned data does not include full email body content, only envelope and flags. Pagination is limited by 'Limit' parameter. Errors during connection can be retried as per 'Options'. If operation ultimately fails, an error is thrown with details.

Links

Discussion