tny_header_set_replyto (new_header, from);
/* Change the subject */
- new_subject =
- (gchar *) modest_text_utils_derived_subject (tny_header_get_subject(header),
+ new_subject =
+ (gchar *) modest_text_utils_derived_subject (tny_header_get_subject(header),
(is_reply) ? _("Re:") : _("Fwd:"));
tny_header_set_subject (new_header, (const gchar *) new_subject);
g_free (new_subject);
ModestMailOperationReplyType reply_type,
ModestMailOperationReplyMode reply_mode)
{
- TnyMsg *new_msg = NULL;
+ TnyMsg *new_msg;
TnyHeader *new_header, *header;
const gchar* reply_to;
gchar *new_cc = NULL;
header = tny_msg_get_header (msg);
new_header = tny_msg_get_header (new_msg);
reply_to = tny_header_get_replyto (header);
-
- /* TODO: tinymail returns Invalid and it should return NULL */
- if (strcmp (reply_to, "Invalid"))
+ if (reply_to)
tny_header_set_to (new_header, reply_to);
else
tny_header_set_to (new_header, tny_header_get_from (header));
/* Remove my own address from the cc list. TODO:
remove also the To: of the new message, needed due
to the new reply_to feature */
- new_cc = (gchar *)
- modest_text_utils_remove_address ((const gchar *) tmp->str,
+ new_cc = (gchar *)
+ modest_text_utils_remove_address ((const gchar *) tmp->str,
from);
/* FIXME: remove also the mails from the new To: */
tny_header_set_cc (new_header, new_cc);
TnyIterator *iter;
gboolean found;
/*TnyFolderStoreQuery *query;*/
- TnyFolder *trash_folder = NULL;
+ TnyFolder *trash_folder;
/* Look for Trash folder */
folders = TNY_LIST (tny_simple_list_new ());
g_object_unref (G_OBJECT (store_account));
} else {
tny_folder_remove_msg (folder, header, NULL); /* FIXME */
- tny_folder_sync(folder, TRUE, NULL); /* FIXME */
+ tny_folder_sync (folder, TRUE, NULL); /* FIXME */
}
/* Free */