aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-08-03 23:35:35 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-08-03 23:35:35 +0800
commit3d42df437ae86f543639ff56c633634ec03f5222 (patch)
tree73b454ee5c7c3a8c1d3d9fb1ade90eab7e7fb04b /mail/mail-session.c
parent99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd (diff)
downloadgsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.gz
gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.zst
gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.zip
return the source url for popb4smtp auth request.
2001-08-03 Not Zed <NotZed@Ximian.com> * mail-session.c (get_password): return the source url for popb4smtp auth request. svn path=/trunk/; revision=11616
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index f6a611c334..05b1e79d17 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -153,6 +153,17 @@ get_password (CamelSession *session, const char *prompt, gboolean secret,
{
MailSession *mail_session = MAIL_SESSION (session);
char *key, *ans;
+
+ if (!strcmp(item, "popb4smtp_uri")) {
+ char *url = camel_url_to_string(service->url, 0);
+ const MailConfigAccount *account = mail_config_get_account_by_transport_url(url);
+
+ g_free(url);
+ if (account == NULL)
+ return NULL;
+
+ return g_strdup(account->source->url);
+ }
key = make_key (service, item);
if (!key)