aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/imap/IMAPMessage.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-07-17 10:46:50 +0000
committerVincent Richard <[email protected]>2013-07-17 10:46:50 +0000
commit9702cdaabac38bc2cb73061c4efa6451762a076e (patch)
tree47302b1a511d4b1b9a8e9e49bd3035cc70c91d69 /src/net/imap/IMAPMessage.cpp
parentDispatch NOOP commands on open folders only. (diff)
downloadvmime-9702cdaabac38bc2cb73061c4efa6451762a076e.tar.gz
vmime-9702cdaabac38bc2cb73061c4efa6451762a076e.zip
Code cleanup. Store error log in parsed response to avoid accessing parser internal data.
Diffstat (limited to 'src/net/imap/IMAPMessage.cpp')
-rw-r--r--src/net/imap/IMAPMessage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/imap/IMAPMessage.cpp b/src/net/imap/IMAPMessage.cpp
index 76b6a454..2b7dba14 100644
--- a/src/net/imap/IMAPMessage.cpp
+++ b/src/net/imap/IMAPMessage.cpp
@@ -354,7 +354,7 @@ void IMAPMessage::extractImpl(ref <const messagePart> p, utility::outputStream&
resp_cond_state()->status() != IMAPParser::resp_cond_state::OK)
{
throw exceptions::command_error("FETCH",
- folder.constCast <IMAPFolder>()->m_connection->getParser()->lastLine(), "bad response");
+ resp->getErrorLog(), "bad response");
}
@@ -577,7 +577,7 @@ void IMAPMessage::setFlags(const int flags, const int mode)
resp_cond_state()->status() != IMAPParser::resp_cond_state::OK)
{
throw exceptions::command_error("STORE",
- folder->m_connection->getParser()->lastLine(), "bad response");
+ resp->getErrorLog(), "bad response");
}
// Update the local flags for this message