X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-ui-actions.c;h=ca176d3dbfe6fa9e27ff688443185c3084b568e3;hb=d63f0c0d3aea4fd36927460f9af2227a4f728f4d;hp=32b517db4a7381cea6855a7686756bed0cdde8d4;hpb=f9b53bce9ff87d8778c4715f2c3ce3fa379253bf;p=modest diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 32b517d..ca176d3 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -821,6 +821,19 @@ modest_ui_actions_msg_retrieval_check (ModestMailOperation *mail_op, g_object_unref (source); } + if (error && ((error->code == TNY_SERVICE_ERROR_NO_SUCH_MESSAGE) || + error->code == TNY_SERVICE_ERROR_MESSAGE_NOT_AVAILABLE)) { + gchar *subject, *msg; + subject = tny_header_dup_subject (header); + if (!subject) + subject = g_strdup (_("mail_va_no_subject")); + msg = g_strdup_printf (_("emev_ni_ui_imap_message_not_available_in_server"), + subject); + modest_platform_run_information_dialog (NULL, msg, FALSE); + g_free (msg); + g_free (subject); + } + /* Remove the header from the preregistered uids */ modest_window_mgr_unregister_header (modest_runtime_get_window_mgr (), header);