Install imapfilter by entering the following commands in the terminal:
sudo apt update sudo apt install imapfilter
Description:
filter mail in your IMAP account
Imapfilter is a client application that allows you to filter mail in your imap mail account. When used in conjunction with mutt, as your precommand, it allows you to have your mail sorted into imap folders.
Homepage: https://github.com/lefcha/imapfilter
Version: 1:2.6.11-1build1
Section: universe/mail