From b586c108fe1b79c177e9a8ee1224a0c98688d2ba Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Tue, 30 Jun 2020 10:56:38 -0400 Subject: [PATCH] email.c: Reload mailbox after P)urge command --- apps/email.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/email.c b/apps/email.c index ae78101..ac6861c 100644 --- a/apps/email.c +++ b/apps/email.c @@ -5,10 +5,9 @@ ///////////////////////////////////////////////////////////////// // TODO: -// - BUG: If messages are deleted, selection can be left on an empty line. -// Move it to top after P)urge. // - Update To/From if reply or forward // - Fix terrible scrollback algorithm!! +// - Add MIME support? Quoted printable and Base64? // - Editor for email composition functions #include @@ -1159,8 +1158,10 @@ void keyboard_hdlr(void) { break; case 'p': case 'P': - if (prompt_okay("Purge - ")) + if (prompt_okay("Purge - ")) { purge_deleted(); + switch_mailbox(curr_mbox); + } break; case 'n': case 'N':