Delete a message

$ himalaya message delete [OPTIONS] <ID>...

Mark as deleted a message from a folder.

This command does not really delete the message: if the given folder points to the trash folder, it adds the “deleted” flag to its envelope, otherwise it moves it to the trash folder. Only the expunge folder command truly deletes messages.

Options

-f|--folder

The name of the folder.

--disable-cache

Disable any sort of cache.

The action depends on commands it apply on. For example, when listing envelopes using the IMAP backend, this flag will ensure that envelopes are fetched from the IMAP server rather than the synchronized local Maildir.

-a|--account

Override the default account.

An account name corresponds to an entry in the table at the root level of your TOML configuration file.

Settings

message.delete.style

Override the message deletion style.

Message deletion can be performed either by moving messages to the Trash folder or by adding the Deleted flag to their respective envelopes.

# valid style: folder, flag
message.delete.style = "folder"