- acc_mgr = modest_runtime_get_account_mgr();
- account_store = modest_runtime_get_account_store();
-
- /* Get accounts */
- accounts = tny_simple_list_new ();
- tny_account_store_get_accounts (TNY_ACCOUNT_STORE(account_store), accounts,
- TNY_ACCOUNT_STORE_STORE_ACCOUNTS);
-
- iter = tny_list_create_iterator (accounts);
- account = TNY_STORE_ACCOUNT (tny_iterator_get_current (iter));