diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-session.c | 11 |
2 files changed, 16 insertions, 0 deletions
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 <NotZed@Ximian.com> + + * mail-session.c (get_password): return the source url for + popb4smtp auth request. + 2001-08-02 Jon Trowbridge <trow@ximian.com> * 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) |