summaryrefslogtreecommitdiff
authoralwin <alwin>2003-12-13 02:36:57 (UTC)
committer alwin <alwin>2003-12-13 02:36:57 (UTC)
commita170120c655169de904ff282e23461ba4eef2b47 (patch) (side-by-side diff)
tree0c7f7612fbe9610cf4bc23a5b9aba5f5591d7caf
parentf689ef512cfc0a56fead4839a6b2e24a6ee282e0 (diff)
downloadopie-a170120c655169de904ff282e23461ba4eef2b47.zip
opie-a170120c655169de904ff282e23461ba4eef2b47.tar.gz
opie-a170120c655169de904ff282e23461ba4eef2b47.tar.bz2
mails will marked as read now
Diffstat (more/less context) (show 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
@@ -326,18 +326,18 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail)
mailimap_body*body_desc;
mb = mail.getMbox().latin1();
login();
if (!m_imap) {
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);
return body;
}
result = clist_new();
/* the range has to start at 1!!! not with 0!!!! */
set = mailimap_set_new_interval( mail.getNumber(),mail.getNumber() );
@@ -454,18 +454,17 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo
clistcell*current,*cur;
login();
if (!m_imap) {
return body;
}
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);
return body;
}
}
set = mailimap_set_new_single(mail.getNumber());
clist*id_list=clist_new();
for (unsigned j=0; j < path.count();++j) {
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
@@ -326,18 +326,18 @@ RecBody IMAPwrapper::fetchBody(const RecMail&mail)
mailimap_body*body_desc;
mb = mail.getMbox().latin1();
login();
if (!m_imap) {
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);
return body;
}
result = clist_new();
/* the range has to start at 1!!! not with 0!!!! */
set = mailimap_set_new_interval( mail.getNumber(),mail.getNumber() );
@@ -454,18 +454,17 @@ QString IMAPwrapper::fetchPart(const RecMail&mail,const QValueList<int>&path,boo
clistcell*current,*cur;
login();
if (!m_imap) {
return body;
}
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);
return body;
}
}
set = mailimap_set_new_single(mail.getNumber());
clist*id_list=clist_new();
for (unsigned j=0; j < path.count();++j) {