diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-04-24 14:55:13 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-04-24 14:55:13 +0800 |
commit | 6ee18ea859f29a61e2a2b71e6acf4e92063fa51f (patch) | |
tree | 4d56dcf572862e7d459c317d3c6c2c4ed0e92113 /mail/mail-session.c | |
parent | 321d929aba20d12acf6243e2283eca74de93af94 (diff) | |
download | gsoc2013-evolution-6ee18ea859f29a61e2a2b71e6acf4e92063fa51f.tar.gz gsoc2013-evolution-6ee18ea859f29a61e2a2b71e6acf4e92063fa51f.tar.zst gsoc2013-evolution-6ee18ea859f29a61e2a2b71e6acf4e92063fa51f.zip |
Added support for asking passphrase.
svn path=/trunk/; revision=31876
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index b132130616..6b4bdf610f 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -200,11 +200,17 @@ get_password (CamelSession *session, CamelService *service, const char *domain, remember = config_service?config_service->save_passwd:FALSE; - if (account) - title = g_strdup_printf (_("Enter Password for %s"), account->name); - else - title = g_strdup (_("Enter Password")); - + if (flags & CAMEL_SESSION_PASSPHRASE) { + if (account) + title = g_strdup_printf (_("Enter Passphrase for %s"), account->name); + else + title = g_strdup (_("Enter Passphrase")); + } else { + if (account) + title = g_strdup_printf (_("Enter Password for %s"), account->name); + else + title = g_strdup (_("Enter Password")); + } if ((flags & CAMEL_SESSION_PASSWORD_STATIC) != 0) eflags = E_PASSWORDS_REMEMBER_NEVER; else if (config_service == NULL) @@ -218,6 +224,9 @@ get_password (CamelSession *session, CamelService *service, const char *domain, if (flags & CAMEL_SESSION_PASSWORD_SECRET) eflags |= E_PASSWORDS_SECRET; + if (flags & CAMEL_SESSION_PASSPHRASE) + eflags |= E_PASSWORDS_PASSPHRASE; + /* HACK: breaks abstraction ... e_account_writable doesn't use the eaccount, it also uses the same writable key for source and transport */ |