From c1f74a9f39d81058646cd57721e50ed0d79eae5f Mon Sep 17 00:00:00 2001 From: Carsten Burghardt Date: Tue, 22 Feb 2005 22:26:20 +0000 Subject: [PATCH] Do not show an error message if a write-only folder is selected. This should be ok as noContent folders are detected beforehand and therefore this error can only occur if the folder is restricted with acls. I do not want to check this before the folder is selected as this would take more time so we do a "lazy init" and just wait for the error. BUGS:91428 svn path=/trunk/kdepim/; revision=392448 --- kmfolderimap.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kmfolderimap.cpp b/kmfolderimap.cpp index f8b60c88d..39a151d07 100644 --- a/kmfolderimap.cpp +++ b/kmfolderimap.cpp @@ -820,7 +820,12 @@ void KMFolderImap::slotCheckValidityResult(KIO::Job * job) ImapAccountBase::JobIterator it = mAccount->findJob(job); if ( it == mAccount->jobsEnd() ) return; if (job->error()) { - mAccount->handleJobError( job, i18n("Error while querying the server status.") ); + if ( job->error() != KIO::ERR_ACCESS_DENIED ) { + // we suppress access denied messages because they are normally a result of + // explicitely set ACLs. Do not save this information (e.g. setNoContent) so that + // we notice when this changes + mAccount->handleJobError( job, i18n("Error while querying the server status.") ); + } mContentState = imapNoInformation; emit folderComplete(this, FALSE); } else {