diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-02-03 15:50:49 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-02-04 13:07:00 -0800 |
commit | 1a9fea6f9aa506cd2ac8222cee05889b775f8613 (patch) | |
tree | c5cbcb1fe53eef3905a0f3cc06cb86f541ff2524 /curs_main.c | |
parent | acf11418685ab8f9489bfeca438d0c40a75e8f7c (diff) |
Add explicit flag to check for postponed message on <mail>.
This used to check for:
!flags && !msg
which was still relatively clear that it was a unique situation (just
for <mail> in the index and pager).
With the addition of background editing, it became:
(sctx->flags == SENDBACKGROUNDEDIT) && !sctx->msg
This is less intuitively understood to be just for the <mail> case,
and thus perhaps easy to create a bug in the future.
Create an explicit flag, SENDCHECKPOSTPONED to perform the check, and
enable for the <mail> operation in the index and pager.
Diffstat (limited to 'curs_main.c')
-rw-r--r-- | curs_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/curs_main.c b/curs_main.c index 1b7f121c..7d7477fa 100644 --- a/curs_main.c +++ b/curs_main.c @@ -2296,7 +2296,8 @@ int mutt_index_menu (void) case OP_MAIL: CHECK_ATTACH; - mutt_send_message (SENDBACKGROUNDEDIT, NULL, NULL, Context, NULL); + mutt_send_message (SENDBACKGROUNDEDIT | SENDCHECKPOSTPONED, NULL, NULL, + Context, NULL); menu->redraw = REDRAW_FULL; break; |