I noticed that the latest ebuild happens to be 2004c-r3. 2004g has been available for awhile, so I took the liberty to create a 2004g ebuild. Nothing fancy. ;-)
Created attachment 69446 [details] uw-imap-2004g.ebuild
Created attachment 69447 [details] uw-imap-2004c-amd64-so-fix.patch
Created attachment 69448 [details] files/uw-imap.pam
Created attachment 69449 [details] fils/uw-imap.pam-system-auth
Created attachment 69450 [details] files/uw-imap.xinetd
Created attachment 69451 [details] files/uw-ipop2.xinetd
Created attachment 69452 [details] files/uw-ipop3.xinetd
Created attachment 69453 [details] files/uw-ipop3s.xinetd
Created attachment 69454 [details, diff] files/uw-imap-2004c-amd64-so-fix.patch
In CVS due to bug #108206 Cheers, Ferdy