error->code == TNY_SERVICE_ERROR_MESSAGE_NOT_AVAILABLE)) {
gchar *subject, *msg, *format = NULL;
TnyAccount *account;
- subject = tny_header_dup_subject (header);
+
+ subject = header?tny_header_dup_subject (header):NULL;
if (!subject)
subject = g_strdup (_("mail_va_no_subject"));
error = modest_mail_operation_get_error (mail_op);
if (error) {
- gboolean disk_full;
+ gboolean disk_full = FALSE;
TnyAccount *account;
/* Show an error. If there was some problem writing to
disk, show it, otherwise show the generic folder
ModestMailOperation *mail_op;
if (canceled || err) {
- TnyAccount *account = modest_mail_operation_get_account (mail_op);
/* In disk full conditions we could get this error here */
modest_tny_account_store_check_disk_full_error (modest_runtime_get_account_store(),
(GtkWidget *) parent_window, err,
- account,
- _("mail_in_ui_folder_create_error_memory"));
- if (account)
- g_object_unref (account);
+ NULL, _("mail_in_ui_folder_create_error_memory"));
/* This happens if we have selected the outbox folder
as the parent */