-rw-r--r-- | noncore/net/mail/imapwrapper.cpp | 7 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp index 7b75ffa..3941cec 100644 --- a/noncore/net/mail/imapwrapper.cpp +++ b/noncore/net/mail/imapwrapper.cpp @@ -332,6 +332,6 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail) return body; } - /* select mailbox READONLY for operations */ - err = mailimap_examine( m_imap, (char*)mb); + + err = mailimap_select( m_imap, (char*)mb); if ( err != MAILIMAP_NO_ERROR ) { qDebug("error selecting mailbox: %s",m_imap->imap_response); @@ -460,6 +460,5 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo if (!internal_call) { mb = mail.getMbox().latin1(); - /* select mailbox READONLY for operations */ - err = mailimap_examine( m_imap, (char*)mb); + err = mailimap_select( m_imap, (char*)mb); if ( err != MAILIMAP_NO_ERROR ) { qDebug("error selecting mailbox: %s",m_imap->imap_response); diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index 7b75ffa..3941cec 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp @@ -332,6 +332,6 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail) return body; } - /* select mailbox READONLY for operations */ - err = mailimap_examine( m_imap, (char*)mb); + + err = mailimap_select( m_imap, (char*)mb); if ( err != MAILIMAP_NO_ERROR ) { qDebug("error selecting mailbox: %s",m_imap->imap_response); @@ -460,6 +460,5 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo if (!internal_call) { mb = mail.getMbox().latin1(); - /* select mailbox READONLY for operations */ - err = mailimap_examine( m_imap, (char*)mb); + err = mailimap_select( m_imap, (char*)mb); if ( err != MAILIMAP_NO_ERROR ) { qDebug("error selecting mailbox: %s",m_imap->imap_response); |