diff options
author | Not Zed <NotZed@Ximian.com> | 2001-08-03 23:35:35 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-08-03 23:35:35 +0800 |
commit | 3d42df437ae86f543639ff56c633634ec03f5222 (patch) | |
tree | 73b454ee5c7c3a8c1d3d9fb1ade90eab7e7fb04b | |
parent | 99e55fbc6b1ad39fd840c8b917583bc1b2cce2dd (diff) | |
download | gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.gz gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.bz2 gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.lz gsoc2013-evolution-3d42df437ae86f543639ff56c633634ec03f5222.tar.xz 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
-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) |