diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-20 13:33:12 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-20 13:33:12 +0800 |
commit | c5c43717419bcf6a6a3a5d5958090631dc7a13c9 (patch) | |
tree | 046170f46a9b68134ff08aa99c64c86113f18fde /camel/providers/pop3 | |
parent | b6e44f08f719efee9c6ed90813d03ddbf42e9121 (diff) | |
download | gsoc2013-evolution-c5c43717419bcf6a6a3a5d5958090631dc7a13c9.tar.gz 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')
-rw-r--r-- | camel/providers/pop3/camel-pop3-store.c | 8 |
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; |