Install libnet-imap-client-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-imap-client-perl
Perl module to communicate with IMAP servers
Net::IMAP::Client provides methods to access an IMAP server. It aims to provide a simple and clean API, while employing a rigorous parser for IMAP responses in order to create Perl data structures from them. The code is simple, clean and extensible.