diff options
author | 2016-02-15 20:54:46 +0300 | |
---|---|---|
committer | 2016-02-15 20:54:46 +0300 | |
commit | 2691bc3035a7a8cb14e69191e7adad4e59fbe8a6 (patch) | |
tree | b66d3f919df240099d462928f8808add0a810ea5 /src/core | |
parent | 5c91ce1ff93adf119af67baf34ef19ab025de7f2 (diff) |
Added ability to customize the identity of IMAP client in the time of session initialization.
Diffstat (limited to 'src/core')
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 5 | ||||
-rwxr-xr-x | src/core/imap/MCIMAPSession.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 4e92e97f..5af8a7bf 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -3412,6 +3412,11 @@ IMAPIdentity * IMAPSession::clientIdentity() return mClientIdentity; } +void IMAPSession::setClientIdentity(IMAPIdentity * identity) +{ + MC_SAFE_REPLACE_COPY(IMAPIdentity, mClientIdentity, identity); +} + HashMap * IMAPSession::fetchNamespace(ErrorCode * pError) { HashMap * result; diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index 578350ac..6ce895f6 100755 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -65,7 +65,8 @@ namespace mailcore { virtual IMAPIdentity * serverIdentity(); virtual IMAPIdentity * clientIdentity(); - + virtual void setClientIdentity(IMAPIdentity * identity); + virtual void select(String * folder, ErrorCode * pError); virtual IMAPFolderStatus * folderStatus(String * folder, ErrorCode * pError); |