imap_ping |
Connects to the IMAP server, authenticates and reports connection details (server greeting, capabilities, message count of the default mailbox) |
imap_list_mailboxes |
Lists all mailboxes/folders of the account with their flags and delimiter |
imap_list_messages |
Lists messages of a mailbox (envelope: from/subject/date, flags, size). Select by uids, date range (since/before, internal date) or the newest count messages |
imap_read |
Fetches one message by uid: headers, plain text and HTML body (capped at maxFetchBytes) and attachment metadata. Set attachments=true to also get base64 content (capped at maxAttachmentBytes). Does not mark the message as seen unless markSeen=true |
imap_search |
Searches messages in a mailbox and returns matching uids (newest last, capped at listLimit). Criteria: from, to, subject, text, since/before (internal date), unseen/seen, flagged/unflagged, answered/unanswered |
imap_set_flags |
Adds, removes or sets flags on messages. Flag names: seen, flagged, answered, deleted, draft (case-insensitive; raw IMAP flags like \Seen are passed through) |
imap_move |
Moves messages to another mailbox |
imap_delete |
Marks messages as \Deleted and expunges them (permanently removes them from the mailbox) |