summaryrefslogtreecommitdiff
authoralwin <alwin>2003-12-14 01:53:46 (UTC)
committer alwin <alwin>2003-12-14 01:53:46 (UTC)
commit898d1d9abda9889c3bb3adc44dd253e0a4ede746 (patch) (unidiff)
tree8fb7afa554b94c0fe51723f8c2146859a705c2d7
parent52966e8b529e78ae431839abd90cec2ebb0d6dff (diff)
downloadopie-898d1d9abda9889c3bb3adc44dd253e0a4ede746.zip
opie-898d1d9abda9889c3bb3adc44dd253e0a4ede746.tar.gz
opie-898d1d9abda9889c3bb3adc44dd253e0a4ede746.tar.bz2
memleak fixed, some obsolet debugs removed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/imapwrapper.cpp9
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp9
2 files changed, 16 insertions, 2 deletions
diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp
index a01a2a9..9ee0dff 100644
--- a/noncore/net/mail/imapwrapper.cpp
+++ b/noncore/net/mail/imapwrapper.cpp
@@ -299,2 +299,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
299 mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date; 299 mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date;
300#if 0
300 QDateTime da(QDate(d->dt_year,d->dt_month,d->dt_day),QTime(d->dt_hour,d->dt_min,d->dt_sec)); 301 QDateTime da(QDate(d->dt_year,d->dt_month,d->dt_day),QTime(d->dt_hour,d->dt_min,d->dt_sec));
@@ -302,2 +303,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
302 qDebug(da.toString()); 303 qDebug(da.toString());
304#endif
303 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) { 305 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) {
@@ -720,2 +722,5 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
720 err = mailimap_store(m_imap,set,store_flags); 722 err = mailimap_store(m_imap,set,store_flags);
723 mailimap_set_free( set );
724 mailimap_store_att_flags_free(store_flags);
725
721 if (err != MAILIMAP_NO_ERROR) { 726 if (err != MAILIMAP_NO_ERROR) {
@@ -724,2 +729,4 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
724 } 729 }
730 qDebug("deleting mail: %s",m_imap->imap_response);
731 /* should we realy do that at this moment? */
725 err = mailimap_expunge(m_imap); 732 err = mailimap_expunge(m_imap);
@@ -728,3 +735,3 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
728 } 735 }
729 qDebug("Delete successfull"); 736 qDebug("Delete successfull %s",m_imap->imap_response);
730} 737}
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
index a01a2a9..9ee0dff 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
@@ -299,2 +299,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
299 mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date; 299 mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date;
300#if 0
300 QDateTime da(QDate(d->dt_year,d->dt_month,d->dt_day),QTime(d->dt_hour,d->dt_min,d->dt_sec)); 301 QDateTime da(QDate(d->dt_year,d->dt_month,d->dt_day),QTime(d->dt_hour,d->dt_min,d->dt_sec));
@@ -302,2 +303,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
302 qDebug(da.toString()); 303 qDebug(da.toString());
304#endif
303 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) { 305 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) {
@@ -720,2 +722,5 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
720 err = mailimap_store(m_imap,set,store_flags); 722 err = mailimap_store(m_imap,set,store_flags);
723 mailimap_set_free( set );
724 mailimap_store_att_flags_free(store_flags);
725
721 if (err != MAILIMAP_NO_ERROR) { 726 if (err != MAILIMAP_NO_ERROR) {
@@ -724,2 +729,4 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
724 } 729 }
730 qDebug("deleting mail: %s",m_imap->imap_response);
731 /* should we realy do that at this moment? */
725 err = mailimap_expunge(m_imap); 732 err = mailimap_expunge(m_imap);
@@ -728,3 +735,3 @@ void IMAPwrapper::deleteMail(const RecMail&mail)
728 } 735 }
729 qDebug("Delete successfull"); 736 qDebug("Delete successfull %s",m_imap->imap_response);
730} 737}