Don't ask for authentication credentials when specified in the URL.

This commit is contained in:
Vincent Richard 2005-05-30 15:19:47 +00:00
parent 9479afa206
commit 8d20c8de3a

View File

@ -315,7 +315,9 @@ static void connectStore()
interactiveAuthenticator auth;
vmime::utility::auto_ptr <vmime::messaging::store> st =
g_session->getStore(url, &auth);
g_session->getStore(url,
(url.getUsername().empty() || url.getPassword().empty())
? &auth : NULL);
// Connect to the mail store
st->connect();