From 92e425431b22141ce72a5e5afe549d87d61cd0be Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 5 Jun 2019 09:52:08 -0600 Subject: * Do not check for new mail on a folder when closing, unless we have a stream. --- alpine/alpine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/alpine/alpine.c b/alpine/alpine.c index 973fa2c6..b519afe5 100644 --- a/alpine/alpine.c +++ b/alpine/alpine.c @@ -3205,6 +3205,7 @@ quit_screen(struct pine *pine_state) dprint((1, "\n\n ---- QUIT SCREEN ----\n")); if(F_ON(F_CHECK_MAIL_ONQUIT,ps_global) + && pine_state->mail_stream != NULL && new_mail(1, VeryBadTime, NM_STATUS_MSG | NM_DEFER_SORT) > 0 && (quit = want_to(_("Quit even though new mail just arrived"), 'y', 0, NO_HELP, WT_NORM)) != 'y'){ -- cgit v1.2.3-70-g09d2