Added support for asking passphrase.

svn path=/trunk/; revision=31876
This commit is contained in:
Srinivasa Ragavan
2006-04-24 06:55:13 +00:00
parent 321d929aba
commit 6ee18ea859
2 changed files with 19 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2006-04-24 Srinivasa Ragavan <sragavan@novell.com>
* mail-session.c: (get_password): Ask passphrase if the user is
supposed to enter the same.
2006-04-22 Srinivasa Ragavan <sragavan@novell.com>
* em-format-html-display.c: (efhd_attachment_button),

View File

@ -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 */