if (bcc)
gtk_entry_set_text (GTK_ENTRY(priv->bcc_field), bcc);
if (subject)
- gtk_entry_set_text (GTK_ENTRY(priv->subject_field), subject);
+ gtk_entry_set_text (GTK_ENTRY(priv->subject_field), subject);
buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->msg_body));
gtk_text_buffer_set_text (buf,
TnyHeader *header,
FormatterFunc func)
{
- TnyMsg *new_msg;
+ TnyMsg *new_msg = NULL;
gchar *body_text = NULL, *txt = NULL;
ModestFormatterPrivate *priv;
TnyPlatformFactory *fact;
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;
+ TnyMsg *new_msg = NULL;
TnyHeader *new_header, *header;
const gchar* reply_to;
gchar *new_cc = NULL;
/* 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);
return priv->cur_folder;
}
-
-
-static const gchar*
-get_account_name (TnyFolder *folder)
-{
- TnyAccount *account;
-
- account = tny_folder_get_account (folder);
- if (!account)
- return NULL;
- else
- return tny_account_get_name (account);
-
-}
static gint
cmp_rows (GtkTreeModel *tree_model, GtkTreeIter *iter1, GtkTreeIter *iter2,