summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/imapwrapper.cpp7
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp7
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
@@ -333,4 +333,4 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail)
}
- /* select mailbox READONLY for operations */
- err = mailimap_examine( m_imap, (char*)mb);
+
+ err = mailimap_select( m_imap, (char*)mb);
if ( err != MAILIMAP_NO_ERROR ) {
@@ -461,4 +461,3 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo
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 ) {
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
@@ -333,4 +333,4 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail)
}
- /* select mailbox READONLY for operations */
- err = mailimap_examine( m_imap, (char*)mb);
+
+ err = mailimap_select( m_imap, (char*)mb);
if ( err != MAILIMAP_NO_ERROR ) {
@@ -461,4 +461,3 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo
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 ) {