home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / comms / metamail-2.3a / man / mailto.1 < prev    next >
Text File  |  1992-06-14  |  32KB  |  781 lines

  1.  
  2.  
  3.  
  4. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      mailto - Simple mutlimedia mail sending program
  10.  
  11. SYNOPSIS
  12.      mailto  [-a] [-c] [-s] [recipient name(s)]
  13.  
  14. DESCRIPTION
  15.      The _m_a_i_l_t_o program is a very simple user interface for send-
  16.      ing  multimedia  mail  in MIME format, the proposed standard
  17.      format for multimedia Internet mail.  It  is  modelled  very
  18.      heavily  on  the Berkeley "mail" program.  However it shares
  19.      NO code with that program -- it is a completely  new  imple-
  20.      mentation.
  21.  
  22.      As its name implies, _m_a_i_l_t_o is for  _s_e_n_d_i_n_g  mail,  not  for
  23.      reading it.  None of the mail-reading features of the Berke-
  24.      ley mail program have been implemented in _m_a_i_l_t_o.
  25.  
  26.      Users who are already familiar with using the Berkeley  mail
  27.      command  to  send  mail  should  skip the following section,
  28.      which explains things that are already familiar to you  from
  29.      that  program.   Subsequent  sections  focus on the enhanced
  30.      features that make  this  program  different  than  Berkeley
  31.      mail,  notably  the ability to include rich text, multimedia
  32.      objects, and text in non-ASCII languages such as  Hebrew  or
  33.      Russian.
  34.  
  35. BASIC USE
  36.      [THIS SECTION MAY BE SAFELY SKIPPED BY READERS ALREADY FAMI-
  37.      LIAR WITH THE BERKELEY MAIL PROGRAM.]
  38.  
  39.      The basic operation of mailto is very simple.  If  you  just
  40.      type  "mailto"  you  will  be asked for a list of mail reci-
  41.      pients ("To:") a mail subject ("Subject:")  and  possibly  a
  42.      list  of  people  to  receive  a carbon copy of your message
  43.      ("CC:").  Alternately, you can specify all of  these  things
  44.      on the command line.  The "-s" option be used to specify the
  45.      subject, and the "-c" option can be used to specify the car-
  46.      bon  copy  address.   All  other  command line arguments are
  47.      added to the To list.  Thus the following command sends mail
  48.      to  nsb and jxr, with a subject of "Test message" and a car-
  49.      bon copy to kraut:
  50.  
  51.      mailto nsb jxr -s "Test message" -c kraut
  52.  
  53.      For the convenience of users accustomed to mail  readers  in
  54.      which names are separated by commas, you may optionally fol-
  55.      low each address with a comma, but this is not required.
  56.  
  57.      After these preliminaries are taken care of, you  just  type
  58.      in  the  contents of your message.  Everything you type will
  59.      be included in your message UNLESS  you  type  a  line  that
  60.  
  61.  
  62.  
  63. Bellcore Prototype   Last change: Release 1                     1
  64.  
  65.  
  66.  
  67.  
  68. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  69.  
  70.  
  71.  
  72.      begins with the "~" (tilde) character.  Such a line is known
  73.      as a TILDE ESCAPE, and can be used to give special  commands
  74.      to the mailto program, as will be discussed shortly.
  75.  
  76.      When you are done composing your message, you can  cause  it
  77.      to  be  sent to the intended recipients by simply typing the
  78.      end-of-file character, typically  CONTROL-D.   Depending  on
  79.      your  option settings, you may also be able to send the mail
  80.      by typing "." alone on a line, or by typing "~.".
  81.  
  82.      That's all that you really need to know  in  order  to  send
  83.      mail  with  mailto.  However, in order to use it to its ful-
  84.      lest, you will also want to learn about some  of  the  tilde
  85.      escapes.   In this section, we describe the most basic ones,
  86.      which the mailto program shares in common with the  Berkeley
  87.      mail program.   In subsequent sections, we will describe the
  88.      more interesting tilde escapes which are unique to _m_a_i_l_t_o.
  89.  
  90.      If anything in this section seems cryptic, it might be help-
  91.      ful  to  consult the man page for the mail(1) program, since
  92.      the user interfaces are very similar.
  93.  
  94.      Any line that starts with a tilde is a  tilde  escape.   The
  95.      second  character  on  the  line -- the one that follows the
  96.      tilde -- is then interpreted as a  special  command  to  the
  97.      mailto  program.   The  simple tilde escapes that mailto and
  98.      mail have in common are as follows:
  99.  
  100.          ~? Show help on tilde escapes
  101.          ~! Shell escape (e.g. "~! ls")
  102.          ~~ Enter text line starting with a tilde.  The tilde
  103.              "quotes" itself, allowing you to input a line of
  104.              text that starts with a tilde.
  105.          ~. Send the mail and exit
  106.          ~c Add to CC list (e.g. "~c nsb")
  107.          ~d Read in the contents of "~/dead.letter"
  108.              (or a named file, "~d filename")
  109.          ~e Edit the message being composed using the
  110.              editor named by the EDITOR environment variable.
  111.          ~h Edit the To, Subject, and CC headers
  112.          ~p Print out the message so far
  113.          ~q Quit, copying the draft to ~/dead.letter
  114.          ~r Read the named text file into the message
  115.          ~s Reset the subject header
  116.          ~t Add to the To list
  117.          ~v Edit the message being composed using the
  118.              editor named by the VISUAL environment variable
  119.          ~w Write the message being composed to a named file
  120.              (e.g. "~w filename")
  121.  
  122.      You can also control the behavior of the mailto program to a
  123.      limited  extent  by  putting commands in a file in your home
  124.  
  125.  
  126.  
  127. Bellcore Prototype   Last change: Release 1                     2
  128.  
  129.  
  130.  
  131.  
  132. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  133.  
  134.  
  135.  
  136.      directory called  ".mailrc".   These  commands  include  the
  137.      ability  to define aliases for commonly used mail addresses.
  138.      See the section entitled "SUMMARY OF  MAILRC  FUNCTIONALITY"
  139.      later in this man page.
  140.  
  141.  
  142. ENHANCED FEATURES NOT FOUND IN BERKELEY
  143.      The main difference between mail  and  mailto  is  that  the
  144.      latter can be used to generate enhanced mail in MIME format,
  145.      the proposed standard format for Internet  multimedia  mail.
  146.      However,  mailto  is intended to be a _v_e_r_y _s_i_m_p_l_e multimedia
  147.      mail generator.  There are, accordingly, lots of  things  it
  148.      can't  do.  However,  it  has the virtues of being extremely
  149.      simple, extremely similar to a  well-known  program  (mail),
  150.      and  highly configurable, using the "mailcap" file mechanism
  151.      to be described below.
  152.  
  153.      Basically, mailto can include the following things in mail:
  154.  
  155.      1.    Simple   formatted   text,   using   the   MIME   type
  156.      "text/richtext".   This  allows  you to add emphasis to your
  157.      message using underlining, bold text, italic  (diaplsyed  as
  158.      reverse video), centering, and the like.
  159.  
  160.      2.  Non-text data.  Metamail can include  pictures,  sounds,
  161.      and  other  non-textual  data in the middle of any mail mes-
  162.      sage.  The mailcap configuration  mechanism  can  even  make
  163.      this  process  reasonably  user-friendly, but a knowledgable
  164.      user can include non-textual data even in the absence  of  a
  165.      proper mailcap entry.
  166.  
  167.      3.  Text including non-ASCII characters, such as  Hebrew  or
  168.      Russian.   Currently, mailto directly supports only the ISO-
  169.      8859-* family of character sets, which means  that  it  does
  170.      not  meet the needs of Asian users, in particular.  However,
  171.      languages that can not be expressed in the  ISO-8859  family
  172.      can  still  be included in the same way non-text data can be
  173.      included.
  174.  
  175.      These three mechanisms will be discussed separately  in  the
  176.      three sections that follow.
  177.  
  178.  
  179. ENRICHED TEXT
  180.      Mailto lets you modify the formatting of your text in a  few
  181.      simple  but  useful ways.  As with everything else, this can
  182.      be done using simple tilde escapes, as described by the fol-
  183.      lowing list:
  184.  
  185.          ~b Toggle bold mode (turn bold on or off)
  186.          ~i Toggle italic mode (turn italic/reverse-video  on  or
  187.      off)
  188.  
  189.  
  190.  
  191. Bellcore Prototype   Last change: Release 1                     3
  192.  
  193.  
  194.  
  195.  
  196. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  197.  
  198.  
  199.  
  200.          ~j Alter Justification, in particular:
  201.              ~jc Center subsequent text
  202.              ~jl Make subsequent text flush-left
  203.              ~jr Make subsequent text flush-right
  204.          ~k Toggles whether or not a "blind" copy of the  message
  205.      will be kept.
  206.          ~n Force newline (hard line break)
  207.          ~u Toggle underline mode (turn underline on or off)
  208.          ~> Indent Left Margin
  209.          ~< Unindent Left Margin
  210.          ~<R Indent Right Margin
  211.          ~>R Unindent Right Margin
  212.          ~Q Toggle quotation (excerpt) mode
  213.          ~z Add the contents of ~/.signature as a TEXT signature
  214.  
  215.      Some of these  may  require  a  little  explanation.   Bold,
  216.      italic,  and  underline  modes are toggles in the sense that
  217.      alternate uses of ~b, ~i,  and  ~u  turn  bold,  italic,  or
  218.      underline  mode  on or off.  The justification, on the other
  219.      hand, simply switches between the three justification modes,
  220.      centering, left justified, and right justified.
  221.  
  222.      To understand the "~n" command, it must first be noted  that
  223.      rich  text  is  automatically  justified,  so  that the line
  224.      breaks you type have no more significance than space charac-
  225.      ters.   This  allows the text to be displayed more nicely on
  226.      variable-width windows.  (An exception is when you type mul-
  227.      tiple  blank  lines,  in  which  case the line breaks become
  228.      real.)  The "~n" command may be used to foce a  line  break.
  229.      Remember  that  you can see what your mail looks like at any
  230.      time using the "~p" command.
  231.  
  232.      Quotation mode, as toggled by "~Q", is useful for formatting
  233.      excerpts.   If,  for  example,  you  turn on quotation mode,
  234.      insert a file, and then turn off quotation  mode,  the  con-
  235.      tents  of  the  file  will  be  considered an excerpt.  Most
  236.      viewers will show excerpts as indented and/or preceded  with
  237.      "> " to set them apart from the rest of the text.
  238.  
  239.      Finally, "~z" simply includes your text signature file,  but
  240.      formats  it  as  a  "signature", which many richtext viewers
  241.      will display in a smaller font or otherwise set it off  from
  242.      the rest of your message.
  243.  
  244.  
  245. MULTIMEDIA OBJECT INCLUSION
  246.      The basic command for  inserting  multimedia  objects  in  a
  247.      mailto  message  is  "~*".   When you type this command, you
  248.      will be give a list of options that will vary  depending  on
  249.      your  configuration.   (How  to  configure this list will be
  250.      described below.)   For example,  it  might  look  something
  251.      like this:
  252.  
  253.  
  254.  
  255. Bellcore Prototype   Last change: Release 1                     4
  256.  
  257.  
  258.  
  259.  
  260. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  261.  
  262.  
  263.  
  264.       Please choose which kind of data you wish to insert:
  265.  
  266.       0: Raw data from a file, with you specifying  the  content-
  267.      type by hand.
  268.       1: An audio clip
  269.       2: Data in 'application/andrew-inset' format
  270.       3: An X11 window image dump
  271.       4: An interactive mail-based survey
  272.  
  273.      Of these options, only the first one, option 0, will  appear
  274.      at all sites and in all configurations.
  275.  
  276.      If you choose option 0, you will be asked for the name of  a
  277.      file   containing  non-textual  data  and  for  the  correct
  278.      "content-type" name that describes that type of  data.   The
  279.      content-type  values  are  defined by the MIME standard, and
  280.      are typically type/subtype pairs that describe  the  general
  281.      data  type  and its specific format.  For example, a picture
  282.      in GIF format has a  content-type  of  "image/gif",  and  an
  283.      audio  clip  in  basic  u-law  format  has a content-type of
  284.      "audio/basic".  For complete documentation on  the  content-
  285.      type field, consult the MIME proposed standard.
  286.  
  287.      More commonly, however, at a well-configured site  you  will
  288.      not  need to know anything about content-types,  because you
  289.      will choose one of the non-zero options.  In these cases,  a
  290.      program  will run that will allow you to compose data of the
  291.      given type.  The user interface to this  process  cannot  be
  292.      described   here,  because  it  will  necessarily  be  site-
  293.      dependent, but such programs are generally  designed  to  be
  294.      easy for novice users.
  295.  
  296.      An extra mailto command that is useful  for  including  mul-
  297.      timedia  objects  is  the "~Z" command.  This can be used to
  298.      include a multimedia signature  file.   The  signature  file
  299.      should  be  a complete MIME-format file, with a Content-type
  300.      header field at the top.
  301.  
  302.  
  303. CONFIGURATION VIA MAILCAP FILES
  304.      NOTE:  This section is intended for those who are interested
  305.      in  extending  the  behavior of mailto to easily include new
  306.      types  of  mail.   Users  at  well-administered  sites   are
  307.      unlikely to need to do this very often, as the site adminis-
  308.      trator will have done it for you.
  309.  
  310.      For a more complete explanation of  the  mailcap  mechanism,
  311.      consult  the  man  page  for metamail(1).  Here we summarize
  312.      only those aspects of mailcap files  that  are  relevant  to
  313.      configuring the mailto program.
  314.  
  315.      First of all, mailto uses a search path to find the  mailcap
  316.  
  317.  
  318.  
  319. Bellcore Prototype   Last change: Release 1                     5
  320.  
  321.  
  322.  
  323.  
  324. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  325.  
  326.  
  327.  
  328.      file(s)  to consult.  Unlike many path searches, mailto will
  329.      always read _a_l_l the mailcap files on its path.  That is,  it
  330.      will  keep  reading mailcap files until it runs out of them,
  331.      collecting mailcap entries.   The  default  search  path  is
  332.      equivalent to
  333.  
  334.      $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
  335.  
  336.      It  can  be  overridden  by setting the MAILCAPS environment
  337.      variable.  Note: mailto does not actually interpret environ-
  338.      ment  variables such as $HOME or the "~" syntax in this path
  339.      search.
  340.  
  341.      The syntax of a mailcap file is quite simple, at least  com-
  342.      pared  to termcap files.  Any line that starts with "#" is a
  343.      comment.  Blank lines are  ignored.   Otherwise,  each  line
  344.      defines  a  single  mailcap entry for a single content type.
  345.      Long lines may be continued by ending them with a  backslash
  346.      character, \.
  347.  
  348.      Each individual mailcap entry  consists  of  a  content-type
  349.      specification,  a  command  to be executed on reading, typi-
  350.      cally by the metamail(1) program, and (possibly)  a  set  of
  351.      optional   "flag"   values.   The  mailto  program  is  only
  352.      interested in mailcap entries that have either  or  both  of
  353.      the optional "compose" or "edit" flags.  The compose flag is
  354.      used to tell mailto about a program that can be used to com-
  355.      pose  data  in  the given format, while the edit flag can be
  356.      used to tell mailto how to edit data in  the  given  format.
  357.      Thus,  for example the following mailcap entry describes how
  358.      to compose and edit audio data:
  359.  
  360.      audio/basic;   showaudio   %s;   compose=audiocompose    %s;
  361.      edit=audiocompose %s; label="An audio clip"
  362.  
  363.      The optional "label" field is used in composing  the  prompt
  364.      that  mailto  prints  in  response to the "~*" command.  The
  365.      compose program is used to compose data in this format,  and
  366.      the  edit  program  is used to edit data in this format.  In
  367.      each of these, any occurrence of "%s" will  be  replaced  by
  368.      the  name of the file to be composed or edited.  If there is
  369.      no "%s" in the compose command, it is equivalent  to  having
  370.      "> %s" appended to the end of the compose command.
  371.  
  372.      Note that the order in which things appear in mailcap  files
  373.      is  highly  critical.   The  metamail program uses the first
  374.      matching mailcap entry to  _d_i_s_p_l_a_y  data.   Mailto,  on  the
  375.      other hand, offers the user an alternative for _e_v_e_r_y mailcap
  376.      entry that has a "compose" command.  However, it  should  be
  377.      noted that mailto will use the content-type from the mailcap
  378.      entry in composing content-type headers.  Therefore, compose
  379.      and  edit  commands  should  NOT  be  specified  on wildcard
  380.  
  381.  
  382.  
  383. Bellcore Prototype   Last change: Release 1                     6
  384.  
  385.  
  386.  
  387.  
  388. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  389.  
  390.  
  391.  
  392.      mailcap entries.  If you have a program can display lots  of
  393.      different  subtypes,  you  should  probably  make a separate
  394.      entry for displaying and  for  composing  the  basic  types,
  395.      e.g.:
  396.  
  397.       image/*; showpicture %s
  398.       image/gif; showpicture %s; compose="xwd -frame | xwdtoppm |
  399.      ppmtogif"; label="An X11 window image dump in GIF format"
  400.       image/x-xwd;   showpicture   %s;   compose="xwd    -frame";
  401.      label="An X11 window image dump in XWD format"
  402.  
  403.      For more information on the mailcap file format and  syntax,
  404.      see the metamail(1) man entry.
  405.  
  406.  
  407. TEXT IN NON-ASCII LANGUAGES
  408.      Mailto provides rudimentary support for the  composition  of
  409.      mail  in  non-ASCII  character sets.  Currently, it supports
  410.      the ISO-8859 family of character sets.  These character sets
  411.      all have the nice property that they are proper supersets of
  412.      ASCII.  That is, all ASCII characters are identical  in  all
  413.      of  the  ISO-8859 character sets.  When you use one of these
  414.      character sets, then, you can still type all  ASCII  charac-
  415.      ters as normal.
  416.  
  417.      By default, however, mailto assumes that you are  using  the
  418.      US-ASCII  character set, and will not allow the inclusion of
  419.      non-ASCII characters.  To tell mailto that you are  using  a
  420.      terminal  or  terminal  window that supports one of the ISO-
  421.      8859 character sets, you  can  use  the  -a  switch  or  the
  422.      MM_CHARSET   environment   variable.   For  example,  typing
  423.      "mailto -a  ISO-8859-8"  tells  mailto  that  your  terminal
  424.      understands  ISO-8859-8,  the  ASCII+Hebrew  character  set.
  425.      This is what you would use if you were on  a  terminal  that
  426.      actually  understood  this character set.  If you're using a
  427.      window system such as X11, you'll also need to be sure  that
  428.      your terminal emulator is using the right font.  Thus if you
  429.      have a font named "heb6x13",  you  can  start  a  compatible
  430.      xterm and mailto to send mixed English/Hebrew mail using the
  431.      command "xterm -fn heb6x13 -e  mailto  -a  iso-8859-8".   In
  432.      general,  having an installed font with the same name as the
  433.      character set is a good idea, particularly if  you're  using
  434.      shownonascii(1).
  435.  
  436.      Once you've got mailto started up using the right  character
  437.      sets, there are two ways to enter non-ASCII characters.  The
  438.      first, and by far the easiest, is to use the keys as marked,
  439.      if  you're  on  a  physical  terminal that uses one of these
  440.      character sets.  However, if you're using a  standard  ASCII
  441.      keyboard,  as  most X11 users do, you need some other way to
  442.      enter non-ASCII characters.  To permit this, mailto  has  an
  443.      "eight   bit  mode".   In  eight  bit  mode,  all  printable
  444.  
  445.  
  446.  
  447. Bellcore Prototype   Last change: Release 1                     7
  448.  
  449.  
  450.  
  451.  
  452. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  453.  
  454.  
  455.  
  456.      characters that you type have the eighth bit turned on, thus
  457.      turning them into non-ASCII characters.  You can enter eight
  458.      bit mode using the tilde escape "~+", and you can  leave  it
  459.      using  "~-".   To  see  the  mapping  from  your keyboard to
  460.      eight-bit-mode characters, just give the command "~?+".
  461.  
  462.      Finally, certain languages that  can  be  expressed  in  the
  463.      ISO-8859 family, notably Hebrew and Arabic, go from right to
  464.      left rather than left to right.  To ease the composition  of
  465.      text  in these languages, mailto has a "right to left" mode.
  466.      This mode is toggled on or off using the "~^" command.   For
  467.      added convenience, the right-to-left mode and eight-bit-mode
  468.      can be toggled on and off together using a  single  command,
  469.      "~S" (Semitic mode).
  470.  
  471.  
  472. COMPLETE SUMMARY OF TILDE ESCAPES
  473.      For easy reference, here is a complete summary of the  tilde
  474.      escapes in the mailto program:
  475.  
  476.          ~? Show help on tilde escapes
  477.          ~! Shell escape
  478.          ~~ Enter text line starting with a tilde
  479.          ~. Send the mail and exit
  480.          ~/ Set maximum size before message is split into
  481.              multiple parts
  482.          ~?+ Show help on extended (eight-bit) characters
  483.          ~> Indent Left Margin
  484.          ~< Unindent Left Margin
  485.          ~<R Indent Right Margin
  486.          ~>R Unindent Right Margin
  487.          ~+ Enter 8-bit mode for non-ASCII characters
  488.          ~- Leave 8-bit mode (return to ASCII)
  489.          ~^ Toggle
  490.          ~* Add non-text data (pictures, sounds, etc.) as a new
  491.              MIME part (try it!)
  492.          ~b Toggle bold mode
  493.          ~c Add to CC list
  494.          ~d Read from dead.letter (or named file, ~d filename)
  495.          ~e Edit message being composed
  496.          ~h Edit the headers
  497.          ~i Toggle italic mode
  498.          ~j Alter Justification (~jc = center, ~jl = flushleft,
  499.              ~jr = flushright.)
  500.          ~n Force newline (hard line break)
  501.          ~p Print out the message so far
  502.          ~q Quit, copying to dead.letter
  503.          ~Q Toggle quotation (excerpt) mode
  504.          ~r Read the named text file into the message
  505.          ~s Reset the subject
  506.          ~S Toggle Semitic mode (right-to-left AND eight-bit)
  507.          ~t Add to To list
  508.  
  509.  
  510.  
  511. Bellcore Prototype   Last change: Release 1                     8
  512.  
  513.  
  514.  
  515.  
  516. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  517.  
  518.  
  519.  
  520.          ~u Toggle underline mode
  521.          ~v Edit using VISUAL editor
  522.          ~w Write message to named file
  523.          ~z Add the contents of ~/.signature as a TEXT signature.
  524.          ~Z Add the contents of ~/.SIGNATURE as a NON-TEXT
  525.              (MIME-format) signature.
  526.  
  527.  
  528. SUMMARY OF MAILRC FUNCTIONALITY
  529.      The .mailrc file in your home directory is used to customize
  530.      the  Berkeley mail program.  The mailto program is sensitive
  531.      to some, though not all, of these customizations.   In  par-
  532.      ticular,  you  can use the .mailrc file to set the following
  533.      variables (via "set variablename" or  "unset  variablename")
  534.      that affect mailto's behavior:
  535.  
  536.         askcc -- controls whether or not you are prompted  for  a
  537.      CC list.
  538.         dot -- controls whether or not a period alone on a line
  539.              should be interpreted as terminating your mail
  540.         ignore -- controls whether or not interrupts are ignored
  541.         verbose  --  controls  the  verbosity  of   output   from
  542.      /usr/lib/sendmail
  543.         quiet -- controls the verbosity of output from the mailto
  544.      program.
  545.         keepblind -- controls whether or not a  'blind'  copy  of
  546.      the mail is kept.
  547.  
  548.      The other functionality implemented by the .mailrc  file  is
  549.      personal  mail  aliases.   If  you have a friend with a long
  550.      horrible mail address, you can put a line  in  your  .mailrc
  551.      file  that  allows  you  to  refer to him by a more friendly
  552.      name:
  553.  
  554.         alias    boygeorge      George.Herbert.Walker.Bush%white-
  555.      house.uucp@nsf-relay.com
  556.  
  557.      Mailto implements the alias feature in a manner that is com-
  558.      patible  with Berkeley mail.  Moreover, it also knows how to
  559.      read ".AMS_aliases" files as used by CMU's Andrew system, so
  560.      that  Andrew  users  do  not  need to maintain two different
  561.      alias files in order to use both Andrew and mailto.
  562.  
  563.  
  564. OTHER KNOWN DIFFERENCES FROM BERKELEY MAIL
  565.      Although this program was modelled  on  Berkeley  mail,  its
  566.      user  interface  is  inevitably not identical with that pro-
  567.      gram.   What follows is a list of major  known  differences,
  568.      beyond the multimedia enhancements, that might confuse users
  569.      accustomed to the Berkeley mail program:
  570.  
  571.      _A_d_d_r_e_s_s  _s_e_p_a_r_a_t_o_r_s:  In  Berkeley   mail,   addresses   are
  572.  
  573.  
  574.  
  575. Bellcore Prototype   Last change: Release 1                     9
  576.  
  577.  
  578.  
  579.  
  580. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  581.  
  582.  
  583.  
  584.      separated  by  spaces,  which  is an abomination to the mail
  585.      gods.   For  backward  compatibility,  this  also  works  in
  586.      mailto, but right-thinking people may use commas instead.
  587.  
  588.      _N_e_w_l_i_n_e _s_e_m_a_n_t_i_c_s: Unlike Berkeley mail,  in  mailto  single
  589.      line  breaks  are  generally regarded as "soft".  This means
  590.      that your message may be filled and/or justified when it  is
  591.      seen  by  the  recipient.  Explicit line breaks can be added
  592.      using the "~n" command.  Multiple  consecutive  line  breaks
  593.      typed  by  the  user  WILL  have the desired effect.  Alter-
  594.      nately, any line that starts with a space or  tab  character
  595.      will be preceded by a line break.
  596.  
  597.      _I_n_c_l_u_s_i_o_n _o_f _d_e_a_d._l_e_t_t_e_r _f_i_l_e_s: The "~d" command is used  to
  598.      include  the  contents  of  the  file  "dead.letter"  in the
  599.      current message.  Mailto's implementation  of  this  feature
  600.      differs  from  Mail's  in  two  ways:  First, the message is
  601.      included as an encapsulated message  rather  than  as  plain
  602.      text.   While  this may sometimes be inconvenient, it allows
  603.      multimedia dead.letter  files   to  be  retrieved  properly.
  604.      Second,  the  "~d"  command  in mailto can take an argument,
  605.      which is the name of a file to use instead  of  the  default
  606.      "~/dead.letter".
  607.  
  608.      _I_n_c_o_m_p_a_t_i_b_i_l_i_t_i_e_s _w_i_t_h _S_u_n'_s _v_e_r_s_i_o_n: Sun Microsystems  (and
  609.      no  doubt  many  other  vendors with whom the author is less
  610.      familiar) have enhanced the Berkeley mail command in several
  611.      ways,  a  few  of  which are not compatible with mailto.  In
  612.      particular, the "~b," "~i,  and "~<" commands, at least, are
  613.      different in mailto than in Sun's version.
  614.  
  615.      _P_o_t_e_n_t_i_a_l _f_o_r _f_a_i_l_u_r_e _i_n ~_p: In the standard  Berkeley  mail
  616.      program,  it is inconceivable that "~p" would ever fail.  In
  617.      mailto, ~p works by calling  the  metamail(1)  program.   If
  618.      metamail is not on the user's search path, ~p will not work.
  619.  
  620.      _E_x_t_e_n_d_e_d _a_l_i_a_s _s_e_a_r_c_h_i_n_g: The mailto program reads both  the
  621.      aliases  in  the  .mailrc  file,  as does Berkeley mail, and
  622.      those in the .AMS_aliases file, as used by CMU's Andrew Mes-
  623.      sage System.
  624.  
  625.      _A_l_t_e_r_e_d _e_d_i_t_i_n_g _b_e_h_a_v_i_o_r: The ~e and ~v commands, which  are
  626.      used  to  edit  the message being composed, will behave dif-
  627.      ferently in mailto if the mail includes  non-text  portions.
  628.      In  such  cases,  each  part  will  be edited separately, in
  629.      sequence, which makes it impossble for the user to  acciden-
  630.      tally  mess  up the inter-part boundaries.  Moreover, if the
  631.      mailcap entry for a  given  data  type  includes  an  "edit"
  632.      field, the user will be given the choice of editing with the
  633.      program named there or editing with his usual (text) editor.
  634.      In  most cases, this will be a choice between using a struc-
  635.      tured editor or editing the raw data stream.
  636.  
  637.  
  638.  
  639. Bellcore Prototype   Last change: Release 1                    10
  640.  
  641.  
  642.  
  643.  
  644. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  645.  
  646.  
  647.  
  648.      _A_l_t_e_r_e_d _b_e_h_a_v_i_o_r _f_o_r _l_a_r_g_e _m_e_s_s_a_g_e_s:  Mailto  delivers  your
  649.      message  using  the  splitmail(1)  program.  This is done so
  650.      that large messages will be split  into  a  set  of  smaller
  651.      parts  in  a  MIME-compliant  way,  so that MIME readers can
  652.      automatically reassemble them upon receipt.  By default  all
  653.      messages  over  100Kbytes  are  split,  but this can be con-
  654.      trolled using the SPLITSIZE environment variable.   See  the
  655.      splitmail(1) man page for more information.
  656.  
  657.      _N_e_w -_r _c_o_m_m_a_n_d-_l_i_n_e _o_p_t_i_o_n The -r comand-line option is  not
  658.      found in standard Berkeley mail.
  659.  
  660.  
  661. SUMMARY OF OPTIONS
  662.      -a <charset> -- specifies an alternate character set in use.
  663.      This  had better be the one your terminal is actually using.
  664.      Currently it must be in the iso-8859 character set family.
  665.  
  666.      -c name -- specifies a name for the CC field.  If  you  want
  667.      to  include  multiple values, you'll need to quote the name,
  668.      as in -c "name1, name2, name3"
  669.  
  670.      -r message-id -- specifies a message-id to be used  in  con-
  671.      structing an In-Reply-To header field.
  672.  
  673.      -s subject -- specifies the subject for  the  mail.   If  it
  674.      includes  spaces,  it  will  need to be surrounded by double
  675.      quotes as well.
  676.  
  677.  
  678. ENVIRONMENT VARIABLES
  679.      MAILCAPS
  680.              This variable can be used to  override  the  default
  681.              path search for mailcap files.
  682.  
  683.      PAGER   If set, this variable overrides "more" as  the  name
  684.              of  the  program  to  run to paginate output from an
  685.              interpreter, when pagination has been requested.
  686.  
  687.      MM_CHARSET
  688.              This variable can be used instead of the  -a  switch
  689.              to  tell mailto that your terminal (or terminal emu-
  690.              lator) implements a character  set  other  than  US-
  691.              ASCII.
  692.  
  693.      TERM    This variable tells mailto what your  terminal  type
  694.              is.  This is used in conjunction with the termcap(5)
  695.              facility to figure out how to  do  bold  characters,
  696.              reverse  video,  underlining, or other neat stuff on
  697.              your terminal.
  698.  
  699.      EDITOR  This variable names the editor mailto will use  when
  700.  
  701.  
  702.  
  703. Bellcore Prototype   Last change: Release 1                    11
  704.  
  705.  
  706.  
  707.  
  708. MAILTO(1)                USER COMMANDS                  MAILTO(1)
  709.  
  710.  
  711.  
  712.              you  ask  (with ~e) to edit the message you are com-
  713.              posing.
  714.  
  715.      VISUAL  This variable names the visual  editor  mailto  will
  716.              use  when  you ask (with ~v) to edit the message you
  717.              are composing.
  718.  
  719. SEE ALSO
  720.      metamail(1), mmencode(1), richtext(1), audiocompose(1), get-
  721.      filename(1), mailto-hebrew(1), splitmail(1), shownonasci(1)
  722.  
  723. BUGS
  724.      Currently, fgets is used to get  each  line  of  input.   An
  725.      intelligent  replacement,  in which the effects of right-to-
  726.      left   mode,   eight-bit-mode,   and   the    margin-    and
  727.      justification-related  commands  were  immediately  evident,
  728.      would be a big improvement.
  729.  
  730.      Although this program was modelled  on  Berkeley  mail,  its
  731.      user  interface  is  inevitably not identical with that pro-
  732.      gram.  The section entitled "OTHER  KNOWN  DIFFERENCES  FROM
  733.      BERKELEY  MAIL," above, might be considered by some to be an
  734.      extension of this "BUGS" section.
  735.  
  736.  
  737. COPYRIGHT
  738.      Copyright  (c)  1992  Bell  Communications  Research,   Inc.
  739.      (Bellcore)
  740.  
  741.      Permission  to  use,  copy,  modify,  and  distribute   this
  742.      material  for any purpose and without fee is hereby granted,
  743.      provided that the above copyright notice and this permission
  744.      notice  appear  in all copies, and that the name of Bellcore
  745.      not be used in advertising or publicity pertaining  to  this
  746.      material  without  the specific, prior written permission of
  747.      an authorized representative of Bellcore.  BELLCORE MAKES NO
  748.      REPRESENTATIONS  ABOUT  THE  ACCURACY OR SUITABILITY OF THIS
  749.      MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS  IS",  WITHOUT
  750.      ANY EXPRESS OR IMPLIED WARRANTIES.
  751.  
  752. AUTHOR
  753.      Nathaniel S. Borenstein
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765. Bellcore Prototype   Last change: Release 1                    12
  766.  
  767.  
  768.  
  769.