aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
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)