IMAP Advanced icon

IMAP Advanced

Generic IMAP operations with threading and attachments

Message → Expunge

AI-generated

Summary

Expunge the mailbox, permanently removing messages marked for deletion

Inputs

  • mailbox — Mailbox to expunge; defaults to INBOX if omitted

Output shape

{ expunged: true }

Calls imapflow's messageDelete('1:*') after opening the selected mailbox. expunges all messages flagged with /Deleted/. Continuing on fail will output { error: '' } if the operation does not succeed.

Examples

Example 1: Expunge current INBOX

Leave mailbox at default INBOX; run the node. Output will be { expunged: true } if successful.

Links

Discussion