diff options
author | Vincent Richard <[email protected]> | 2013-07-16 20:04:56 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-07-16 20:04:56 +0000 |
commit | c14be7ec9c7356873253354db928debf81d4f06d (patch) | |
tree | 027617a526d42b676b3284332f830c0118098e01 | |
parent | Misc fixes in documentation. (diff) | |
download | vmime-c14be7ec9c7356873253354db928debf81d4f06d.tar.gz vmime-c14be7ec9c7356873253354db928debf81d4f06d.zip |
Dispatch NOOP commands on open folders only.
-rw-r--r-- | src/net/imap/IMAPStore.cpp | 3 |
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(); } } |