X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-mail-operation.c;h=75aa517cfe4bf6bdd94e240e4d9d5b5391ca1319;hb=2c42e651cc7c81b3b48adbab9a9a3c80cc32b215;hp=30f1a57e7c36a9b067447974358c3f5dba1b8689;hpb=f34695cc046a41df511b47a38e043679560893f4;p=modest diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 30f1a57..75aa517 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -1329,8 +1329,7 @@ G_DEFINE_TYPE_WITH_CODE (InternalFolderObserver, static void foreach_add_item (gpointer header, gpointer user_data) { - tny_list_prepend (TNY_LIST (user_data), - G_OBJECT (header)); + tny_list_append (TNY_LIST (user_data), G_OBJECT (header)); } /* This is the method that looks for new messages in a folder */ @@ -1411,9 +1410,9 @@ update_account_send_mail (UpdateAccountInfo *info) return; /* Get the transport account */ - transport_account = (TnyTransportAccount *) - modest_tny_account_store_get_transport_account_for_open_connection (account_store, - info->account_name); + transport_account = (TnyTransportAccount *) + modest_tny_account_store_get_server_account (account_store, info->account_name, + TNY_ACCOUNT_TYPE_TRANSPORT); if (transport_account) { ModestTnySendQueue *send_queue;