diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-08-29 08:47:00 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-08-29 08:47:07 -0700 |
commit | 025ffced74888e54fab87db8e7d7df727a0fbfd8 (patch) | |
tree | 75d41b7d38531fbcbe9ba4b3907ccf06d7234625 /src | |
parent | 2c62cff282bf5c10efa1e9309e5cc88303219e67 (diff) |
Apply timeout for pop3
Diffstat (limited to 'src')
-rw-r--r-- | src/core/pop/MCPOPSession.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/pop/MCPOPSession.cpp b/src/core/pop/MCPOPSession.cpp index 8415a081..ab8975a6 100644 --- a/src/core/pop/MCPOPSession.cpp +++ b/src/core/pop/MCPOPSession.cpp @@ -174,6 +174,7 @@ static void logger(mailpop3 * pop3, int log_type, const char * buffer, size_t si void POPSession::setup() { mPop = mailpop3_new(0, NULL); + mailpop3_set_timeout(mPop, timeout()); mailpop3_set_progress_callback(mPop, POPSession::body_progress, this); mailpop3_set_logger(mPop, logger, this); } |