summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alpine/alpine.c1
1 files changed, 1 insertions, 0 deletions
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'){