From 3d42df437ae86f543639ff56c633634ec03f5222 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 3 Aug 2001 15:35:35 +0000 Subject: return the source url for popb4smtp auth request. 2001-08-03 Not Zed * mail-session.c (get_password): return the source url for popb4smtp auth request. svn path=/trunk/; revision=11616 --- mail/ChangeLog | 5 +++++ mail/mail-session.c | 11 +++++++++++ 2 files changed, 16 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 5ce782ad89..7752542572 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-08-03 Not Zed + + * mail-session.c (get_password): return the source url for + popb4smtp auth request. + 2001-08-02 Jon Trowbridge * mail-ops.c (filter_folder_describe): Added. Provide 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) -- cgit v1.2.3