list_mailboxes Method
Lists all mailboxes matching all criteria in the Mailbox property.
Syntax
def list_mailboxes() -> None: ...
Remarks
This method lists all of the mailboxes matching the criteria in the mailbox property. Matching mailboxes are returned through the on_mailbox_list event.
Example (List All Mailboxes)
IMAPControl.Mailbox = "*" IMAPControl.ListMailboxes()
Example (List All Mailboxes Inside INBOX)
IMAPControl.Mailbox = "INBOX.*" IMAPControl.ListMailboxes()