Serious bug in email configuration
There's a serious bug in email configuration. In include/class.mailfetch.php line 58.
$this->mbox =@imap_open($this->serverstr,$this->username,Misc:($this->pass
word,SECRET_SALT));
The decryption is necessary because the passwords are store in encrypted form in the database.
However, when configuring the email and testing the provided configuration, the passwords are passed in non-encypted form. So email configuration fails.
I cannot find the place where configuration is tested. So My stupid solution is to remove teh Misc: function when configuring email servers and put it back after configuration. This seems to work ok for me.