Without this patch, threaded nnimap painfully starts a new imap connection with every refresh.