Do either of these problems persist in the imap-2004b release candidate: ftp://ftp.cac.washington.edu/mail/imap-2004b.RC.tar.Z
If they do, I will investigate further. If imap-2004b fixes it, then the answer is "upgrade to imap-2004b, it'll be releaed in final form soon".
-- Mark --
http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.