ref: 83e744a4ce3963795d09c469560e13039350c2e6
parent: a6b534a6a05d2f451427776ae7a4ff19ec539289
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Nov 15 20:03:11 EST 2020
add Mail command to windows Acme mail had the 'Mail' command, and sirjofri likes having it -- add it.
--- a/mbox.c
+++ b/mbox.c
@@ -585,6 +585,12 @@
}
static void
+mbcompose(char **, int)
+{
+ compose("", nil, 0, 0);
+}
+
+static void
delmesg(char **f, int nf)
{
mark(f, nf, nil, Ftodel, 1);
@@ -717,6 +723,7 @@
Fn mboxfn[] = {
{"Put", mbflush},
+ {"Mail", mbcompose},
{"Delmesg", delmesg},
{"Undelmesg", undelmesg},
{"Del", quitall},
@@ -793,7 +800,7 @@
threadsetname("mbox %s", mbox.path);
wininit(&mbox, mbox.path);
- wintagwrite(&mbox, "Put Delmesg Undelmesg Next ");
+ wintagwrite(&mbox, "Put Mail Delmesg Undelmesg Next ");
showlist();
fprint(mbox.ctl, "clean\n");
procrfork(eventread, nil, Stack, RFNOTEG);