-rw-r--r-- | noncore/net/mail/imapwrapper.cpp | 9 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 9 |
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) mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date; +#if 0 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) qDebug(da.toString()); +#endif } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) { @@ -720,2 +722,5 @@ void IMAPwrapper::deleteMail(const RecMail&mail) err = mailimap_store(m_imap,set,store_flags); + mailimap_set_free( set ); + mailimap_store_att_flags_free(store_flags); + if (err != MAILIMAP_NO_ERROR) { @@ -724,2 +729,4 @@ void IMAPwrapper::deleteMail(const RecMail&mail) } + qDebug("deleting mail: %s",m_imap->imap_response); + /* should we realy do that at this moment? */ err = mailimap_expunge(m_imap); @@ -728,3 +735,3 @@ void IMAPwrapper::deleteMail(const RecMail&mail) } - qDebug("Delete successfull"); + qDebug("Delete successfull %s",m_imap->imap_response); } 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) mailimap_date_time*d = item->att_data.att_static->att_data.att_internal_date; +#if 0 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) qDebug(da.toString()); +#endif } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) { @@ -720,2 +722,5 @@ void IMAPwrapper::deleteMail(const RecMail&mail) err = mailimap_store(m_imap,set,store_flags); + mailimap_set_free( set ); + mailimap_store_att_flags_free(store_flags); + if (err != MAILIMAP_NO_ERROR) { @@ -724,2 +729,4 @@ void IMAPwrapper::deleteMail(const RecMail&mail) } + qDebug("deleting mail: %s",m_imap->imap_response); + /* should we realy do that at this moment? */ err = mailimap_expunge(m_imap); @@ -728,3 +735,3 @@ void IMAPwrapper::deleteMail(const RecMail&mail) } - qDebug("Delete successfull"); + qDebug("Delete successfull %s",m_imap->imap_response); } |