diff options
Diffstat (limited to 'examples/example6.cpp')
-rw-r--r-- | examples/example6.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/example6.cpp b/examples/example6.cpp index 344a4d87..7bd7a82c 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -516,6 +516,13 @@ static void connectStore() // Connect to the mail store st->connect(); + // Display some information about the connection + vmime::ref <vmime::net::connectionInfos> ci = st->getConnectionInfos(); + + std::cout << std::endl; + std::cout << "Connected to '" << ci->getHost() << "' (port " << ci->getPort() << ")" << std::endl; + std::cout << "Connection is " << (st->isSecuredConnection() ? "" : "NOT ") << "secured." << std::endl; + // Open the default folder in this store vmime::ref <vmime::net::folder> f = st->getDefaultFolder(); // vmime::ref <vmime::net::folder> f = st->getFolder(vmime::utility::path("a")); |