Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install with snapd
Don't have snapd? Get set up for snaps.
OfflineIMAP is software that downloads your email mailbox(es) as local
Maildirs. OfflineIMAP will synchronize both sides via IMAP.