#imap #backup #command-line-tool #backup-utility #cli

app imbak

A command line tool for backing up IMAP mailboxes

2 releases

0.1.1 Jul 8, 2023
0.1.0 Jul 8, 2023

#111 in Email

30 downloads per month

MIT license

71KB
269 lines

IMBak

A command line tool for backing up IMAP mailboxes written in Rust

Usage

On running the command you will be prompted to input a username (email) and password. In non-interactive environments you can set the IMAP_USERNAME and IMAP_PASSWORD environment variables.

Example 1

Download all emails from the default mailbox (INBOX) to the current working directory using the default batch size (5).

imbak backup \
  --domain imap.example.com \
  --port 993 \
  --from 0 \
  --count 100

Example 2

All options.

imbak backup \
  --domain imap.example.com \
  --port 993 \
  --mailbox INBOX \
  --batch-size 5 \
  --output-directory . \
  --from 0 \
  --count 100

Dependencies

~6–17MB
~230K SLoC