Update change log and spec for wrt-plugins-tizen_0.4.50
[framework/web/wrt-plugins-tizen.git] / src / Messaging / Email.cpp
index a0ae848..667b864 100644 (file)
@@ -603,15 +603,22 @@ void Email::readBody() {
                for ( i = 0; i < attachmentCount; i++)
                {
                        Try {
-                               LoggerD("attachment ID :" << attachment[i].attachment_id << " name :" << attachment[i].attachment_name << " download :" << attachment[i].save_status << "savefile :" << attachment[i].attachment_path);
-                               LoggerD("attachment inline status :" << attachment[i].inline_content_status);
+                               LoggerD("attachment ID : [" << attachment[i].attachment_id
+                        << "] name : [" << attachment[i].attachment_name
+                        << "] download : [" << attachment[i].save_status
+                        << "] savefile : [" << attachment[i].attachment_path
+                        << "] mimetype : [" << attachment[i].attachment_mime_type
+                        << "]");
+                               LoggerD("attachment inline status : ["
+                        << attachment[i].inline_content_status << "]");
                                IAttachmentPtr tmpAtt(new Attachment());
                                if (attachment[i].attachment_path)
                                        tmpAtt->init(attachment[i].attachment_path, false);
 
                                if (tmpAtt)
                                {
-                                       LoggerD("attachment[i].inline_content_status : " << attachment[i].inline_content_status);
+                                       LoggerD("attachment[i].inline_content_status : ["
+                            << attachment[i].inline_content_status << "]");
                                        tmpAtt->rename(std::string(attachment[i].attachment_name));
                                        tmpAtt->setAttachmentID(attachment[i].attachment_id);
                                        tmpAtt->setDownloaded(attachment[i].save_status);
@@ -849,9 +856,9 @@ void Email::updateMessage()
 
        if(getCurrentFolder() == DRAFTBOX)
        {
-               updateBody();
-               updateSubject();
-               updateRecipients();
+//             updateBody();
+//             updateSubject();
+//             updateRecipients();
 //             updateFrom();
 //             updateAttachments();
                updatePriority();
@@ -885,9 +892,9 @@ void Email::updateMessage()
        if(getCurrentFolder() == DRAFTBOX)
        {
        
-               updateAttachments();
+//             updateAttachments();
 
-/*             
+               
                email_mail_data_t* result = NULL;
                
                error = email_get_mail_data(m_mail->mail_id, &result);
@@ -913,6 +920,12 @@ void Email::updateMessage()
                                        LoggerW("email_update_mail_attribute error. [" << error << "]");
                                }
                        }
+                   tm* time = localtime(&result->date_time);
+                   if (!time) {
+                       LoggerE("localtime failed");
+                       Throw(WrtDeviceApis::Commons::PlatformException);
+                   }
+                   setDateTime(*time);
                }
                if(result != NULL)
                {
@@ -921,7 +934,7 @@ void Email::updateMessage()
                                LoggerW("email_free_mail_data error. [" << error << "]");
                        }
                }
-*/
+
        }
 
        if(meeting_req) {