aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-07-16 20:04:56 +0000
committerVincent Richard <[email protected]>2013-07-16 20:04:56 +0000
commitc14be7ec9c7356873253354db928debf81d4f06d (patch)
tree027617a526d42b676b3284332f830c0118098e01
parentMisc fixes in documentation. (diff)
downloadvmime-c14be7ec9c7356873253354db928debf81d4f06d.tar.gz
vmime-c14be7ec9c7356873253354db928debf81d4f06d.zip
Dispatch NOOP commands on open folders only.
-rw-r--r--src/net/imap/IMAPStore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/imap/IMAPStore.cpp b/src/net/imap/IMAPStore.cpp
index e8778f90..4508f0e6 100644
--- a/src/net/imap/IMAPStore.cpp
+++ b/src/net/imap/IMAPStore.cpp
@@ -198,7 +198,8 @@ void IMAPStore::noop()
for (std::list <IMAPFolder*>::iterator it = m_folders.begin() ;
it != m_folders.end() ; ++it)
{
- (*it)->noop();
+ if ((*it)->isOpen())
+ (*it)->noop();
}
}