aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.cpp
diff options
context:
space:
mode:
authorGravatar libec <libor.huspenina@gmail.com>2015-11-04 10:27:51 +0100
committerGravatar libec <libor.huspenina@gmail.com>2015-11-04 10:27:51 +0100
commit6a4a30034edc7d7b3f0a824e9b38f43d4b9910df (patch)
tree24b1fa27ba31a06c95817fbd22f0123f6452b6e9 /src/core/imap/MCIMAPSession.cpp
parente3a1b98d0ed520683f4e13a734d4a397ab761f5f (diff)
adds support to send custom IMAP command
Diffstat (limited to 'src/core/imap/MCIMAPSession.cpp')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp
index 45501b8c..6c8dd43e 100755
--- a/src/core/imap/MCIMAPSession.cpp
+++ b/src/core/imap/MCIMAPSession.cpp
@@ -996,6 +996,16 @@ static uint64_t get_mod_sequence_value(mailimap * session)
return mod_sequence_value;
}
+void IMAPSession::sendCustomCommand(String * command)
+{
+ int r;
+
+ MCLog("custom command");
+ MCAssert(mState == STATE_LOGGEDIN);
+
+ mailimap_custom_command(mImap, MCUTF8(command));
+}
+
void IMAPSession::select(String * folder, ErrorCode * pError)
{
int r;