summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2019-06-05 09:52:08 -0600
committerEduardo Chappa <chappa@washington.edu>2019-06-05 09:52:08 -0600
commit92e425431b22141ce72a5e5afe549d87d61cd0be (patch)
treeaa1145926847611fed267ad630e4d01b9bc76414
parent1d09ae170f006bcb2eecd3476899018fdb99189b (diff)
downloadalpine-92e425431b22141ce72a5e5afe549d87d61cd0be.tar.xz
* Do not check for new mail on a folder when closing, unless we have a
stream.
-rw-r--r--alpine/alpine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/alpine/alpine.c b/alpine/alpine.c
index 973fa2c..b519afe 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'){