From 2e042dd65fa7d5042797abd9abf68382188b7da5 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 19 Jan 2014 17:39:49 +0100 Subject: [PATCH] Calling getAttributes() does not require the folder to be open. --- src/vmime/net/imap/IMAPFolder.cpp | 3 --- src/vmime/net/pop3/POP3Folder.cpp | 3 --- 2 files changed, 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())