X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_main.c;h=09f28a146305b780e1db920dca36e73f0bfccb64;hp=39973fa74c5175166766c6a57e1687d2de0c4561;hb=616031722dea23d357d8b50d41ae7b40cfdd7d3c;hpb=b0811fbd6a0e218c9c310a6ef4170e81540e6c22 diff --git a/curs_main.c b/curs_main.c index 39973fa..09f28a1 100644 --- a/curs_main.c +++ b/curs_main.c @@ -41,6 +41,10 @@ #include "nntp.h" #endif +#ifdef USE_SASL +#include "mutt_sasl.h" +#endif + #include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" @@ -2342,16 +2346,19 @@ int mutt_index_menu (void) break; } + if (!attach_msg) { #ifdef USE_IMAP /* Close all open IMAP connections */ - if (!attach_msg) imap_logout_all (); #endif #ifdef USE_NNTP /* Close all open NNTP connections */ - if (!attach_msg) nntp_logout_all (); #endif +#ifdef USE_SASL + mutt_sasl_done (); +#endif + } mutt_menuDestroy (&menu); return (close);