Diffstat (limited to 'noncore/net/mail/libmailwrapper') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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 | } |