X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account-store.c;h=e46ca556f239c49a04e24b71eddf85a1faf24f69;hp=9faf6a2a1845e876aae00db9a60543f26fc3acef;hb=9ab3f9d0057226978b1ad756f37f84f8bff2fc5e;hpb=3abe7e0470e5fec903d94f305bb580372466163a diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 9faf6a2..e46ca55 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1413,6 +1413,12 @@ get_smtp_specific_transport_account_for_open_connection (ModestTnyAccountStore * /* Get the connection-specific transport acccount, if any: */ ModestAccountMgr *account_manager = modest_runtime_get_account_mgr (); + + /* Check if this account has connection-specific SMTP enabled */ + if (!modest_account_mgr_get_use_connection_specific_smtp (account_manager, account_name)) { + return NULL; + } + gchar* server_account_name = modest_account_mgr_get_connection_specific_smtp (account_manager, account_name, connection_name);