summaryrefslogtreecommitdiff
path: root/noncore/net/mail
authoralwin <alwin>2004-10-25 22:34:15 (UTC)
committer alwin <alwin>2004-10-25 22:34:15 (UTC)
commit9e97864f04686ca8fc672de950cbbef4ff6a5ec6 (patch) (unidiff)
tree7aa5b07b4bb6fce77844d7883d947100a1ae3759 /noncore/net/mail
parentd29de6d360b0570c12778beea9f654a8fcdbe3c7 (diff)
downloadopie-9e97864f04686ca8fc672de950cbbef4ff6a5ec6.zip
opie-9e97864f04686ca8fc672de950cbbef4ff6a5ec6.tar.gz
opie-9e97864f04686ca8fc672de950cbbef4ff6a5ec6.tar.bz2
fixed the problem with displaying date/time of a mail
usage of helper class
Diffstat (limited to 'noncore/net/mail') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp18
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.h3
2 files changed, 5 insertions, 16 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
index fe75a15..56efa0b 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
@@ -12,3 +12,3 @@ using namespace Opie::Core;
12IMAPwrapper::IMAPwrapper( IMAPaccount *a ) 12IMAPwrapper::IMAPwrapper( IMAPaccount *a )
13 : AbstractMail() 13 : AbstractMail(),MailStatics()
14{ 14{
@@ -426,5 +426,4 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
426 mailimap_envelope * head = item->att_data.att_static->att_data.att_env; 426 mailimap_envelope * head = item->att_data.att_static->att_data.att_env;
427 m->setDate(head->env_date); 427 m->setDate(parseDateTime(head->env_date));
428 m->setSubject(convert_String((const char*)head->env_subject)); 428 m->setSubject(convert_String((const char*)head->env_subject));
429 //m->setSubject(head->env_subject);
430 if (head->env_from!=NULL) { 429 if (head->env_from!=NULL) {
@@ -470,14 +469,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att)
470 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_INTERNALDATE) { 469 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_INTERNALDATE) {
471#if 0 470 // not used this moment
472 mailimap_date_time*date = item->att_data.att_static->att_data.att_internal_date;
473 if (date->dt_sec>60 || date->dt_sec<0) date->dt_sec=0;
474 //QDateTime da(QDate(d->dt_year,date->dt_month,date->dt_day),QTime(date->dt_hour,date->dt_min,date->dt_sec));
475 QString timestring = TimeString::numberDateString(QDate(date->dt_year,date->dt_month,date->dt_day))+" ";
476 timestring+=TimeString::timeString(QTime(date->dt_hour,date->dt_min,date->dt_sec))+" ";
477 timestring.sprintf(timestring+" %+05i",date->dt_zone);
478 m->setDate(timestring);
479 QDateTime da(QDate(d->dt_year,d->dt_month,d->dt_day),QTime(d->dt_hour,d->dt_min,d->dt_sec));
480 odebug << "" << d->dt_year << " " << d->dt_month << " " << d->dt_day << " - " << d->dt_hour << " " << d->dt_min << " " << d->dt_sec << "" << oendl;
481 odebug << da.toString() << oendl;
482#endif
483 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) { 471 } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_RFC822_SIZE) {
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h
index e56605a..5efcfc9 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.h
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.h
@@ -6,2 +6,3 @@
6#include "abstractmail.h" 6#include "abstractmail.h"
7#include "mailstatics.h"
7#include <libetpan/clist.h> 8#include <libetpan/clist.h>
@@ -19,3 +20,3 @@ class encodedString;
19 20
20class IMAPwrapper : public AbstractMail 21class IMAPwrapper : public AbstractMail,public MailStatics
21{ 22{