LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mbsync

synchronizes IMAP mailboxes with local Maildir folders

TLDR

Sync all channels
$ mbsync -a
copy
Sync specific channel
$ mbsync [channel]
copy
Sync specific group
$ mbsync [group]
copy
Verbose sync
$ mbsync -V [channel]
copy
Dry run
$ mbsync -n [channel]
copy
Create missing mailboxes
$ mbsync -C [channel]
copy

SYNOPSIS

mbsync [options] channel|group...

DESCRIPTION

mbsync (part of isync) synchronizes IMAP mailboxes with local Maildir folders. It provides bidirectional sync with fine-grained control over what gets synchronized, supporting per-mailbox state tracking for reliable resumable transfers.mbsync is commonly used with mu, notmuch, or other local mail tools for offline email access.

PARAMETERS

-a, --all

Sync all channels.
-l, --list
List remote mailboxes.
-C, --create
Create missing mailboxes.
-n, --dry-run
Show what would happen.
-V, --verbose
Verbose output.
-D, --debug
Debug output.
-c file
Config file.

CONFIGURATION

$ # ~/.mbsyncrc
IMAPAccount gmail
Host imap.gmail.com
User user@gmail.com
PassCmd "gpg -q --decrypt ~/.gmail-pass.gpg"
SSLType IMAPS

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
Path ~/mail/gmail/
Inbox ~/mail/gmail/Inbox

Channel gmail
Far :gmail-remote:
Near :gmail-local:
Patterns *
Create Both
copy

INSTALL

sudo apt install isync
copy
sudo dnf install isync
copy
sudo pacman -S isync
copy
sudo apk add isync
copy
sudo zypper install isync
copy
brew install isync
copy
nix profile install nixpkgs#isync
copy

CAVEATS

Config file required. Deleting on one side propagates. IMAP quota limits apply. Initial sync can be slow.

HISTORY

mbsync was developed by Oswald Buddenhagen as part of isync, a free IMAP4 sync implementation, providing reliable bidirectional synchronization.

SEE ALSO

offlineimap(1), mu(1), notmuch(1), mutt(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid