From: Sergio Villar Senin Date: Tue, 27 May 2008 15:42:47 +0000 (+0000) Subject: * Fixes NB#85880, show the proper server name if a SMTP send fails X-Git-Tag: git_migration_finished~1343 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=a1d576310d8fd6c92053672e0f7d8c69e416807d * Fixes NB#85880, show the proper server name if a SMTP send fails pmo-trunk-r4576 --- diff --git a/src/modest-tny-send-queue.c b/src/modest-tny-send-queue.c index d4db8d7..ae2d3d1 100644 --- a/src/modest-tny-send-queue.c +++ b/src/modest-tny-send-queue.c @@ -687,8 +687,19 @@ _on_msg_error_happened (TnySendQueue *self, if (err->code == TNY_SYSTEM_ERROR_CANCEL) { info->status = MODEST_TNY_SEND_QUEUE_SUSPENDED; } else { - if (err->code == TNY_SERVICE_ERROR_CONNECT) - modest_platform_run_alert_dialog (_("emev_ib_ui_smtp_server_invalid"), FALSE); + if (err->code == TNY_SERVICE_ERROR_CONNECT) { + TnyCamelTransportAccount* transport; + + transport = tny_camel_send_queue_get_transport_account (TNY_CAMEL_SEND_QUEUE (self)); + if (transport) { + gchar *message; + message = g_strdup_printf (_("emev_ib_ui_smtp_server_invalid"), + tny_account_get_hostname (TNY_ACCOUNT (transport))); + modest_platform_run_alert_dialog (message, FALSE); + g_free (message); + g_object_unref (transport); + } + } info->status = MODEST_TNY_SEND_QUEUE_FAILED; } priv->current = NULL;