Zmmailbox command

The zmmailbox command is a powerful tool used to manage and manipulate mailbox data in Zimbra, a popular open-source email server software. Here are some common uses and options for the zmmailbox command:

Basic Syntax:

zmmailbox [options] [mailbox|folder|message]

Options:

Common Operations:

  1. Create a new mailbox:

    zmmailbox -a user1 -p password createMailbox user1

    This creates a new mailbox for the user user1.

  2. Create a new folder:

    zmmailbox -a user1 -p password createFolder user1/Inbox

    This creates a new folder named Inbox in the mailbox of user user1.

  3. Move a message:

    zmmailbox -a user1 -p password moveMessage user1/Inbox/12345 user1/Inbox/Archive

    This moves the message with ID 12345 from the Inbox folder to the Archive folder in the mailbox of user user1.

  4. Delete a message:

    zmmailbox -a user1 -p password deleteMessage user1/Inbox/12345

    This deletes the message with ID 12345 from the Inbox folder in the mailbox of user user1.

  5. Search for messages:

    zmmailbox -a user1 -p password search -f "subject:hello"

    This searches for messages with the subject hello in the mailbox of user user1.

  6. Export messages:

    zmmailbox -a user1 -p password export -f "subject:hello" -o /path/to/export/file

    This exports messages with the subject hello from the mailbox of user user1 to a file at the specified path.

Additional Options:

These are just a few examples of the many options and operations available with the zmmailbox command. For more information, refer to the Zimbra documentation or the zmmailbox command help output.