signature = modest_account_mgr_get_signature_from_recipient (mgr, recipient, &use_signature);
g_free (recipient);
if (body_str != NULL) {
- body = use_signature ? g_strconcat(body_str, "\n--\n", signature, NULL) : g_strdup(body_str);
+ body = use_signature ? g_strconcat(body_str, "\n",
+ MODEST_TEXT_UTILS_SIGNATURE_MARKER,
+ "\n", signature, NULL) : g_strdup(body_str);
} else {
- body = use_signature ? g_strconcat("\n--\n", signature, NULL) : g_strdup("");
+ body = use_signature ? g_strconcat("\n", MODEST_TEXT_UTILS_SIGNATURE_MARKER,
+ "\n", signature, NULL) : g_strdup("");
}
msg = modest_tny_msg_new (to_str, from_str, cc_str, bcc_str, subject_str, NULL, NULL, body, NULL, NULL, NULL);
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 */