mailbox-preview command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mailbox-preview: command not found
or when using sudo you get the following error message
sudo: mailbox-preview: command not found
Solutions to mailbox-preview: command not found
How To Fix mailbox-preview: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mailbox-preview is provided by xlbiff package.
xlbiff is:
Xlbiff presents enough information to tell you: Is this new mail worth reading right now? And it stops distracting you once you decide.
Xlbiff waits in the background, monitoring your mailbox file or IMAP server (or running your custom check-mail script). When a new message arrives, it invokes the MH scan(1) command (or your custom mail-scanning script) and pops up a window with the output (typically the From and Subject line of each new message). If more mail arrives, xlbiff scans again and resizes its preview window accordingly.
Clicking the left mouse button anywhere in the window causes it to vanish. It will also vanish if the mailbox becomes empty. Xlbiff stays out of your way when there is no new mail and pops up only when something requests your attention.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xlbiff
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xlbiff.
sudo apt -y install xlbiff
Or if you have aptitude installed you can use the following command.
sudo aptitude install xlbiff
Summary
In this tutorial we learn how to fix mailbox-preview command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.