priv = MODEST_EDIT_MSG_WINDOW_GET_PRIVATE (self);
- header = tny_msg_get_header (msg);
+ header = tny_msg_get_header (msg);
to = tny_header_get_to (header);
cc = tny_header_get_cc (header);
bcc = tny_header_get_bcc (header);
buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->msg_body));
gtk_text_buffer_set_text (buf,
- (const gchar *) modest_tny_msg_actions_find_body (msg, TRUE),
+ (const gchar *) modest_tny_msg_actions_find_body (msg, FALSE),
-1);
/* TODO: lower priority, select in the From: combo to the
buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->msg_body));
gtk_text_buffer_set_text (buf,
- (const gchar *) modest_tny_msg_actions_find_body (msg, TRUE),
+ (const gchar *) modest_tny_msg_actions_find_body (msg, FALSE),
-1);
/* TODO: lower priority, select in the From: combo to the
TnyMimePart *body;
ModestFormatter *formatter;
- /* Get body from original msg */
+ /* Get body from original msg. Always look for the text/plain
+ part of the message to create the reply/forwarded mail */
header = tny_msg_get_header (msg);
- body = modest_tny_msg_actions_find_body_part (msg, TRUE);
+ body = modest_tny_msg_actions_find_body_part (msg, FALSE);
/* TODO: select the formatter from account prefs */
formatter = modest_formatter_new ("text/plain");
typedef struct _ModestTnyAccountStorePrivate ModestTnyAccountStorePrivate;
struct _ModestTnyAccountStorePrivate {
- GMutex *store_lock;
gchar *cache_dir;
GHashTable *password_hash;
TnyDevice *device;
priv->tny_session_camel = NULL;
}
- if (priv->store_lock)
- g_mutex_free (priv->store_lock);
-
g_free (priv->cache_dir);
priv->cache_dir = NULL;
G_CALLBACK (on_account_changed), obj);
g_signal_connect (G_OBJECT(account_mgr), "account_removed",
G_CALLBACK (on_account_removed), obj);
- priv->store_lock = g_mutex_new ();
pfact = TNY_PLATFORM_FACTORY (modest_tny_platform_factory_get_instance());
if (!pfact) {