diff --git a/src/vmime/net/imap/IMAPMessage.cpp b/src/vmime/net/imap/IMAPMessage.cpp index 7f155469..a6ec7140 100644 --- a/src/vmime/net/imap/IMAPMessage.cpp +++ b/src/vmime/net/imap/IMAPMessage.cpp @@ -243,7 +243,7 @@ void IMAPMessage::extract( shared_ptr folder = m_folder.lock(); if (!folder) { - throw exceptions::illegal_state("Folder not open"); + throw exceptions::folder_not_found(); } extractImpl(