home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / mush5.7 / part05 / cmd_help next >
Encoding:
Text File  |  1987-09-17  |  15.7 KB  |  445 lines

  1. /* @(#)cmd_help    1.4    10/28/86 (Dan heller) */
  2.  
  3. %?%
  4. The `?' will give you a list of legal commands.  Most commands
  5. accept -? as an option.  This will give you specialized help
  6. with that particular command.
  7. %%
  8.  
  9. %ignore%
  10. usage: ignore/unignore [headers]
  11. Use this command to set the message headers you would like not
  12. to be printed when you read a message. If no header specified,
  13. then a list of all headers currently being ignored is printed.
  14. You must specify a header for unignore.
  15.  
  16. You can set the variable "alwaysignore" to force normally
  17. ignored headers to be ignored while saving messages, forwarding
  18. messages or including messages into message buffers.
  19. %%
  20.  
  21. %set%
  22. usage: set/unset [variable] [= value]
  23. set by itself prints values for variables in its group
  24. To set a boolean variable (on or off), "set variable"
  25. To set a variable's value to a string, use:
  26. set variable = 'value'
  27.  
  28. If you want double-quote's or white-space embedded in
  29. a string, encase the string in single quotes.  If you
  30. want single quotes in a string, encase the string in
  31. double quotes.
  32.  
  33. Type "set ?all" for a list of all settable variables.
  34. "set ?variable_name" for help on a single variable.
  35. %%
  36.  
  37. %readmsg%
  38. You can read messages in different ways.  "type" and "print"
  39. will print the current message.  "top" will only print the
  40. first N lines of the current message where N is the value of
  41. the variable "crt".  "next" will go to the next unread message
  42. and print that. "previous" will go back and read the first
  43. unread message previous to the current. ^ will print the first
  44. message, $ will print the last.
  45. All can be followed by a message list and each message in
  46. that list will be printed (or piped to other commands).
  47. %%
  48.  
  49. %alts_help%
  50. usage: alts [hostnames]
  51. alts contains a list of hostnames on which you have an account
  52. Normally, when you respond to all recipients of mail, your
  53. account name will be listed and you send yourself mail. If you
  54. don't have metoo set, then your name will be removed from the
  55. mailing list if your login name is on the list and the host
  56. specified is in the alternates list.  `*' matches all hostnames
  57. and only the login name is tested.
  58. %%
  59.  
  60. %source_help%
  61. usage: source/saveopts [file]
  62. source/saveopts will load/save all variable settings, options,
  63. aliases, cmd's, ignored headers ... everything you can set,
  64. it loads or saves. The file named used follows these rules:
  65.  
  66. 1) if a filename is given, that file is used.
  67. 2) file described by the environment variable MAILRC
  68. 3) user's home directory: .mailrc
  69. %%
  70.  
  71. %general%
  72. This is the general help message. To get help on a specific
  73. command, try "command -?". Extended help is given by typing
  74. `help item' where item is one of:
  75.     path, msg_list, prompt, hdr_format.
  76. Help with msg_list is highly advisable!
  77.  
  78. Type "?" to get a list of available commands.  Try "? command"
  79. to get help on the particular command that you specify.
  80. %%
  81.  
  82. %path%
  83. Whenever "path" is specified, the following syntax is legal besides the
  84. normal path addressing scheme used by unix.
  85. ~[user]     -- the home directory of specified user (yours by default)
  86. %[user]     --/usr/spool/mail/login_name [user_name] (yours by default)
  87. +file       --the directory described by `set folder'; file is `file'
  88. %%
  89.  
  90. %msg_list%
  91. A "msg_list" references one or more messages.  The user specifies
  92. a group of messages according to a special syntax.
  93.  
  94. *      All messages.
  95. ^      The first message.
  96. $      The last message.
  97. .      The current message.
  98. N-M    A range of messages between N and M.
  99.  
  100. In the last case, N and M may be * ^ $ . or digits referencing
  101. explicit message numbers.  The range must be in ascending order.
  102.  
  103. You can also negate messages by placing the message list inside
  104. braces, `{' `}' -- thus, the expression "2-19 {11-14}" references
  105. messages 2 through 19 except for those between 11 through 14.
  106.  
  107. Commands can be "piped" to one another, because the return
  108. value of a command is a msg_list, not text.
  109. pick -f fred | lpr   will find all messages "from fred" and
  110. send them to the printer.
  111.  
  112. Commands dealing with more than one message process them in
  113. order -- not necessarily the order specified.  Thus, the command,
  114. save 1-5 9 7 6 file
  115. will save the messages in ascending order; not as specified.
  116. %%
  117.  
  118. %preserve_help%
  119. usage: preserve [msg_list]
  120. Preserve saves deleted or read messages in your mailbox.
  121. Without explicitely setting preserve, all mail that you
  122. read will be saved in ~/mbox (or set mbox).  If you set
  123. "hold", then this is equivalent to preserving each message
  124. as you read it.
  125. %%
  126.  
  127. %save_help%
  128. usage: save/write/copy [!] [msg_list] [filename]
  129.  
  130. If no filename is specified, ~/mbox (or set mbox) is used.
  131. Save and write will append msg if `file' already exists
  132. Specifying the `!' will overwrite file (e.g. erasing it first).
  133. To save messages to a filename beginning with a digit,
  134. escape the filename with a backslash (\)
  135. `write' will write message without the headers (msg body only).
  136. Save and write both mark messages for deletion unless "keepsave"
  137. is set.  Copy is identical to save except that messages are not
  138. marked for deletion (identical to having keepsave set).
  139. %%
  140.  
  141. %lpr%
  142. use: lpr [-] [-] [msg_list]
  143. -n         print body of message only (not headers)
  144. -h         print all headers with message body (default true)
  145. -       print on printer 
  146. %%
  147.  
  148. %respond_help%
  149. usage: replysender/replyall [msg_list] [mail_flags] [users]
  150. Replysender only replies to the sender and replyall responds
  151. to everyone on the To: and Cc: lines of the message.
  152.  
  153. The commands "repond", "reply", and "r" are identical to
  154. "replysender." The command, "R" is identical to "replyall."
  155.  
  156. If a message list is indicated, then each message on the list is
  157. replied to in the same manner.  All other arguments are passed
  158. to the mail command ('mail_flags' and 'users').
  159.  
  160. Type "mail -?" for information on legal mail flags.
  161. %%
  162.  
  163. %sort_help%
  164. usage: sort [-] [d | a | s | S | R]
  165.   d         sort according to date received
  166.   a         author (alphabetical)
  167.   s         subject ignoring Re: as part of the subject
  168.   R         subject (alphabetical)
  169.   S         by status
  170. The optional `-' flag will reverse the order of sorting
  171. By default (no arguments), sort sorts messages by status:
  172. New, unread messages are first, followed by preserved messages
  173. and finally the deleted messages are placed at the end
  174. %%
  175.  
  176. %pick%
  177. use: pick [-r msg_list] [-d [-][date] ] [-s|f|t]] [-x] [-i] [<pat>]
  178. Search for patterns within messages. Entire messages are searched
  179. for <pattern> unless -s, -f, or -t is specified.
  180. Only one of -s, -f, -t, and -d can be specified at once. No patterns with -d.
  181. -r msg_list  restrict the range of messages search to msg_list
  182. -d: print message headers on or after [`-' before] `date'
  183.      `date' is of the form: month/date/year
  184.       Omitted fields default to today's values. Examples:
  185.       pick -d 4/20     msgs on or after Apr 20, this year
  186.       pick -d -/2/85   on or before the 2nd, this month, 1985
  187.       pick -d /        finds today's messages only.
  188.     At least one `/' char must be used in date.
  189.     There is no strong date checking; 2/30 would be considered valid
  190. -s search for pattern in the "subject" headers only.
  191. -f search for pattern in the "from" field (author) only.
  192. -t search for pattern in the "to" field.
  193. -i ignore case of letters.
  194. -x return those messages which do NOT match.
  195. %%
  196.  
  197. %alias%
  198. options for alias:
  199. alias                           print all namelists
  200. alias name                      print namelist associated with name
  201. alias name namelist             set "name" to value of namelist.
  202. unalias namelist                unalias names in namelist
  203.  
  204. A "namelist" consists of one or more addresses. An address
  205. may be a name already set to another list, valid user, file
  206. or program.  Filenames must be full pathnames beginning with
  207. a '/' (or a ~ expanding to a home directory).  A "program"
  208. must start with a pipe and be encased in quotes:
  209.  
  210.     "|program_name"
  211.  
  212. The command, "expand", will print addresses (including sublists)
  213. associated with the given alias.
  214. %%
  215.  
  216. %from%
  217. With no arguments, from will print the current message's header.
  218. If given a message list, from will print the headers of those
  219. messages which are in the list.
  220.  
  221. The special arguments, `-' and `+' can be given to move the
  222. current message pointer to the previous or next message
  223. respectively while also printing that message's header.
  224.  
  225. If a message list was given in addition to `-' or `+', then
  226. the current message pointer will be set to the first or last
  227. message, respectively, in the message list given.
  228.  
  229. from - 10-30 {16}
  230. will print the headers of messages 10 through 30 except for
  231. message 16 and set the current message pointer to 10.
  232.  
  233. pick -f Dan | from +
  234. will print the headers of all messages that contain Dan in
  235. in the author's name and set the current message pointer to
  236. the last one of that kind in the list.
  237.  
  238. from +
  239. will print the header of the message after the current message
  240. and increment the current message pointer to the next message.
  241. %%
  242.  
  243. %own_hdrs%
  244. Here is where you set, unset or view your own message headers.
  245. These headers are included in all your outgoing mail.
  246.  
  247. options for my_hdrs:
  248. my_hdr                          all headers
  249. my_hdr header                   value associated with header
  250. my_hdr header: string           set header to string
  251. un_hdr header                   unset header
  252. %%
  253.  
  254. %fkey_help%
  255. fkey's are function key settings in Suntools (graphics) mode
  256. When run as a tool (-t on command line), choose the Options Item,
  257. and the function key menu option.
  258. %%
  259.  
  260. %func_help%
  261. cmd's are just like aliases in the c-shell.
  262. cmd                     view all commands
  263. cmd `command'           value associated with command
  264. cmd `command' "value"   set command to value
  265. uncmd `command'         unset command
  266.  
  267. If you want to reference history commands within a cmd,
  268. escape the ! with a backslant. For example:
  269.  
  270. mail> cmd r 'replysender \!* ; delete -t'
  271.  
  272. will reply using whatever arguments you will have given
  273. on the command line and then delete that message and
  274. then print the next message (-t argument to "delete").
  275. %%
  276.  
  277. %headers%
  278. usage: headers [+ | - | N] [-H:c]
  279. print out a screenful of headers.
  280. +  print the next screenful.
  281. -  print the previous screenful.
  282. N  (where N is a number) print a screenful starting at N.
  283. set show_deleted to list deleted messages.
  284. cmd h headers        look like UCB-Mail
  285. cmd H Headers        show deleted messages (or set show_deleted)
  286. cmd z headers +      `z' is next screenful
  287.  
  288. Arguments to the headers command include -H:c where `c' is one of
  289.     n    just print messages headers of NEW messages
  290.     d    deleted messages
  291.     u    unread messages
  292.     o    old messages
  293.     a    all messages (mostly for the command line argument -H:c)
  294.  
  295. piping to headers will print the headers of the "output" messages.
  296. %%
  297.  
  298. %hdr_format%
  299. set hdr_format="string" for changing the display of message headers.
  300. The string uses printf style formatting and follows these conventions:
  301.     %S  message Status.
  302.     %f  "from" field (author).
  303.     %a  the address of the author.
  304.     %n  the name of the author.
  305.     %t  "to" field (recipients).
  306.     %d  date of the message.
  307.     %s  subject of the message.
  308.     %l  number of lines in the message.
  309.     %c  number of characters (bytes) in the message.
  310.     \n  a newline
  311.     \t  a tab.
  312. A field specifier may be used.  Thus, %20f will print the first 20
  313. characters of the from line.  No matter what the formatting string,
  314. the message number followed by a '>' (if current message) is printed.
  315. %%
  316.  
  317. %folder_help%
  318. usage: folder [-N] [-r] [!] [ %[user] | # | & | file ]
  319. Change current folder.
  320. No arguments prints current folder.
  321. -N: No headers are displayed upon entering new folder (also command line).
  322. -r: read only mode (you won't be able to write changes to this folder).
  323. If `!' is specified, current folder is not updated.
  324. %[user] folder to /usr/spool/mail/[user] (you default)
  325. #  folder accessed previous to current folder
  326. &  "mbox" -- default is ~/mbox; or set mbox = "file"
  327. %%
  328.  
  329. %prompt%
  330. set prompt = "string"
  331. "string" is follows printf style formatting conventions:
  332.     \t, \n will be replaced by a tab or newline respectively.
  333.     %m     current message number
  334.     %t     total number of messages
  335.     %d     number of deleted messages
  336.     %u     number of unread messages
  337.     %n     number of new messages
  338.     %f     name of the current working folder
  339.     %T     current time
  340.     %D     day of the week
  341.     %Y     year
  342.     %M     month
  343.     %N     number of the day in the month (date)
  344. %%
  345.  
  346. %quit_help%
  347. usage: quit/exit",
  348. quit will update your mailbox; if new mail has come in, you will be
  349. told so and given an option whether to really quit or not.
  350. "exit" will leave mail not updating your mailbox nor check for new mail.
  351. %%
  352.  
  353. %ls%
  354. The ls command is exactly like the UNIX command, "ls."
  355. All arguments are the same.  The variable "lister" can
  356. be set to always default to the same arguments avoiding
  357. having to specify them all the time.  The "folders"
  358. command is nothing more than doing "ls $folder" from
  359. the Mush prompt.
  360. %%
  361.  
  362. %shell%
  363. usage: sh [command]
  364. If a "command" is given, that UNIX command will be executed
  365. under the Bourne shell. If no command is specified, then an
  366. interactive shell will be started. The environment variable
  367. SHELL or the local mail shell variable shell  describes the
  368. shell to invoke.  If none is set, then the default shell is
  369. defined by the system administrator (currently set to csh).
  370.  
  371. Users on systems with job control will probably have little
  372. use for the sh command.
  373. %%
  374.  
  375. %stop%
  376. The stop command sends a stop signal to the mail shell.
  377. It is equivalent to ^Z as it will stop the process.
  378. Since the shell never needs to be exited, the command
  379. 'q' may be aliased to "stop" and the shell may have,
  380. % alias 'mail   ?mush'
  381. which will bring mush into the foreground rather than
  382. having to invoke a new shell.  New mail will be read 
  383. into the shell automatically and much time and energy 
  384. is saved.
  385. %%
  386.  
  387. %curses%
  388. The curses-based interface for Mush does not require a graphics
  389. display, but does requires a terminal which can handle upline
  390. cursor movement capabilities.  All commands are one key-stroke
  391. commands and are executed instantaneously.  A list of curses
  392. commands is given by using the `?' key in curses mode.
  393. %%
  394.  
  395. %bind%
  396. Binding is done for the curses interface only.  It allows
  397. the user to bind keystrokes or key sequences to commands.
  398.  
  399. To bind keystrokes that are control characters, you must use
  400. the notation: "\CX" where "X" is in upper-case and it represents
  401. the control key you want to use. "\CN" would be control-N; "\n"
  402. is carriage return.  You may not bind keyboard generated signals;
  403. for most users, those key sequences are control-C and control-\.
  404. For users with job control, control-Z and control-Y are ignored.
  405. To reference the escape key, use the string, "\E".
  406.  
  407. The spacebar may not be bound since it is the only way to return
  408. to the main level from the "...continue..." prompt.
  409.  
  410. Trying to bind a key sequence which prefixes another sequence
  411. is an error and the user is warned that the longer binding will
  412. not work.
  413.  
  414. As always, -? will give help.
  415. %%
  416.  
  417. %msg_flags%
  418. usage: flags [msg_list [N O R D P U] ]
  419. This command displays the state of messages as seen by the internals
  420. of Mush.  This is not a documented command, so don't tell anyone.
  421. If a list is given (or piped), it will tell which bits of the message
  422. are set: New, Old, Read, Deleted, Preserved, or Unread.
  423. If any (one or more) of the optional bits are given, then it will set
  424. the appropriate bit in the list given.  As usual, if no list is given,
  425. then the current message is used (or set bits on a pipe).
  426. %%
  427.  
  428. %setenv%
  429. usage: setenv VARIABLE [value]
  430.  
  431. Variable names may be any string, but traditionally environment variables
  432. are all upper case.  If no "value" is specified, then the variable name
  433. will be set to an empty string.  If the value contains spaces, you should
  434. enclose the string in quotation marks.  Use printenv to print a list of
  435. all your environment variables.
  436. %%
  437.  
  438. %unsetenv%
  439. usage: unsetenv VARIABLE
  440.  
  441. You must specify one and only one variable to unset in your environment
  442. variable settings.  Use printenv to print a list of all your environment
  443. variables.
  444. %%
  445.