summaryrefslogtreecommitdiffstats
path: root/init.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-02-19 16:34:05 -0800
committerKevin McCarthy <kevin@8t8.us>2020-02-29 20:30:13 -0800
commit6fe9b1d5c526b0497b17ef340d058fb1537e7da0 (patch)
tree92cbb386c7829489e435fb8f9071ea31d2af3abe /init.h
parent331772558d86aaf342895e2cff1c029b198483fa (diff)
Add background compose menu and $background_format config var.
List the backgrounded sessions. Allow the user to resume one, or exit the menu. Bind to 'B' by default in the index and pager menus. Remove the "<mail>" function autoresuming functionality, instead invoke the menu to resume backgrounded sessions.
Diffstat (limited to 'init.h')
-rw-r--r--init.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/init.h b/init.h
index b10a59e1..db6e10fa 100644
--- a/init.h
+++ b/init.h
@@ -379,6 +379,20 @@ struct option_t MuttVars[] = {
** .pp
** ADD DOCUMENTATION.
*/
+ { "background_format", DT_STR, R_MENU, {.p=&BackgroundFormat}, {.p="%5p %10S %s"} },
+ /*
+ ** .pp
+ ** This variable describes the format of the ``background compose''
+ ** menu. The following \fCprintf(3)\fP-style sequences are
+ ** understood:
+ ** .dl
+ ** .dt %n .dd the running number on the menu
+ ** .dt %p .dd pid of the $$editor process
+ ** .dt %r .dd comma separated list of ``To:'' recipients
+ ** .dt %R .dd comma separated list of ``Cc:'' recipients
+ ** .dt %s .dd subject of the message
+ ** .dt %S .dd status of the $$editor process: running/finished
+ */
{ "beep", DT_BOOL, R_NONE, {.l=OPTBEEP}, {.l=1} },
/*
** .pp