diff options
author | 2015-11-04 10:27:51 +0100 | |
---|---|---|
committer | 2015-11-04 10:27:51 +0100 | |
commit | 6a4a30034edc7d7b3f0a824e9b38f43d4b9910df (patch) | |
tree | 24b1fa27ba31a06c95817fbd22f0123f6452b6e9 /src/core/imap | |
parent | e3a1b98d0ed520683f4e13a734d4a397ab761f5f (diff) |
adds support to send custom IMAP command
Diffstat (limited to 'src/core/imap')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 10 | ||||
-rwxr-xr-x | src/core/imap/MCIMAPSession.h | 1 |
2 files changed, 11 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; diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index da46e0a7..0447e372 100755 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -107,6 +107,7 @@ namespace mailcore { IndexSet * numbers, IMAPProgressCallback * progressCallback, Array * extraHeaders, ErrorCode * pError); + virtual void sendCustomCommand(String * command); virtual Data * fetchMessageByUID(String * folder, uint32_t uid, IMAPProgressCallback * progressCallback, ErrorCode * pError); |