- store_conn_status = tny_account_get_connection_status (store_account);
- transport_conn_status = tny_account_get_connection_status (transport_account);
+ /* If the transport account was not used yet, then the send
+ queue could not exist (it's created on demand) */
+ send_queue = modest_runtime_get_send_queue (TNY_TRANSPORT_ACCOUNT (transport_account), FALSE);
+ if (send_queue)
+ sending = modest_tny_send_queue_sending_in_progress (send_queue);