UW IMAP c-client library
C-client is a common API for accessing mailboxes. It is used internally by the popular PINE mail reader as well as the University of Washington's IMAP server.
To install cclient, paste this in macOS terminal after installing MacPorts
sudo port install cclient