X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account.c;h=9464edf3d94ab97a54f1eba157fa039ef47f6042;hp=c4b379af09e29bbe13076e3a60fa2215c576bbc1;hb=40cd7daf81df8f225032bfabc792349954d2a12a;hpb=cc77d0cecb3fdb6cc55c36c60be92cc63730e5e4 diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index c4b379a..9464edf 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -303,6 +303,15 @@ modest_tny_account_new_from_server_account (ModestAccountMgr *account_mgr, g_free (url); /***********************/ + /* For transport accounts, now is a good time to create the send queues, + * so that the send queues start trying as soon as possible to send any + * messages that are already in their outboxes: */ + if ( (account_data->proto == MODEST_PROTOCOL_TRANSPORT_SENDMAIL) || + (account_data->proto == MODEST_PROTOCOL_TRANSPORT_SMTP) ) { + /* modest_runtime_get_send_queue() instantiates and stores the send queue: */ + modest_runtime_get_send_queue( TNY_TRANSPORT_ACCOUNT (tny_account)); + } + return tny_account; }