diff --git a/examples/example6.cpp b/examples/example6.cpp index 6dea8e30..bcbdcaf6 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -646,6 +646,7 @@ static void connectStore() std::cout << std::endl; std::cout << count << " message(s) in this folder" << std::endl; + f->close(true); // 'true' to expunge deleted messages f = newFolder; break; @@ -653,6 +654,7 @@ static void connectStore() // Main menu case 8: + f->close(true); // 'true' to expunge deleted messages cont = false; break; }