Hello,
I noticed that passwords are output in plain text to the imap log file if imap_debug is set to true in main.inc.php. If I don't configure my web server correctly (e.g. don't set AllowOverride with Apache) then the log file may be downloaded from the logs directory, exposing the passwords. Obviously it pays to make sure that my web server is configured correctly, but since this is an easy mistake to make I think it would be worthwhile masking passwords in the imap debug log. I attach a patch that does just that.
Regards, Chris January