After a bit more investigation we apparently have sqwebmail in portage in mail-mta/courier. Initial posting here: http://marc.theaimsgroup.com/?l=bugtraq&m=108786212220140&w=2
sqwebmail is fixed on version 4.0.5 (June 10) We have courier 0.45.6 (June 10) and 0.45.6.20040618 as ~ in the tree. I suppose they contain the fix, in which case we would just need to stable-ize and GLSA. Maintainer: please confirm.
Confirmed 0.45.6.20040618 contains sqwebmail 4.0.5, so it's fixed. alpha,ppc,x86,sparc : please test and mark that version stable.
Sparc stable, sorry for the delay.
Package stable-d by maintainer. Ready for a GLSA
GLSA 200408-02