aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-01-19 16:39:49 +0000
committerVincent Richard <[email protected]>2014-01-19 16:39:49 +0000
commit2e042dd65fa7d5042797abd9abf68382188b7da5 (patch)
tree94af95a6ad60775cbfed7e81c04d8ac444ac79c5
parentDo not flag existing messages as recent. (diff)
downloadvmime-2e042dd65fa7d5042797abd9abf68382188b7da5.tar.gz
vmime-2e042dd65fa7d5042797abd9abf68382188b7da5.zip
Calling getAttributes() does not require the folder to be open.
-rw-r--r--src/vmime/net/imap/IMAPFolder.cpp3
-rw-r--r--src/vmime/net/pop3/POP3Folder.cpp3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/vmime/net/imap/IMAPFolder.cpp b/src/vmime/net/imap/IMAPFolder.cpp
index 3af9225a..25b7d760 100644
--- a/src/vmime/net/imap/IMAPFolder.cpp
+++ b/src/vmime/net/imap/IMAPFolder.cpp
@@ -92,9 +92,6 @@ int IMAPFolder::getMode() const
const folderAttributes IMAPFolder::getAttributes()
{
- if (!isOpen())
- throw exceptions::illegal_state("Folder not open");
-
// Root folder
if (m_path.isEmpty())
{
diff --git a/src/vmime/net/pop3/POP3Folder.cpp b/src/vmime/net/pop3/POP3Folder.cpp
index 56aeae6e..354dad2a 100644
--- a/src/vmime/net/pop3/POP3Folder.cpp
+++ b/src/vmime/net/pop3/POP3Folder.cpp
@@ -83,9 +83,6 @@ int POP3Folder::getMode() const
const folderAttributes POP3Folder::getAttributes()
{
- if (!isOpen())
- throw exceptions::illegal_state("Folder not open");
-
folderAttributes attribs;
if (m_path.isEmpty())