diff options
author | Vincent Richard <[email protected]> | 2005-05-30 15:19:47 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-05-30 15:19:47 +0000 |
commit | 8d20c8de3a6e520232ce7cd73b65360cee31ff62 (patch) | |
tree | 5c6a9336a4e6fcb259ca0324cfd8a02aa2f48b7a /examples/example6.cpp | |
parent | Added 'peek' parameter to extract() and extractPart(). (diff) | |
download | vmime-8d20c8de3a6e520232ce7cd73b65360cee31ff62.tar.gz vmime-8d20c8de3a6e520232ce7cd73b65360cee31ff62.zip |
Don't ask for authentication credentials when specified in the URL.
Diffstat (limited to 'examples/example6.cpp')
-rw-r--r-- | examples/example6.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/example6.cpp b/examples/example6.cpp index aab3245e..349238d9 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -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(); |