


     BBBBTTTTOOOOAAAA((((1111))))                 UUUUNNNNIIIIXXXX 5555....0000 ((((llllooooccccaaaallll))))                  BBBBTTTTOOOOAAAA((((1111))))



     NNNNAAAAMMMMEEEE
          btoa, atob, tarmail, untarmail - encode/decode binary to
          printable ASCII

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          bbbbttttooooaaaa
          aaaattttoooobbbb
          ttttaaaarrrrmmmmaaaaiiiillll who subject files ...
          uuuunnnnttttaaaarrrrmmmmaaaaiiiillll [ file ]

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          _B_t_o_a is a filter that reads anything from the standard
          input, and encodes it into printable ASCII on the standard
          output.  It also attaches a header and checksum information
          used by the reverse filter _a_t_o_b to find the start of the
          data and to check integrity.

          _A_t_o_b reads an encoded file, strips off any leading and
          trailing lines added by mailers, and recreates a copy of the
          original file on the standard output.  _A_t_o_b gives NO output
          (and exits with an error message) if its input is garbage or
          the checksums do not check.

          _T_a_r_m_a_i_l is a shell script that tar's up all the given files,
          pipes them through _c_o_m_p_r_e_s_s, _b_t_o_a, and mails them to the
          given person with the given subject phrase.  For example:

               tarmail ralph "here it is ralph" foo.c a.out

          Will package up files "foo.c" and "a.out" and mail them to
          "ralph" using subject "here it is ralph".  Notice the quotes
          on the subject.  They are necessary to make it one argument
          to the shell.

          _T_a_r_m_a_i_l with no args will print a short message reminding
          you what the required args are.  When the mail is received
          at the other end, that person should use mail to save the
          message in some temporary file name (say "xx").  Then saying
          "untarmail xx" will decode the message and untar it.
          _U_n_t_a_r_m_a_i_l can also be used as a filter.  By using _t_a_r_m_a_i_l,
          binary files and entire directory structures can be easily
          transmitted between machines.  Naturally, you should
          understand what tar itself does before you use _t_a_r_m_a_i_l.

          Other uses:

          compress < secrets | crypt | btoa | mail ralph

          will mail the encrypted contents of the file "secrets" to
          ralph.  If ralph knows the encryption key, he can decode it
          by saving the mail (say in "xx"), and then running:




     Page 1                                           (printed 1/1/86)






     BBBBTTTTOOOOAAAA((((1111))))                 UUUUNNNNIIIIXXXX 5555....0000 ((((llllooooccccaaaallll))))                  BBBBTTTTOOOOAAAA((((1111))))



          atob < xx | crypt | uncompress

          (crypt requests the key from the terminal, and the "secrets"
          come out on the terminal).

     AAAAUUUUTTTTHHHHOOOORRRR
          Paul Rutter (modified by Joe Orost)

     FFFFEEEEAAAATTTTUUUURRRREEEESSSS
          _B_t_o_a uses a compact base-85 encoding so that 4 bytes are
          encoded into 5 characters (file is expanded by 25%).  As a
          special case, 32-bit zero is encoded as one character.  This
          encoding produces less output than _u_u_e_n_c_o_d_e(1).

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          compress(1), crypt(1), uuencode(1), mail(1)







































     Page 2                                           (printed 1/1/86)



