summaryrefslogtreecommitdiff
authoralwin <alwin>2003-12-25 20:10:26 (UTC)
committer alwin <alwin>2003-12-25 20:10:26 (UTC)
commitbde1302aed8a0e2506684eaae7c2d2d823de42c6 (patch) (unidiff)
tree24b16fc0f0c969df001615a00ac08a8bd4acd2df
parent67d7f0b0fc79377fba216e556785f6c630c437ad (diff)
downloadopie-bde1302aed8a0e2506684eaae7c2d2d823de42c6.zip
opie-bde1302aed8a0e2506684eaae7c2d2d823de42c6.tar.gz
opie-bde1302aed8a0e2506684eaae7c2d2d823de42c6.tar.bz2
try to resolve timeouts via NOOP statement in login
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/imapwrapper.cpp9
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp9
2 files changed, 14 insertions, 4 deletions
diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp
index 89ec7ab..ab20249 100644
--- a/noncore/net/mail/imapwrapper.cpp
+++ b/noncore/net/mail/imapwrapper.cpp
@@ -35,4 +35,9 @@ void IMAPwrapper::login()
35 if (m_imap) { 35 if (m_imap) {
36 mailstream_flush(m_imap->imap_stream); 36 err = mailimap_noop(m_imap);
37 return; 37 if (err!=MAILIMAP_NO_ERROR) {
38 logout();
39 } else {
40 mailstream_flush(m_imap->imap_stream);
41 return;
42 }
38 } 43 }
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
index 89ec7ab..ab20249 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
@@ -35,4 +35,9 @@ void IMAPwrapper::login()
35 if (m_imap) { 35 if (m_imap) {
36 mailstream_flush(m_imap->imap_stream); 36 err = mailimap_noop(m_imap);
37 return; 37 if (err!=MAILIMAP_NO_ERROR) {
38 logout();
39 } else {
40 mailstream_flush(m_imap->imap_stream);
41 return;
42 }
38 } 43 }