In order to run imap-backup from source, you'll need Ruby and Git.
Next, clone the repository
git clone https://github.com/joeyates/imap-backup.git
cd imap-backup
If you want to use a branch other than main
git checkout --track -b BRANCH origin/BRANCH
Install dependencies
gem install bundler --version=2.3.22
bundle install
Check that it runs
bin/imap-backup help
Install dependencies
cd imap-backup
gem install bundler --version=2.3.22
bundle install
Check that it runs
bin/imap-backup help