aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.cpp
diff options
context:
space:
mode:
authorGravatar libec <libor.huspenina@gmail.com>2015-11-06 08:45:37 +0100
committerGravatar libec <libor.huspenina@gmail.com>2015-11-06 08:45:37 +0100
commitd0408d75fd7ead8f36acc60155d49e236850f7ce (patch)
treefc91730f8860bfcb11cbbaae0f0083ce32ac0382 /src/core/imap/MCIMAPSession.cpp
parentb331a5bfe5e26f68099ecb5e02041b0260da24eb (diff)
Adds imap response string to custom command operation
Diffstat (limited to 'src/core/imap/MCIMAPSession.cpp')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp
index 656168fa..69d80cc7 100755
--- a/src/core/imap/MCIMAPSession.cpp
+++ b/src/core/imap/MCIMAPSession.cpp
@@ -996,13 +996,11 @@ static uint64_t get_mod_sequence_value(mailimap * session)
return mod_sequence_value;
}
-void IMAPSession::sendCustomCommand(String * command)
+String * IMAPSession::sendCustomCommand(String * command)
{
- int r;
-
- MCLog("custom command");
-
mailimap_custom_command(mImap, MCUTF8(command));
+ String *response = String::stringWithUTF8Characters(mImap->imap_response);
+ return response;
}
void IMAPSession::select(String * folder, ErrorCode * pError)