Synchronize an account for offline usage

$ himalaya account sync

Synchronizes current account’s folders and emails locally, for an offline usage of the CLI.

Before using this feature, be sure that you enabled it (either by using the wizard or by manually editing the configuration file):

[accounts.example]
sync.enable = true

See the advanced version for more details.

Examples

Dry run

Run the synchronization without applying any changes. Instead, a report will be printed to stdout containing all the changes the synchronization plans to do.

$ himalaya account sync --dry-run
Envelopes patch:
 - Updating flags seen of right cached envelope 14031 (INBOX)
 - Copying right envelope 14047 to left folder INBOX
 - Updating flags seen of left cached envelope 1704194588.#7M923748111P3344451V65024I15206527.soywod,S=7401 (INBOX)
 - Setting flags seen of right envelope 14030 (INBOX)
 - Setting flags seen of right envelope 14031 (INBOX)
 - Updating flags seen of right cached envelope 14030 (INBOX)
 - Updating flags seen of left cached envelope 1704194588.#9M963882549P3344451V65024I15206530.soywod,S=6999 (INBOX)

Estimated patch length for account example to be synchronized: 7

Synchronize only one folder

$ himalaya account sync --include-folder INBOX

Exclude a folder from the sync

$ himalaya account sync --exclude-folder All