imap-dl command not found

In this troubleshooting guide we learn how to fix imap-dl command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

imap-dl: command not found

or when using sudo you get the following error message

sudo: imap-dl: command not found

Solutions to imap-dl: command not found

How To Fix imap-dl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu imap-dl is provided by mailscripts package.

mailscripts is:

This package provides a collection of scripts for manipulating e-mail stored on Debian systems.

mdmv – safely move messages between maildirs

mbox2maildir – convert an mbox to a maildir using Python’s libraries

notmuch-slurp-debbug – add messages from a Debian bug to notmuch

notmuch-extract-patch – extract a git patch series from notmuch

mbox-extract-patch – extract a git patch series from an mbox

maildir-import-patch – import a git patch series into a maildir

notmuch-import-patch – import a git patch series into notmuch

email-print-mime-structure – tree view of a message’s MIME structure

email-extract-openpgp-certs – extract OpenPGP certificates from a message

imap-dl – download messages from an IMAP mailbox to a maildir

gmi2email – subscribe to gemlogs and read individual Gemini pages by e-mail

To fix this problem, we can install more using the command below.

sudo apt-get -y install mailscripts

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mailscripts.

sudo apt -y install mailscripts

Or if you have aptitude installed you can use the following command.

sudo aptitude install mailscripts

Summary

In this tutorial we learn how to fix imap-dl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.