aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3/camel-pop3-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-20 13:33:12 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-20 13:33:12 +0800
commitc5c43717419bcf6a6a3a5d5958090631dc7a13c9 (patch)
tree046170f46a9b68134ff08aa99c64c86113f18fde /camel/providers/pop3/camel-pop3-store.c
parentb6e44f08f719efee9c6ed90813d03ddbf42e9121 (diff)
downloadgsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.gz
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.bz2
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.lz
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.xz
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.zst
gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.zip
** See bug #52817.
2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52817. * camel-session.c (camel_session_get_password): merged reprompt and secret into a flags field, and add more options. Fixed all callers. svn path=/trunk/; revision=24323
Diffstat (limited to 'camel/providers/pop3/camel-pop3-store.c')
-rw-r--r--camel/providers/pop3/camel-pop3-store.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index fbdae86833..02e58dd98c 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -474,13 +474,17 @@ pop3_try_authenticate (CamelService *service, gboolean reprompt, const char *err
if (!service->url->passwd) {
char *prompt;
-
+ guint32 flags = CAMEL_SESSION_PASSWORD_SECRET;
+
+ if (reprompt)
+ flags |= CAMEL_SESSION_PASSWORD_REPROMPT;
+
prompt = g_strdup_printf (_("%sPlease enter the POP password for %s@%s"),
errmsg ? errmsg : "",
service->url->user,
service->url->host);
service->url->passwd = camel_session_get_password (camel_service_get_session (service),
- prompt, reprompt, TRUE, service, "password", ex);
+ prompt, flags, service, "password", ex);
g_free (prompt);
if (!service->url->passwd)
return FALSE;