IMAP: fixed folder configuration.

* Store the settings, don't archive the view; removed leftovers of the
  old settings API.
IMAP: close folder config window on error, show message.