Update change log and spec for wrt-plugins-tizen_0.4.51
[framework/web/wrt-plugins-tizen.git] / src / Messaging / Email.cpp
index 667b864..fbff139 100644 (file)
@@ -857,7 +857,7 @@ void Email::updateMessage()
        if(getCurrentFolder() == DRAFTBOX)
        {
 //             updateBody();
-//             updateSubject();
+               updateSubject();
 //             updateRecipients();
 //             updateFrom();
 //             updateAttachments();
@@ -887,6 +887,23 @@ void Email::updateMessage()
        error = email_update_mail( m_mail.Get(), attachment, attachmentCount, meeting_req, 0);
        if (EMAIL_ERROR_NONE != error) {
                LoggerW("Nothing to update or error. [" << error << "]");
+/*
+               if(error == EMAIL_ERROR_DB_FAILURE)
+               {
+                       int retry = 0;
+                       while (retry < 2) {
+                               LoggerW("wait 300 ms");
+                               usleep(300 * 1000);
+                               email_update_mail( m_mail.Get(), attachment, attachmentCount, meeting_req, 0);
+                               LoggerW("error. [" << error << "]");
+                               if (EMAIL_ERROR_NONE == error) {
+                                       break;
+                               }
+                               retry++;
+
+                       }
+               }
+*/
        }
 
        if(getCurrentFolder() == DRAFTBOX)
@@ -920,12 +937,14 @@ 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);
+
+                       tm* time = localtime(&result->date_time);
+                       if (!time) {
+                               LoggerE("localtime failed");
+                               Throw(WrtDeviceApis::Commons::PlatformException);
+                       }
+                       setDateTime(*time);
+
                }
                if(result != NULL)
                {