Skip to content
pimalayaPublic

About

CLI to synchronize mails, contacts and calendars

Topics

Resources

Contributing

Security policy

Stars

335 stars

Watchers

3 watching

Forks

Repository files navigation

Logo

📫 Neverest

CLI to synchronize mails, contacts and calendars

Matrix Mastodon Sponsor

$ neverest sync
[1/1] Syncing account personal
Resolved credentials
Opened carddav
Listed 1 collection(s) on carddav
Scanning carddav (0/1)
Scanning carddav (1/1)

Collection patches (1):
 - fetch collection book from carddav

Item patches (2):
 - fetch item ada in book from carddav
 - fetch item alan in book from carddav

Search index:
 - folded 2 change(s), 2 new body(ies), current

Account personal synchronized: 3 hunks

Table of contents

Features

  • Mail, contacts and calendars over IMAP, Gmail, Microsoft Graph, CardDAV, CalDAV and the Google APIs
  • One local pimdir store the offline frontends read, every account and kind in it
  • Two-way, one-way or migration syncs, picked by an account's sources and targets
  • Three-way merge of cards and events, a real conflict parked for a decision, never lost
  • Retention: a removed item keeps its body in the store until a purge you schedule
  • Queued writes of himalaya, cardamum and calendula applied offline, sends included
  • Search index of the store kept current for the frontends to query
  • JSON output of every result and of a sync's progress, described by neverest json-schema

Installation

Debian, Ubuntu

Neverest is not in the official repositories yet, but the signed APT repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions. Add the repository once:

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://pkg.pimalaya.org/pimalaya.asc | sudo tee /etc/apt/keyrings/pimalaya.asc >/dev/null
sudo tee /etc/apt/sources.list.d/pimalaya.sources >/dev/null <<EOF
Types: deb
URIs: https://pkg.pimalaya.org/apt
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/pimalaya.asc
EOF
sudo apt update

Then install Neverest:

sudo apt install neverest
Fedora, RHEL, Rocky Linux, AlmaLinux

Neverest is not in the official repositories yet, but the signed DNF repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions:

sudo curl -fsSL -o /etc/yum.repos.d/pimalaya.repo https://pkg.pimalaya.org/pimalaya.repo
sudo dnf install neverest
Homebrew (macOS, Linux)

Neverest is not in homebrew-core yet, but the pimalaya/tap formula installs the latest release with its man pages and shell completions:

brew install pimalaya/tap/neverest
Pre-built binary

For other systems, Neverest can be installed with the installer:

As root:

curl -sSL https://raw.githubusercontent.com/pimalaya/neverest/master/install.sh | sudo sh

As a regular user:

curl -sSL https://raw.githubusercontent.com/pimalaya/neverest/master/install.sh | PREFIX=~/.local sh

These commands install the latest release, built with the default cargo features. For a build of master, check out the releases GitHub workflow and look for the Artifacts section.

Cargo
cargo install --locked neverest

For a build of master:

cargo install --locked --git https://github.com/pimalaya/neverest.git
Nix
nix profile install github:pimalaya/neverest
Sources

Requires Rust 1.89 or later:

git clone https://github.com/pimalaya/neverest
cd neverest
cargo build --release --locked

The binary lands at target/release/neverest.

Configuration

A TOML configuration is loaded from every existing path among the following, each one deep-merged on top of the ones before:

  • $XDG_CONFIG_HOME/neverest/config.toml
  • $HOME/.config/neverest/config.toml
  • $HOME/.neverestrc

Override the path with -c <PATH>, repeated to merge several files.

Tip

See config.sample.toml for a complete configuration of one example account with commented fields; rename the account and uncomment what you need.

Usage

Step 1: once your first account is configured, check that every endpoint answers:

neverest account check

Step 2: initialize the account in the store:

neverest init

Step 3: preview the first sync, which writes nothing:

neverest sync --dry-run

Step 4: if the preview looks right, run it:

neverest sync

Every command covers every account unless -a names some, and its --help details its flags, exit codes and JSON output. More use cases:

# Sync the inbox of the work account only
neverest sync -a work -m inbox

# Apply what himalaya, cardamum or calendula queued, offline
neverest sync --queue-only

# Build the store's search index whole, for a large first sync
neverest sync --index-only

# Settle what both sides changed differently, through the configured merger
neverest conflict list
neverest conflict resolve <id> -a work --interactive

Alternatives

  • mbsync: syncs IMAP mailboxes with a Maildir, mail only
  • OfflineIMAP: syncs IMAP mailboxes with a Maildir, in Python
  • vdirsyncer: syncs CardDAV and CalDAV collections with a vdir, contacts and calendars only
  • pimsync: the Rust successor of vdirsyncer, contacts and calendars only

License

This project is licensed under either of:

Social

Sponsoring

nlnet

Special thanks to the NLnet foundation and the European Commission that have been financially supporting the project for years:

This program is part of Pimalaya, free software funded entirely by grants and donations. If you find it useful, consider sponsoring its development:

GitHub Ko-fi Buy Me a Coffee Liberapay thanks.dev PayPal

About

CLI to synchronize mails, contacts and calendars

Topics

Resources

Contributing

Security policy

Stars

335 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages