X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.c;h=8707d0e6987bf7b845e5cb38039307033ea84c91;hp=e84c8d92ef8c5b8c9de7e9c7b0dfc7a5c70e9bf1;hb=ce2297e63c42713d2484a11ce075ac529babc1b3;hpb=79acfb0d9e8e1ade6eedcc636cba74f7e9cfd939 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) {