From 865b023c57f657c8eff26baa670fc76bbcd548e4 Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 13 Dec 2003 12:49:27 +0000 Subject: try to solve the problems with slow imap-server --- diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp index 11bf3b8..48e476b 100644 --- a/noncore/net/mail/imapwrapper.cpp +++ b/noncore/net/mail/imapwrapper.cpp @@ -29,7 +29,8 @@ void IMAPwrapper::login() /* we are connected this moment */ /* TODO: setup a timer holding the line or if connection closed - delete the value */ - if (m_imap) { + if (m_imap) { + mailstream_flush(m_imap->imap_stream); return; } server = account->getServer().latin1(); diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index 11bf3b8..48e476b 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp @@ -29,7 +29,8 @@ void IMAPwrapper::login() /* we are connected this moment */ /* TODO: setup a timer holding the line or if connection closed - delete the value */ - if (m_imap) { + if (m_imap) { + mailstream_flush(m_imap->imap_stream); return; } server = account->getServer().latin1(); -- cgit v0.9.0.2