Install this version:
emerge -a =dev-python/imaplib2-3.6
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/imaplib2-3.6
Or alternatively:
emerge --autounmask-write -a =dev-python/imaplib2-3.6
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="Threaded Python IMAP4 client"
HOMEPAGE="https://github.com/jazzband/imaplib2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"