X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.c;h=8707d0e6987bf7b845e5cb38039307033ea84c91;hp=e84c8d92ef8c5b8c9de7e9c7b0dfc7a5c70e9bf1;hb=94bf2a181e8b2644f037246b2fc3a70c865c22e2;hpb=627c4af6ac85444cc3256fa568baf4a8d62178ae diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index e84c8d9..8707d0e 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -1289,10 +1289,17 @@ static void update_account_send_mail (UpdateAccountInfo *info) { TnyTransportAccount *transport_account = NULL; + ModestTnyAccountStore *account_store; + + account_store = modest_runtime_get_account_store (); + + /* We don't try to send messages while sending mails is blocked */ + if (modest_tny_account_store_is_send_mail_blocked (account_store)) + return; /* Get the transport account */ transport_account = (TnyTransportAccount *) - modest_tny_account_store_get_transport_account_for_open_connection (modest_runtime_get_account_store(), + modest_tny_account_store_get_transport_account_for_open_connection (account_store, info->account_name); if (transport_account) {