xref: /inferno-os/acme/mail/readme (revision 37da2899f40661e3e9631e497da8dc59b971cbd0)
1*37da2899SCharles.ForsythMail is the single program in this directory.  Its argument specifies
2*37da2899SCharles.Forsyththe mail box to read, default /mail/box/$user/mbox.
3*37da2899SCharles.ForsythFor example, running
4*37da2899SCharles.Forsyth	Mail /mail/box/$user/stored
5*37da2899SCharles.Forsyth(a line in the guide file) looks at saved mail.
6*37da2899SCharles.Forsyth
7*37da2899SCharles.ForsythMail maintains a window containing headers for all the
8*37da2899SCharles.Forsythmessages in the mailbox and monitors the mailbox for new messages.
9*37da2899SCharles.ForsythUsing button 3 to indicate a message number opens
10*37da2899SCharles.Forsytha window on that message.   commands in the mailbox window are
11*37da2899SCharles.Forsyth	Put		Write the mailbox back to the file (never done automatically)
12*37da2899SCharles.Forsyth	Mail		Make a new message window ready to mail someone.
13*37da2899SCharles.Forsyth			Takes argument names analogously to acme's New.
14*37da2899SCharles.Forsyth	Del		Exit Mail, after checking that mailbox isn't modified.
15*37da2899SCharles.ForsythNew messages appear at the top of the window and are highlighted upon arrival.
16*37da2899SCharles.Forsyth(The messages are numbered oldest to newest, the opposite of regular mail.)
17*37da2899SCharles.Forsyth
18*37da2899SCharles.ForsythMessage windows have a simple format: the first line, up to the first tab or newline,
19*37da2899SCharles.Forsythholds the sender or, when sending, the addressee.  Edit the line to change who the
20*37da2899SCharles.Forsythmessage goes to.  Message windows contain the commands
21*37da2899SCharles.Forsyth	Reply	Make a new window to compose a reply to this message
22*37da2899SCharles.Forsyth	Delmesg	Delete the message from the screen and from the mailbox
23*37da2899SCharles.Forsyth	Del		Delete the window, leaving the message in the mailbox
24*37da2899SCharles.Forsyth	Post		Send the message to the addressee
25*37da2899SCharles.Forsyth	Save		Save to the named mailbox, default/mail/box/$user/stored
26*37da2899SCharles.ForsythSave takes a full file name; if that name has no slashes, the file is taken
27*37da2899SCharles.Forsythto be in /mail/box/$user and must already exist. Use mkbox in the guide to
28*37da2899SCharles.Forsythcreate target mailboxes in /mail/box/$user.
29*37da2899SCharles.ForsythReply and mail windows contain an obvious subset of the commands.
30