home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / ka9q / pcelm321.zip / PCELM.MAN < prev    next >
Text File  |  1994-01-02  |  64KB  |  1,456 lines

  1. PCElm 3.2 - Installation and User Manual
  2.  
  3.  
  4. 0) Files
  5. 1) About PCElm and where and how to get it
  6. 2) History and Version Numbers
  7. 3) Installation
  8.     3.1 Configuration File
  9.     3.2 Environment Variables
  10.     3.3 Other Files
  11.     3.4 Starting PCElm
  12. 4) Using PCElm
  13. 5) Troubleshooting
  14. 6) Notes for interfacing PCElm with UUCP programs
  15. 7) Notes for interfacing PCElm with WAFFLE
  16. 8) Notes for interfacing PCElm with UNIX-Servers
  17. 9) Notes on Multimedia Mail
  18. 10) Languages
  19. 11) Credits
  20. 12) The Future
  21.  
  22.  
  23. 0) Files
  24.     This package contains the following files:
  25.  
  26.     Name            Description
  27.     ----------------------------------------------------------------
  28.     !README         A quick overview of what PCElm is all about
  29.     ALIAS           Example alias file
  30.     MAILCAP         An example mailcap file for MIME
  31.     DEMOMMDF        An example mailbox file with MIME-mails (MMDF format)
  32.     DEMO            An example mailbox file with MIME-mails (not MMDF format)
  33.     MARVIN   SIG    Example signature file
  34.     PCELM    RC     Example PCElm configuration file
  35.     PCELM    DEU    PCElm message file, german language (Deutsch)
  36.     PCELM    ENG    PCElm message file, english language
  37.     PCELM    ESP    PCElm message file, spanish language (Espanol)
  38.     PCELM    NED    PCElm message file, dutch language (Nederlands)
  39.     PCELM    MAN    PCElm installation and user manual
  40.     PCELM    EXE    PCElm executable
  41.     SHOWPART BAT    A batch file to display multipart MIME mails
  42.  
  43.  
  44. 1) About PCElm and where and how to get it
  45.     PCElm is a mail user agent (UA) with a user interface closely
  46.     modeled after the USENET ELM. To avoid confusion, we would like to
  47.     mention that PCElm and USENET ELM are *not* related.
  48.  
  49.     PCElm is intended to be used as a drop-in replacement for BM when
  50.     using the KA9Q NOS package or as a replacement for mail.exe when
  51.     using UUPC. It can also be used for other mailsystems, as all relevant
  52.     things for compatibility with MTA's (Message Transfer Agents) are
  53.     configurable.
  54.  
  55.     Hilights:
  56.     PCElm has a nice user interface, with easy to learn and easy to use
  57.     commands. UN*X users will already be familiar with the more important
  58.     commands. It can be made to work with just about every mail system
  59.     there is for PC's, as PCElm makes no assumptions at all about the
  60.     underlying network software. Finally, PCElm is multilingual; you can
  61.     make all messages appear in your favorite language. Message files
  62.     for English, German, Spanish and Dutch currently exist.
  63.  
  64.     PCElm in hamradio mode creates text- and workfiles directly usable
  65.     by NET or NOS for distribution with SMTP. In UUCP mode, PCElm
  66.     execs a uucp mailer (usually rmail.exe) to feed mail to your
  67.     uucp program. Since there are many uucp programs for PCs out there,
  68.     it is up to you to find the right way to exec the mailer (See the
  69.     discussion on the uucpcall parameter below). As our knowledge
  70.     of UUPC, WAFFLE etc. is limited, we can't help there.
  71.  
  72.     PCElm is Copyright (C) 1988,89,90,91,92,93 by Wolfgang Siebeck and
  73.     Martin Freiss.
  74.  
  75.     The executable pcelm.exe may be freely copied and distributed, provided
  76.     that all files in this package are distributed with it and provided that
  77.     the copyright notices are retained. No money may be charged for copying
  78.     PCElm. A license is given to use PCElm for an unlimited time in
  79.     non-commercial environments.
  80.  
  81.     No warranty, expressed or implied, is given that PCElm does what you
  82.     think it does. The usual disclaimers apply: It works for us.
  83.  
  84.     Should you want or need support in setting up PCElm beyond the scope
  85.     of this manual, want us to include special features in PCElm, want
  86.     to include PCElm with your product or otherwise use PCElm in a
  87.     commercial environment (i.e. make money out of people using PCElm),
  88.     contact us.
  89.  
  90.     If you need support from us, we would request that you register PCElm
  91.     with us for a fee of 10$ or the equivalent amount in your favorite
  92.     currency (20 DM or 8 british pounds at current rates). No checks or MO's
  93.     please; exchange fees for foreign currency checks are more than 10$
  94.     over here. Cash in an airmail letter is preferred, though Wolfgang Siebeck
  95.     can also process credit card orders (VISA). If you need more than
  96.     one license, we offer bulk licenses at substantial discounts - contact
  97.     us for details.
  98.  
  99.     A (rather nice) printed manual is available from Wolfgang Siebeck to
  100.     registered users for an additional fee of $7. Note that this manual
  101.     is for version 3.01 of PCElm, not for the current version (3.2). There
  102.     was not much interest in the printed manual (only one person wanted it),
  103.     so we won't offer a printed manual for future versions unless there
  104.     is overwhelming demand.
  105.  
  106.     Registered users will get advance notice of bug fixes and new releases
  107.     if we know their email address. We do supply bug fixes and support to
  108.     registered users a _lot_ faster.
  109.  
  110.     If you don't need support, we wouldn't complain about a donation
  111.     either :-)
  112.  
  113.     If you would like the source code (C, with Turbo C 2.0((C) Borland) or
  114.     later versions, Borland C++ recommended), the fee is 50$.
  115.       The rationale behind this is that support costs us both time and money
  116.     (as you might know, Germany has about the highest postal and telephone
  117.     charges in the world).
  118.  
  119.  
  120.     We can be reached at
  121.  
  122.     Wolfgang Siebeck        -or-    Martin Freiss
  123.     Postfach 1526                   Muehlenfloessstr. 60
  124.     D-52016 Aachen                  D-33175 Bad Lippspringe
  125.     Germany                         Germany
  126.  
  127.     Email:
  128.     siebeck@infoac.rmi.de           marvin@infoac.rmi.de
  129.  
  130.     Email is preferred.
  131.     (Note the change of e-mail address for Martin Freiss. The old address
  132.     is still valid, operable, and may reach me faster, but for politic reasons
  133.     mail about PCElm is preferred at the new address).
  134.  
  135.     Bug reports are welcome if they are complete, i.e. please specify
  136.     all configuration parameters, your hardware, version of NOS or uucp
  137.     software, and send an excerpt of the mailbox you are having trouble
  138.     with if necessary. We can't fix bugs we can't reproduce.
  139.     Suggestions for enhancements to PCElm are of course also welcome.
  140.  
  141. 2) History and Version Numbers
  142.  
  143.     PCElm was originally based on BM, Bdales Mailer, by Barksdale Garbee II,
  144.     N3EUA, version 3.0, reworked by Gerard van der Grinten, PA0GRI,
  145.     Phil Karn, KA9Q, and Dave Trulli, NN2Z. BM at that time was a UNIX
  146.     (UNIX is a trademark of USL laboratories) mail lookalike with a
  147.     restricted set of commands.
  148.  
  149.     Someday in early 1988, Martin added a reply-include-old-message command
  150.     to BM, and later that year, with the advent of Turbo C 1.5, Wolfgang
  151.     Siebeck devised the user interface modeled after Dave Taylor's ELM.
  152.     Creeping featurism then set in, and more and more capabilities were
  153.     added, until all resemblances to BM ceased to exist. This mailer
  154.     was then renamed to PCElm.
  155.  
  156.     The version number went to 1.9 in middle 1989 and stopped there.
  157.     We had no real use for PCElm any more then, as we both had bigger
  158.     computers than PCs to play around with at that time :-).
  159.     PCElm at this time had never been officially distributed, we just gave
  160.     some copies to friends in Germany and the Netherlands.
  161.  
  162.     Imagine our surprise, when, in 1990, mail began to trickle in from
  163.     PCElm users in Britain and the US and it developed that there was a
  164.     large user community.
  165.     In late 1990 Kelvin Hill, G1EMM, took over development of PCElm, as
  166.     we did not have time to develop PCElm further.
  167.  
  168.     Sadly, Kelvin dropped development in early 1991 due to work
  169.     pressure. At that time, he had developed versions 2.0 to 2.2 and
  170.     distributed them. Unluckily enough, we don't know what's in these
  171.     versions. Rumour has it that Kelvin intended to incorporate a news
  172.     reader for use with KA9Q NOS's NNTP capabilities, but to our
  173.     knowledge this did not happen.
  174.  
  175.     PCElm 3.0 was then written in August 1991, again by Wolfgang Siebeck
  176.     and Martin Freiss. PCElm 3.0 is the 'official' son of PCElm 1.9a.
  177.     We hope that this will end the version number confusion regarding
  178.     PCElm.
  179.  
  180.     PCElm 3.01 was a bugfix release that removed the bug which caused
  181.     PCElm 3.0 to hang if started on an empty mailbox.
  182.  
  183.     PCElm 3.1 is the latest release at this time (June 1993). It
  184.     includes many features that you, our users, requested, some bugfixes
  185.     and rudimentary MIME support.
  186.  
  187.     PCElm 3.2 was released on 1.1.1994. This is mainly a maintenance
  188.     release which corrects a memory leak that crept into the 3.1 version.
  189.  
  190. 3) Installation
  191.  
  192.     First, set the environment variable PCELM to point to the directory
  193.     where PCElm's configuration file and alias file reside.
  194.     This environment variable is mandatory! PCElm will not start up
  195.     without it (see also 3.2, environment variables).
  196.     Example:
  197.     set PCELM=d:\usr\marvin
  198.  
  199.     If you are upgrading from PCElm 3.0, 3.01 or earlier versions, you
  200.     will already have a variable HOME defined. PCElm will take either
  201.     PCELM or HOME environment variables for startup; PCELM, if present,
  202.     takes precedence over HOME.
  203.  
  204.     'CD' to your home directory, if you are not already there.
  205.     Then, select the language you want to use by copying or renaming the
  206.     appropriate message file to 'pcelm.msg'. The message files 'pcelm.eng'
  207.     (English), 'pcelm.deu' (German), 'pcelm.esp' (Spanish) and 'pcelm.ned'
  208.     (Dutch) are included in this distribution.
  209.     Example:
  210.     cd \usr\marvin
  211.     copy pcelm.eng pcelm.msg
  212.  
  213.     For this manual, we assume that you are using the English language.
  214.     If you want to use another language, read chapter 7 first, which
  215.     discusses setups for foreign languages in more detail.
  216.  
  217.     3.1 Configuration File
  218.     ----------------------
  219.     PCElm needs to know a lot of things about your MTA and your computer
  220.     to function properly.
  221.  
  222.     You need to configure PCElm's configuration file, pcelm.rc, before
  223.     starting PCElm for the first time. DO NOT USE THE EXAMPLE pcelm.rc
  224.     DISTRIBUTED IN THIS PACKAGE AS-IS. Edit it first with an ASCII-Editor
  225.     of your choice.
  226.  
  227.     pcelm.rc is a pure ASCII-file. Lines that start with a hash '#' or
  228.     empty lines are regarded as comments.
  229.  
  230.     Other lines are of the form <keyword><blank><information>. The
  231.     keywords that PCElm knows about are explained in detail below.
  232.     Note that ASCII space is used as a delimiter; if you need to include
  233.     a space in the information field, you can put double quotes '"'
  234.     around it. If (for whatever reason) you need to insert control
  235.     characters into a line, write them as escaped decimals (i.e.
  236.     \001 would be Ctrl-A). Some more escapes PCElm knows about are
  237.     \n, newline, \r, carriage return, \\ backslash, and \t, tab.
  238.     Note that PCElm likes slashes in pathnames, not backslashes, i.e.
  239.     you must write a path like "c:\spool\mail" as "c:/spool/mail".
  240.     Example:
  241.     SOH-UUCP "From "
  242.     Keywords are case insensitive.
  243.     Keyword is one of:
  244.  
  245.     HOST
  246.     ----
  247.     This is the hostname to be used for the hamradio mode. It usually
  248.     is your callsign followed by .ampr.org, as in "dg5kx.ampr.org"
  249.     Example:
  250.     host dg5kx.ampr.org
  251.  
  252.     UUCPHOST
  253.     --------
  254.     This is the hostname to be used for uucp mode. Note: traditional
  255.     uucp hostnames need to be unique, so know what you are doing here.
  256.     This is usually either your hostname followed by .uucp as in
  257.     "dg5kx.uucp" or a fully qualified domain name (FQDN) as in
  258.     "dg5kx.rmi.de".
  259.     Example:
  260.     uucphost dg5kx.uucp
  261.  
  262.     USER
  263.     ----
  264.     This is the name of your mailbox. It usually is your username (login)
  265.     at this system. (Note that this puts an 8 character length restriction
  266.     on your username, as MessDOS can't handle more characters).
  267.     If this entry is commented out, the value of the environment variable
  268.     'mailbox' is used.
  269.     Example:
  270.     user marvin
  271.  
  272.     FULLNAME
  273.     --------
  274.     Your real life name belongs here. This is so that other people can see
  275.     who you really are, even if your username is 'gandalf' or 'blackadder'.
  276.     (No disrespect meant if you are really called Gandalf).
  277.     If this entry is commented out, the value of the environment variable
  278.     'name' is used.
  279.     Example:
  280.     fullname "Martin W Freiss"
  281.  
  282.     HAMREPLY
  283.     --------
  284.     Use this if you want replies to your messages to go to another machine
  285.     or if you are on a network where headers are mangled so badly people
  286.     can't reply to you otherwise. If you aren't sure, set it to your
  287.     own email address. This is for hamradio mode only.
  288.     Example:
  289.     reply marvin@pc.dg5kx.ampr.org
  290.  
  291.     UUCPREPLY
  292.     ---------
  293.     Same as above, but for uucp mode. This makes it possible to use
  294.     different reply addresses for hamradio and uucp.
  295.     Example:
  296.     reply freiss.pad@sni.de
  297.  
  298.     REPLY
  299.     -----
  300.     Same as HAMREPLY; for backwards compatability with PCElm 3.0.
  301.  
  302.     ZONE
  303.     ----
  304.     The timezone you are living in. Should be 3 characters, not more, not less.
  305.     There is an ISO standard for time zone names if memory serves me correctly,
  306.     but the ISO number escapes me.
  307.     Some people prefer to set this to the deviation of their local time from
  308.     Universal Time, e.g. -07:00. Anyway, more than 6 charachters are not
  309.     accepted here.
  310.     Example:
  311.     zone MET
  312.  
  313.     MAXLET
  314.     ------
  315.     The maximum number of messages that may be in a mailbox at once.
  316.     Decrease this number if you are short on memory. PCElm startup will slow
  317.     down considerably if have a huge mailbox; on the other hand I doubt
  318.     anybody can find his way around 300 messages in a single mailbox.
  319.     Example:
  320.     maxlet 300
  321.  
  322.     EDIT
  323.     ----
  324.     The filename of your favorite editor goes here, This should be a small
  325.     editor capable of producing true ASCII files (if possible with no
  326.     Control-Z at the end, though PCElm tries to zap Ctrl-Z's if it sees them).
  327.     What I'm trying to convey here is that Word for Windows ((C) Microsoft)
  328.     is not the sort of thing you want to put here.
  329.     If this entry is commented out, the value of the environment variable
  330.     'editor' is used.
  331.     If you don't have an editor handy (edlin doesn't count :-)), try
  332.     builtin+
  333.     as editor. This is a small full screen editor that is hardcoded into
  334.     PCElm. Nothing fancy, and it still has some raw edges, but it works.
  335.     See end of chapter 4 for a brief discussion of the commands the
  336.     editor understands.
  337.     Example:
  338.     edit dte
  339.  
  340.     SMTP
  341.     ----
  342.     This is where you put the directory where your mailboxes reside. All
  343.     mailboxes, i.e. both the hamradio and uucp mailboxes should be in one
  344.     directory.
  345.     If this entry is commented out, the value of the environment variable
  346.     'maildir' is used.
  347.     (Don't worry about the curious name SMTP. It's called that way for
  348.     historical reasons and compatibility with BM).
  349.     Example:
  350.     smtp c:/spool/mail
  351.  
  352.     QUEUEDIR
  353.     --------
  354.     This is where you put the directory where outgoing mail gets queued up.
  355.     Typically, this is called /spool/mqueue or something like that. This is
  356.     for hamradio mode only; in UUCP mode, the exterior mailer determines
  357.     where it queues mail.
  358.     Example:
  359.     queuedir c:/spool/mqueue
  360.  
  361.     VIDEO
  362.     -----
  363.     Put a 1 here if you want direct writes into video ram, which is fast
  364.     but tends to confuse CGAs and not-so-very-compatible PCs. A 0 will
  365.     do all video updates through the BIOS, which is painfully slow.
  366.     Example:
  367.     video 1
  368.  
  369.     SOH-UUCP
  370.     --------
  371.     This is a sequence of words that tell PCElm that a new message begins.
  372.     Uh.. message delimiter is the word I was looking for. Usually "From ",
  373.     but may be anything at all if you are using weird mailers.
  374.     If you have MMDF-style mailboxes (like in UUPC/extended), use the special
  375.     keyword mmdf; otherwise, "From " (note the blank) or "Received "
  376.     usually work.
  377.     Example:
  378.     SOH-UUCP "From "
  379.     ( or, if you are using UUPC/extended,
  380.     SOH-UUCP mmdf                )
  381.  
  382.     SOH-HAM
  383.     -------
  384.     See above, but for ham radio.
  385.     Example:
  386.     SOH-ham "From "
  387.  
  388.     HAM-EXT
  389.     -------
  390.     Extension for amateur radio
  391.     The file extension your mailbox file has goes here. A mailbox is
  392.     constructed from your username with the extension defined here appended to
  393.     it. Note that even if your mailbox has no extension, you still need
  394.     to define the dot "." as extension ! The dot is mandatory.
  395.     Example:
  396.     ham-ext ".txt"
  397.  
  398.     UUCP-EXT
  399.     --------
  400.     Extension for UUCP
  401.     See above, but for uucp.
  402.     UUPC usually has no extension, so we just define the dot as extension.
  403.     Example:
  404.     uucp-ext "."
  405.  
  406.     START
  407.     -----
  408.     Startmode for PCElm. If Startmode is "uucp", PCElm will start in
  409.     uucp mode; anything else will cause PCElm to start in hamradio mode.
  410.     Example:
  411.     START hamradio
  412.  
  413.     COLORS
  414.     ------
  415.     Define various colours for display:
  416.     The numbers below are hexadecimal numbers defining a foreground and
  417.     background colour for various scenarios. The routine determining the
  418.     colours is quite simpleminded, so please don't use spaces here.
  419.  
  420.     If you are confused as to what to enter here, either leave it alone
  421.     or consult an IBM PC programming manual as to how these numbers are
  422.     arrived at.
  423.  
  424.     The color codes are as follows:
  425.  
  426.       Background    |    Foreground
  427.     ---------------------------------
  428.     0   0   0   1   |   1   1   1   1 ---> 0x1f ---> Bright white on blue
  429.     ---------------------------------
  430.     B   R   G   B   |   I   R   G   B
  431.     L   E   R   L   |   N   E   R   L
  432.     I   D   E   U   |   T   D   E   U
  433.     N       E   E   |   E       E   E
  434.     K       N       |   N       N
  435.  
  436.     This will definitely get more comfortable to configure in a later version
  437.     of PCElm. (Yes, I know I already said this a year ago. Bear with me.)
  438.  
  439.     Values are: normal screen, bold, more prompt, default at exit,
  440.     selection bar.
  441.  
  442.     Example:
  443.     COLORS 1f,4f,2f,07,6f
  444.  
  445.     UUCPCALL
  446.     --------
  447.     Format of uucp command
  448.     Supported macros are:
  449.     $   filename containing message header and body
  450.     %   name of recipient
  451.     &   subject of message (you shouldn't need this)
  452.  
  453.     PCElm constructs the workfiles and messagefiles that KA9Q NET and NOS
  454.     needs by itself, but execs an exterior mailer in uucp mode so that
  455.     headers peculiar to your particular implementation of uucp (or whatever)
  456.     can be written. The exterior mailer is usually called rmail.exe or
  457.     mail.exe. The macros $, & and % are expanded _once_, they may not occur
  458.     multiple times in this line.
  459.     For my version of UUPC (quite old), the following line works.
  460.     Example:
  461.     uucpcall "rmail % < $"
  462.  
  463.     or, try
  464.  
  465.     uucpcall "rmail -f $ %"
  466.  
  467.     for UUPC/extended newer versions. This works with UUPC/extended 1.11k
  468.     and foregoes the need for a temporary file (should be a little bit
  469.     faster).
  470.  
  471.     SEQUENCE
  472.     --------
  473.     Name of sequence file.
  474.     This is the file where the numbers for message id's are stored.
  475.     It is located in the mail spool directory.
  476.     Example:
  477.     sequence sequence.seq
  478.  
  479.     PRINT
  480.     -----
  481.     Name of print device.
  482.     Put the device name of your line printer here, e.g. LPT1, LPT2 or
  483.     LPT3. If you want to connect a serial printer, use 'mode' (the DOS
  484.     command) to tie a serial port to a LPT device.
  485.     Example:
  486.     print lpt1
  487.  
  488.     WEEDOUT
  489.     -------
  490.     Headerlines to hide.
  491.     A weedout list is a list of headerlines that you don't want to see
  492.     when mail is displayed. It is annoying to get mail with 2 lines of text
  493.     and 60 lines of header; using weedout you can shrink the displayed
  494.     headers to just a few lines or nothing at all.
  495.     Put the beginning of the headerline(s) after the weedout directive,
  496.     and remember you need to quote the weedout list if there are spaces
  497.     in it!
  498.     Example:
  499.     weedout "Reply-To: Message-Id: From: To: Subject: Received: From\32"
  500.  
  501.     With this example, you just get to see the Date: line, Status: line
  502.     and X- headerlines if present.
  503.  
  504.     ESCAPE
  505.     ------
  506.     Escape-character to use in the builtin line editor.
  507.     This is the character that is used to denote a command in the builtin
  508.     line editor. If set (for example) to ".", you will need to preface
  509.     every command with a dot, for example ".r 1" to read the 1st mail
  510.     into the editor.
  511.     Example:
  512.     escape .
  513.  
  514.     USE-ED
  515.     ------
  516.     Drop directly into specified editor when composing mails.
  517.     Many users of PCElm 3.01 found it annoying that they had to enter
  518.     ".e" in the line editor to start their favorite full screen editor
  519.     or to enter the builtin full screen editor when composing mail.
  520.     Setting use-ed to 1 causes PCElm to start the editor defined with
  521.     EDIT (see above) at once. Setting use-ed to 0 will start the builtin
  522.     line editor first, like in version 3.01.
  523.     Example:
  524.     use-ed 1
  525.  
  526.     HELP
  527.     ----
  528.     Helplevel of PCElm.
  529.     When set to 0, PCElm will display a short summary of possible
  530.     commands below the list of mails that you have. When set to 1, PCElm
  531.     will not display this summary; instead, you get to see a longer
  532.     list of mails.
  533.     Example:
  534.     help 0
  535.  
  536.     OPTHDR
  537.     ------
  538.     Optional header lines to include in mails.
  539.     OPTHDR gives you the capability to include your own "custom" header
  540.     lines in mails you send. For example, you might want to include a
  541.     line with the name of your company or your phone number.
  542.     You can define up to 10 optional header lines, using opthdr0, opthdr1
  543.     and so on up to opthdr9 as parameters. Optional header lines should
  544.     always start with "X-"! If they start with other letters, you might
  545.     confuse your (and other peoples!) mail transfer agents, so know
  546.     what you are doing here.
  547.     Example:
  548.     opthdr0 "X-Organization: Dept. of Redundancy Dept."
  549.     opthdr1 "X-Depression-Level: High"
  550.  
  551.     Note that too many optional header lines are generally frowned upon,
  552.     as they increase the length (and therefore cost of transfer) of
  553.     mails, often without increasing the information level of a mail.
  554.  
  555.     QUOTE
  556.     -----
  557.     The character(s) used to denote quoted text when replying to a mail.
  558.     When you reply to a mail, it is usually a good idea to include some
  559.     portions of the mail you reply to so that the recipient knows what
  560.     you are talking about. When you use the 'R' command in PCElm (reply,
  561.     including the original mail), every line of the original mail is
  562.     prefixed by the characters that are defined by the quote parameter.
  563.     This prefix tells the recipient that you are quoting him.
  564.     Example:
  565.     quote "> "
  566.  
  567.     ASK-TOGGLE
  568.     ----------
  569.     If set to 1, PCElm will ask you to specify a new hostname and new
  570.     username when (T)oggling between hamradio and uucp mode. This is
  571.     useful if you run both NOS and uucp mail, but have different hostnames
  572.     in the two worlds. If set to 0, PCElm will assume that your host- and
  573.     usernames are identical in hamradio and uucp mode.
  574.     Example:
  575.     ask-toggle 0
  576.  
  577.     PAGER
  578.     -----
  579.     The filename of your favorite pager goes here. If you don't set this
  580.     parameter, PCElm will display mails using its internal pager.
  581.     The macro $ denotes the name of the temporary file that gets passed
  582.     to your pager.
  583.     Example:
  584.     pager "list $"
  585.  
  586.     ENABLEMIME
  587.     ----------
  588.     If set to 1, the MIME support in PCElm is activated. If set to 0,
  589.     PCElm will display MIME mails like normal mails.
  590.     Example:
  591.     enablemime 1
  592.  
  593.     MULTIMEDIA
  594.     ----------
  595.     This is the name of the program that MIME-mail is passed to. MIME
  596.     (Multipurpose Internet Mail Enhancements) is a standard for the
  597.     transmission of multimedia mails; it is described in detail in RFCs
  598.     1341 to 1344. I suggest that you at least browse through these RFCs to
  599.     get an idea of what MIME can do.
  600.     See chapter 9 for a more detailed description of how to set up
  601.     PCElm for MIME. Really. A lot of things need to be set up for the
  602.     multimedia stuff to work; this is not trivial.
  603.     The macro $ is the name of the temporary file that gets passed to the
  604.     multimedia program.
  605.     Example:
  606.     multimedia "metamail $"
  607.  
  608.     DOSIFY
  609.     ------
  610.     PCElm stores the mailboxes you are using in UNIX format. This has the
  611.     advantage that you can use UNIX mailboxes directly, without conversion
  612.     (for example mount the mail directory of a UNIX server on your PC), but
  613.     has the disadvantage that printer output has line feeds only as end of
  614.     line markers instead of the usual CR/LF sequence. Setting DOSIFY to 1
  615.     will change LFs to CR/LFs in everything you print. It will not change
  616.     your mailboxes or folders!
  617.     Example:
  618.     dosify 1
  619.  
  620.     DELETE-UNREAD
  621.     -------------
  622.     If set to 1, PCElm allows you to delete mails you have not yet read.
  623.     When set to 0, PCElm will display a warning message to read the mail
  624.     before deleting it.
  625.     Example:
  626.     delete-unread 0
  627.  
  628.  
  629.     3.2 Environment Variables
  630.     -------------------------
  631.     The environment variable PCELM (or HOME) is mandatory. It must be set to
  632.     the directory where the configuration file pcelm.rc resides. The alias
  633.     file for mail aliases is also expected in the PCELM directory.
  634.     At the DOS prompt, type "set pcelm=<your_home_directory>" or include
  635.     that line in your autoexec.bat.
  636.     Example:
  637.     set pcelm=d:\usr\marvin
  638.  
  639.     You need to set the environment variable TMP to be able to read multipart
  640.     MIME (multimedia mail) messages. This variable must be set to a drive
  641.     and directory where the decoded parts of a mail are stored until all
  642.     parts have been decoded and read, i.e. it should be a drive with some
  643.     megabytes of free space left.
  644.     If you don't plan to use the MIME extensions to PCElm, you will not need
  645.     this.
  646.     Example:
  647.     set tmp=e:\tmp
  648.  
  649.     As you may have noticed in chapter 3.1, PCElm can also take some
  650.     configuration parameters from environment variables. This is for backwards
  651.     compatibility with older versions of PCElm. If a configuration parameter
  652.     is specified both in an environment variable and in pcelm.rc, pcelm.rc wins.
  653.  
  654.     3.3 Other Files
  655.     ---------------
  656.     PCElm currently knows about three other files:
  657.  
  658.     ALIAS
  659.     -----
  660.     You can define aliases for often-used mail addresses, so that you need
  661.     not type the complete email address all the time. This is especially
  662.     convenient for mailings to a group of recipients.
  663.  
  664.     The alias file is called 'alias' and resides in your HOME directory.
  665.  
  666.     Lines in the alias file beginning with a hash '#' are taken to be comments.
  667.     Lines that begin with spaces or tabs are continuation lines, i.e. are used
  668.     for aliases that span several lines.
  669.  
  670.     All other lines have the format
  671.     <alias> <1st recipient> <2nd recipient> ...
  672.  
  673.     Example:
  674.     # This is my alias file
  675.     hikaru dg2kk@dg2kk.ampr.org
  676.     marvin marvin@dg5kx.ampr.org
  677.     martin freiss.pad@sni.de
  678.     andrew andrew@omega.uucp
  679.     #
  680.     ac-tcp dg2kk@dg2kk.ampr.org siebeck@infoac.rmi.de rmohr@infoac.rmi.de
  681.     big-alias siebeck@infoac.rmi.de John.Doe@this.is.a.domain.name
  682.          Jane.Doe@yet.another.address
  683.          Murray.Bozinsky@robot.riptide.com
  684.  
  685.     Maximum line length is 127 characters. Aliases are not resolved
  686.     recursively, i.e. the recipient may not be yet another alias.
  687.  
  688.     SIGNATURE
  689.     ---------
  690.     A signature is automatically appended to your mails, if a signature
  691.     file is present. The signature file must be in your HOME directory
  692.     and has the name <username>.sig; i.e. if your username (see USER
  693.     in pcelm.rc) is marvin, the signature file is called marvin.sig .
  694.         There is no length restriction on signatures; however signatures
  695.     longer than 4 lines are generally frowned upon.
  696.  
  697.     The signature, if present, should contain your name and email address.
  698.  
  699.     PCELM.MSG
  700.     ---------
  701.     This is the message file. If you are installing a language other than
  702.     English, be sure to read chapter 10.
  703.     As detailed at the beginning of chapter 3, copy one of the supplied
  704.     message files pcelm.eng or pcelm.deu to pcelm.msg.
  705.     The message file must be in the HOME directory. Note that this makes
  706.     it possible for each user to use PCElm in his native language.
  707.  
  708.  
  709.     3.4 Starting PCElm
  710.     ------------------
  711.     Now you are ready to start PCElm. Run it on a copy of your mailbox
  712.     first, so that you won't lose your mail if something goes wrong.
  713.     Just type pcelm to start, no commandline arguments are necessary.
  714.  
  715.  
  716. 4) Using PCElm
  717.  
  718.     Though PCElm is written for interactive use, you can also use it to
  719.     send mail from batch files or from the command line.
  720.     Type
  721.     pcelm <recipient> <subject> < filename
  722.     or
  723.     type filename | pcelm <recipient> <subject>
  724.     to send mail from the command line, e.g.
  725.     pcelm freiss.pad@sni.de "Hi there!" < mymail
  726.  
  727.     If you omit the subject, PCElm will generate a subject line of
  728.     'No subject specified'.
  729.  
  730.  
  731.     Normally, you'll want to use PCElm interactively. The rest of this
  732.     chapter explains the commands PCElm understands.
  733.  
  734.     When PCElm starts up, it displays a status line at the top. Below that,
  735.     up to 10 messages are displayed in the index, giving from left to right
  736.     the message state (Read or Unread, Tagged, Deleted), the message number,
  737.     the sender of the mail, the date the mail was sent, the length of the
  738.     mail in Bytes and the subject line of the mail.
  739.     The subject line is truncated to fit on the screen.
  740.  
  741.     In the lower half of the screen, 4 lines list some of the more often
  742.     used commands (if you have set the HELP parameter described in the
  743.     previous chapter to 1, you will see more mails instead of the command
  744.     summary). You type commands by pressing the highlighted letter
  745.     at the Command: prompt.
  746.  
  747.     Error messages (hopefully there aren't any) are displayed on the
  748.     bottom line.
  749.  
  750.     * Note that the 'Q' and 'X' keys have exchanged their meanings
  751.     * from releases below version 3.0.
  752.  
  753.     A short overview of the commands available:
  754.  
  755.     Up Arrow, Down Arrow, Page Up, Page Down, Home, End
  756.         These keys move the 'select'-bar one message up, down, one page
  757.         (= 10 messages) up, one page down, to the first message, to
  758.         the last message in your mailbox.
  759.  
  760.     Return
  761.         Displays the message you have currently selected. More on
  762.         display commands below.
  763.  
  764.     +   Tag. Mark a mail for saving, deleting or forwarding.
  765.  
  766.     -   Untag. Delete a previous tag.
  767.  
  768.     F1  Function Key F1 displays a help page which lists all commands
  769.         and a short explanation of what they do.
  770.  
  771.     F2  Function Key F2 toggles the video display mode
  772.         (VRAM or BIOS writes to update the screen).
  773.  
  774.     DEL Delete the selected mail or all tagged mails.
  775.  
  776.     INS Undelete the selected mail.
  777.  
  778.     a   About PCElm. A page of text giving the version and the authors'
  779.         names. Just an ego-fix for us :-)
  780.  
  781.     A   Alias editing. Drops you into a small full-screen editor, where
  782.         you can edit your alias file. If you did not have an alias file
  783.         before, it is created for you. You can of course also use other
  784.         editors to edit the alias file.
  785.  
  786.     c   Change mailbox. This allows you to change your user id without
  787.         leaving PCElm. For example, ham radio operators often have
  788.         their first name as username and their call sign as another
  789.         username. This is probably less useful in uucp.
  790.         You will be prompted for a new fullname to match your new user
  791.         id and you are prompted for a new hostname.
  792.  
  793.     C   Colour. Toggles from the user selected colours to default colours
  794.         to default monochrome display.
  795.  
  796.     d   Delete the selected mail or all tagged mails.
  797.  
  798.     F   Freshen the mailbox. Mails marked for deletion will be deleted,
  799.         new mail that has arrived in the meantime is processed and your
  800.         mailbox is displayed anew.
  801.  
  802.     f   Forward the selected (or all tagged) mails to another user.
  803.         You will be prompted for the recipient of the forwarded mail
  804.         and for the subject line; the subject line defaults to the
  805.         original subject with (fwd) appended to it.
  806.  
  807.     l   List unsent mails. Shows what files there are in the mail queue
  808.         directory and who sent them to whom. It also gives you a chance
  809.         to kill them (last chance to zap a mail if you mistakenly sent
  810.         it). This currently works only in hamradio mode (will work in uucp
  811.         mode in the next version).
  812.  
  813.     m   Send mail. You will be prompted for the recipient of the mail
  814.         and the subject, after which you are dropped into the editor.
  815.         More on editor commands below.
  816.         You can specify multiple recipients delimited by blanks at the
  817.         'Mail to:' prompt. If you do, a Cc: (Carbon Copy) line will
  818.         automatically be generated.
  819.  
  820.     M   Send a mail with MIME-conforming headers. Not implemented yet!
  821.  
  822.     n   Next unread. Moves the select-bar to the next unread mail.
  823.  
  824.     p   Paint. Redraw the screen if it got corrupted.
  825.  
  826.     P   Print. Prints all tagged mails or the hilighted mail on a line
  827.         printer. If 'print.com' of DOS is loaded, PCElm will queue the
  828.         print job to 'print', so you can go on reading mail while your
  829.         tagged mails are printed in the background.
  830.         If 'print' is not loaded, PCElm will print the mails on the device
  831.         specified in the configuration file (parameter 'print').
  832.  
  833.     Q   Quit. Quits from PCElm, saving all changes to your mailbox.
  834.  
  835.     r   Reply to a mail. You are dropped into the editor to compose your
  836.         reply; after you are finished, mail is sent to the originator of
  837.         the mail with a subject line of "Re: <original subject>".
  838.  
  839.     R   Reply to a mail. Same as above, but the original mail is included
  840.         in your reply. This helps the recipient to understand what your
  841.         reply is all about.
  842.  
  843.     s   Save the selected mail (or all tagged mails) to a file. You will
  844.         be prompted for a filename, in which the message complete with
  845.         header will be saved.
  846.  
  847.     S   change Start Of Header (SOH). This changes the 'magic word' PCElm
  848.         looks for to determine the beginning of a mail. All sort of strange
  849.         things may happen if you set a wrong SOH; be warned that you may
  850.         destroy your mailbox if you fool around with this and then use
  851.         a command that saves your mailbox to disk. 'S' is for experimenting
  852.         and for use with mailboxes from foreign MTA's; for everyday use,
  853.         you should set the SOH from the pcelm.rc file using the SOH-HAM
  854.         and SOH-UUCP parameters.
  855.         (The special keyword 'mmdf' causes the new SOH to be a line of
  856.         Control-A's, as needed by MMDF and UUPC/extended).
  857.         You must do a 'c'hange mailbox for the new SOH to take effect.
  858.  
  859.     t   Transmit from file. You will be prompted for the recipient of
  860.         the mail, the subject, and the filename to transmit.
  861.         Note that usually MTAs can only send pure ASCII files, binary files
  862.         have to be encoded first.
  863.  
  864.     T   Toggle mailsystem. PCElm can handle 2 mailsystems, UUCP (Unix to
  865.         Unix CoPy) and hamradio (for use with KA9Q NOS).
  866.         When you want to switch mailsystems, hitting 'T' will prompt you
  867.         for a new username, new fullname and a new hostname, since
  868.         hostnames in the hamradio community (Example: dg5kx.ampr.org)
  869.         and UUCP community (Example: atreju.rmi.de) sometimes differ.
  870.  
  871.     u   Undelete the selected mail.
  872.  
  873.     w   Write the selected mail (or all tagged mails) to a file. You will
  874.         be prompted for a filename, in which the message will be saved
  875.         without the header.
  876.  
  877.     X   Exit. Exits from PCElm immediately, without updating your mailbox.
  878.  
  879.  
  880.     When you are prompted for new values for (for example) your fullname,
  881.     PCElm pops up a window to do this. You can then either hit return,
  882.     thus accepting the default value displayed or enter a new value.
  883.     When the new value begins with a dollar sign, it is taken to
  884.     be an environment variable (e.g. if you have an environment variable
  885.     MYNAME=beeblebrox, entering $MYNAME here causes beeblebrox to be taken
  886.     as the new value).
  887.  
  888.  
  889.     Editor Commands
  890.     ---------------
  891.     When writing mail, PCElm drops you into a very simplistic line editor
  892.     of its own. This editor is useful for writing short notes, but
  893.     for longer mails you should use another editor of your choice.
  894.     This editor must be able to take the name of a file to edit
  895.     as its one and only commandline argument (something like
  896.     "edit mail.txt" must work), and it must be able to create
  897.     pure ASCII files. If at all possible, use an editor that does
  898.     not terminate files with Control-Z.
  899.  
  900.     Commands understood by the line editor:
  901.     Commands begin with a dot '.' in the first column of a line. A dot
  902.     elsewhere in the text has no special meaning.
  903.  
  904.     .?      Help. Shows available commands.
  905.     .e      Start the editor defined in pcelm.rc.
  906.     .p      Print the message you have typed so far.
  907.     .q      Quit. Aborts the mail.
  908.     .r file Reads the file "file" into the message buffer. If "file"
  909.             contains wildcards (i.e. '*' or '?'), you will be shown
  910.             a list of files matching your command.
  911.     .m num  Inserts the mail number "num" into the message buffer.
  912.     ..      Put a dot in the first column of a line.
  913.     .       End message.
  914.  
  915.  
  916.     PCElm also sports a builtin full screen editor, which is selected
  917.     if either no editor was defined in pcelm.rc and the environment
  918.     variable EDITOR is not set or if you selected 'builtin+' as editor
  919.     in pcelm.rc.
  920.     This editor is included as 'editor of last resort'. It is definitely
  921.     not perfect yet, but we liked it so much we included it.
  922.  
  923.     Commands understood by the fullscreen editor:
  924.     Arrow keys, Pg Up, Pg Dn, Home, End
  925.             those work as you would expect and move you around in the text.
  926.     Alt-D   delete line
  927.     Alt-F   find a string
  928.     Alt-L   set left margin
  929.     Alt-N   insert line.
  930.     Alt-Q   quit, saving text.
  931.     Alt-R   set right margin
  932.     Alt-T   set tab size.
  933.     Alt-W   toggle word wrap.
  934.     Alt-X   quit _without_ saving text.
  935.     Bsp     (backspace) delete character left from cursor.
  936.     Del     delete character under cursor.
  937.     F1      help screen
  938.  
  939.     Quirks:
  940.     Maximum linelength is 160 characters.
  941.     The bottom line on the screen is sometimes duplicated if you are scrolling;
  942.     this affects only the screen though, the text is ok.
  943.  
  944.     If you are using the builtin full screen editor and are annoyed at its
  945.     lack of functionality or bugs, tough :-). The simple fix is to use another
  946.     editor.
  947.  
  948.     Display Commands
  949.     ----------------
  950.     When reading a mail, PCElm normally displays the mail one page at a
  951.     time.
  952.  
  953.     The following keys have special meanings:
  954.  
  955.     Return  one line forward
  956.  
  957.     ?       Shows what commands are available.
  958.  
  959.     a       Show the current mail again.
  960.  
  961.     h       Show complete header of the mail you are currently reading.
  962.             This is useful if you have configured a weed-out list so that
  963.             you don't normally get to see the header, but want to have a
  964.             peek at a mail's header none the less. Pressing 'h' again
  965.             will switch back to the original display.
  966.  
  967.     q       quit to menu
  968.  
  969.     /       Search. You are prompted for a string to search for. The
  970.             searching routine remembers the last item you searched for,
  971.             so you can just press Return on subsequent invocations of '/'.
  972.  
  973.  
  974. 5) Troubleshooting
  975.     Some of the things that can (and will, Murphy being what he is)
  976.     go wrong and proposed solutions:
  977.  
  978.     Problem:
  979.     PCElm says 'New mail has arrived' and beeps, though there is no
  980.     new mail.
  981.  
  982.     Solution:
  983.     You probably edited your mailbox with an editor once, and now there
  984.     is a Control-Z at the end of it. This means that the mailbox file
  985.     is now one character longer than all the single mails added up, so
  986.     PCElm concludes that a new mail must have arrived in the meantime.
  987.     Using a proper editor, zap the Control-Z.
  988.  
  989.     Problem:
  990.     PCElm stubbornly says 'No Mail!', although you have verified there
  991.     _is_ mail.
  992.  
  993.     Solution:
  994.     1) The mail directory is configured wrong (check parameter SMTP in
  995.        pcelm.rc)
  996.     2) Your username is not what you think it is (check NAME in pcelm.rc)
  997.     3) The extension for your mailbox file is incorrect (check HAM-EXT
  998.         and UUCP-EXT in pcelm.rc)
  999.     4) The Start-Of-Header (SOH) is wrong, and PCElm therefore can't
  1000.        parse mail headers correctly (check SOH-HAM and SOH-UUCP).
  1001.  
  1002.     Problem:
  1003.     Mails have parts of their header missing or have parts of the header
  1004.     at the _end_ of the mailbody or generally look strange.
  1005.  
  1006.     Solution:
  1007.     The Start-Of-Header (SOH) is wrong, and PCElm therefore can't
  1008.     parse mail headers correctly (check SOH-HAM and SOH-UUCP).
  1009.  
  1010.     Problem:
  1011.     Reading mail is ok, but I can't send UUCP mail.
  1012.  
  1013.     Solution:
  1014.     1) Check the uucpcall parameter in pcelm.rc. Verify that this commandline
  1015.        works by typing it in at the DOS prompt, expanding the ! and % macros
  1016.        by hand. For example, send a mail to yourself this way. If this
  1017.        doesn't work, check if the uucp mailer (mail.exe or rmail.exe) is
  1018.        in the path, and if the commandline is correct for your mailer
  1019.        (consult your uucp documentation for this).
  1020.     2) There may not be enough memory left to execute the mailer under
  1021.        PCElm. Get rid of some TSR programs or decrease the MAXLET
  1022.        parameter in pcelm.rc and try again.
  1023.  
  1024.     Problem:
  1025.     When writing mail, my favorite editor does not start up when using
  1026.     the .e comand.
  1027.  
  1028.     Solution:
  1029.     The editor is either not in the path or there is not enough memory left
  1030.     to start the editor. Check the path and/or get rid of some TSR programs
  1031.     or decrease the MAXLET parameter in pcelm.rc and try again.
  1032.  
  1033.     Problem:
  1034.     When writing mail, the original mail is not included when using an
  1035.     exterior editor when using the 'R' command and/or everything typed
  1036.     in the editor is lost.
  1037.  
  1038.     Solution:
  1039.     PCElm needs an editor that can take a filename to edit as a commandline
  1040.     argument. Check if this works by typing "<your_editor> filename" at
  1041.     the DOS prompt.
  1042.     Check if your editor is a pure ASCII editor. If you use a text
  1043.     processing system, maybe it starts up in document mode and thus uses
  1044.     a non-ASCII document representation.
  1045.  
  1046.     Problem:
  1047.     When reading MIME mail, the multimedia parts are not shown or played,
  1048.     although you have verified that multimedia is setup correctly.
  1049.  
  1050.     Solution:
  1051.     This is usually due to one of two things:
  1052.     1) Not enough memory. Try using another program to display images or
  1053.     play sounds that uses less memory. Alternatively, there are "swap"
  1054.     programs available as shareware that can swap PCElm out of memory to
  1055.     a disk file while displaying images or playing sounds, and load it back
  1056.     into memory later.
  1057.  
  1058.     2) If you are using metamail to display MIME mails, either metamail
  1059.     cannot find the mailcap file or metamail cannot find the programs it
  1060.     needs to display (or play) the mail.
  1061.  
  1062. 6) Notes for interfacing PCElm with UUCP programs
  1063.     Since this seems to be the most difficult thing to set up, some notes
  1064.     on how PCElm feeds mail to UUCP.
  1065.  
  1066.     PCElm is basically a User Agent. It needs another program to actually
  1067.     _do_ something with the mail generated by PCElm; in uucp mode, PCElm
  1068.     executes a uucp mailer to do the hard work. This mailer is usually
  1069.     called 'rmail.exe'; note the 'usually', your mailer might have a
  1070.     different name.
  1071.  
  1072.     PCElm requires that the mailer be in the path; that the mailer
  1073.     accepts as argument the uucp address of the recipient and that
  1074.     there is some way to get the mail into the mailer, either by
  1075.     specifying the file containing the mailbody on the command line
  1076.     or by feeding it to the mailer via input redirection.
  1077.  
  1078.     The mailer must be able to paste the header lines and the mailbody
  1079.     created by PCElm to the headers it generates itself _without_
  1080.     mangling them and without inserting an empty line between its own header
  1081.     lines and the header supplied by PCElm.
  1082.     PCElm generates the From:, To:, Subject: and Message-Id: lines itself
  1083.     and feeds mail to the mailer in standard UUCP format.
  1084.  
  1085.     Why execute an exterior mailer at all?
  1086.     The rationale behind this is that (due to the many different types
  1087.     and versions of uucp software out there) it is nigh impossible to
  1088.     use all the features of the MTA directly from PCElm. Only your
  1089.     uucp mailer knows if you can do path aliasing and what headers are
  1090.     necessary for your particular network.
  1091.     On the other hand, we still want to have at least the mandatory header
  1092.     lines even if the mailer is real stupid and can't generate them itself.
  1093.  
  1094.  
  1095.     Reading mail:
  1096.     It seems that new versions of UUPC use MMDF style mailboxes, i.e.
  1097.     mails are separated by Control-A's. Whether or not this is a cool
  1098.     thing to do is a matter of opinion. Anyway, PCElm can handle this;
  1099.     use the special keyword mmdf in the SOH-UUCP parameter line
  1100.     in pcelm.rc to switch PCElm into MMDF mode.
  1101.     (i.e., the line in pcelm.rc should read
  1102.     SOH-UUCP mmdf
  1103.     ).
  1104.  
  1105. 7) Notes for interfacing PCElm with Waffle
  1106.     I am not an expert on Waffle; I have never even used it myself. Other
  1107.     people have invested much effort into making PCElm work with Waffle
  1108.     though. There are 2 ways that I know of to make PCElm and Waffle
  1109.     talk to each other:
  1110.  
  1111.     - There is an ELM4WAF kit, done by Ian Justman (ianj%ijpc.uucp@pacbell.com),
  1112.       available by mailserver from listserver%ijpc.uucp@pacbell.com.
  1113.       This transmutates Waffles idea of a mailbox to something PCElm can
  1114.       live with.
  1115.  
  1116.     - Jack Otto (Jack.Otto@vuw.ac.nz) does it in a different way. He wrote the
  1117.       following paragraph on how to interface PCElm with WAFFLE:
  1118.  
  1119.     Here's more details for those who asked.
  1120.  
  1121.     Getting PCElm and Waffle to work together.
  1122.  
  1123.     Changes in PCElm.RC
  1124.  
  1125.     -----
  1126.     #SOH-UUCP mmdf
  1127.     SOH-UUCP "^A^A^A^A"
  1128.     SOH-ham "^A^A^A^A"
  1129.     ham-ext "."
  1130.     uucp-ext ".F"
  1131.     START uucp
  1132.     #uucpcall "rmail -f $ %"
  1133.     uucpcall "uusend $ %"
  1134.     -----
  1135.  
  1136.     where ^A is Control-A, ASCII character 1.  So the start of header is
  1137.     only four ASCII character Control-A's.  While this will read Waffle's
  1138.     messages, PCElm written messages of only 4 ^A's (mmdf setting) on the
  1139.     line, will give a null header with Waffle.  Netmail messages in Waffle
  1140.     usually have "^A^A^A^AFrom ..." as SOH.
  1141.  
  1142.     For a message file with at least one message in it, Waffle expects 4 (?)
  1143.     ^A's with no terminating CR/LF at the end of the file, ready for the
  1144.     next SOH. At least something to that effect, I gather.  If you save such
  1145.     a file with PCElm, it will add the CR/LF, which doesn't bother PCElm,
  1146.     but Waffle would treat that as NO header for the next message appended.
  1147.  
  1148.     If the ^A's are not at the end of a file of messages, Waffle's RMail
  1149.     does not write any and puts the next message as if it were still the
  1150.     body of the previous message.  This can happen in two ways. 1) The empty
  1151.     message was deleted in PCElm.  2) Another message was appended to the
  1152.     file with PCElm which does not append the ^A's.
  1153.  
  1154.     * IMPORTANT *  To avoid this in PCElm: don't delete that last empty
  1155.     message; don't save a message to a file which Waffle writes to.
  1156.  
  1157.     In PCElm, if you save a message to name.f, it keeps the SOH.  Using SOH
  1158.     of mmdf, does not write the 4 ^A's.
  1159.  
  1160.     uusend is uusend.bat, for Waffle's RMail, containing at least:
  1161.  
  1162.     -----
  1163.     RMail -u<your-username> %2 <your-mailsent-username> <%1
  1164.     -----
  1165.  
  1166.     where <your-mailsent-username> is optional, effectively a CC: to your
  1167.     mailsent file in Waffle format.  eg, if it is mailsent, a copy of the
  1168.     message is written to mailsent.f   %2 is the address to be sent to, %1
  1169.     is the message with headers.
  1170.  
  1171.     Mine is: RMail -ujackotto %2 mailsent <%1
  1172.  
  1173.     Be careful with long & multiple addresses that may reach the limit of
  1174.     Dos's line length.  Using aliases from Waffle's alias file instead of
  1175.     PCElm's helps there.
  1176.  
  1177.     Waffle's *.i file won't be accurate, but I understand that there is a
  1178.     utility to redo the *.i files.
  1179.  
  1180.     Set the maildirectory to the dir with the *.f files, with smtp in
  1181.     PCElm.RC or environment setting MailDir.  The username for PCElm will
  1182.     have to be your actual username, so you'll have to change to the
  1183.     mailbox.f file once in PCElm. Or ...
  1184.  
  1185.     Edit your aliases file in ...\Waffle\System\ to have RMail deposit your
  1186.     mail to a pathfilename of your choice, instead of to mailbox in the
  1187.     ...\Waffle\User\Username\ dir.  This way, all your *.f files can be in
  1188.     the one directory. Eg, for me:
  1189.  
  1190.     jackotto        = C:\Mail\JackOtto
  1191.     news            = C:\Mail\News
  1192.     mailsent        = C:\Mail\MailSent
  1193.  
  1194.     I also alias root, system, etc to jackotto, so everything should go to
  1195.     C:\Mail\JackOtto.F  If you use your username for the filename, PCElm
  1196.     will start with the file your incoming mail is sent to.
  1197.  
  1198.     To send to a newsgroup from PCElm, have lines like the following in
  1199.     aliases as well.
  1200.  
  1201.     <alias> | ...\Bin\RNews -m -n<newsgroup> -unews -f<your-address>
  1202.  
  1203.     Eg,
  1204.     vuw-events | D:\Progs\RNews -m -nvuw.events -unews -fJack.Otto@vuw.ac.nz
  1205.  
  1206.     The -f switch is optional, I think.  Handy to use if your return address
  1207.     for the network is not what PCElm or RMail puts in the From: line.
  1208.  
  1209.     One annoying bug with PCElm is that it doesn't handle Header lines
  1210.     greater than (about) 127 characters too well.  I wrote a program (C2M)
  1211.     that splits such lines and does a few other things as well.  I now
  1212.     process all files written by Waffle's RMail with it, writing to files
  1213.     with other names and never use PCElm to access those original files.  It
  1214.     also overcomes the problem with RMail expecting trailling ^A's.
  1215.  
  1216.     So I have:
  1217.  
  1218.     jackotto        = C:\Mail\JackIn
  1219.  
  1220.     and convert it to C:\Mail\JackOtto for PCElm to read, deleting JackIn.F
  1221.     after the conversion.  That bug should be fixed with the next version of
  1222.     PCElm.
  1223.  
  1224.     Otherwise, the rest is straight forward for setting up Waffle and PCElm.
  1225.  
  1226.     Try it and let me know if I've missed something out or haven't quite
  1227.     explained something properly.
  1228.  
  1229.     Please let me know if this has been enought detail for you to get it
  1230.     working.
  1231.  
  1232.     Jack.
  1233.  
  1234.     ------------------------------------------------------------------------
  1235.     Jack Otto  (Chaplaincy)             Telephone: Extn 8655  (a/h) 472-3257
  1236.     Victoria University of Wellington, NZ       E-Mail:  Jack.Otto@vuw.ac.nz
  1237.  
  1238.  
  1239.     The long header lines bug Jack talks about is fixed in releases 3.1 and
  1240.     later versions. Also, some changes were made to the MMDF mode to make it
  1241.     more robust when using PCElm with Waffle. There is probably still room
  1242.     for improvement, though - write if you are having trouble.
  1243.  
  1244. 8) Notes for interfacing PCElm with UNIX servers
  1245.     For this, you need PC-NFS ((C) SUN Microsystems), PC-DFS ((C) Siemens
  1246.     Nixdorf Informationssysteme AG) or some other NFS package for PCs.
  1247.     On the UNIX host, export the mail directory to your PC (consult your
  1248.     system administrator on how to do this). On the PC, mount the mail
  1249.     directory as a network drive, and tell PCElm that this is the drive
  1250.     where the mailboxes reside (Parameter SMTP in the pcelm.rc file).
  1251.     Voila - you can read mail.
  1252.     To send mail, use the command "rsh <name> % < $" as UUCPCALL parameter
  1253.     in the pcelm.rc file. For instance, if your server is called charlie,
  1254.     "rsh charlie % < $" would be the right thing to use.
  1255.  
  1256.     However, be warned that the NFS lockdemons on some UNIX systems do not
  1257.     work properly, i.e. you might lose mail that arrives at the exact moment
  1258.     when you are quitting PCElm, when both PCElm and the MTA will try to
  1259.     write to the mailbox.
  1260.  
  1261. 9) Notes on Multimedia Mail
  1262.     PCElm tries to do something meaningful with mails that are MIME-
  1263.     compliant. MIME is defined in RFCs 1341 to 1344; if you want to
  1264.     use MIME intensively, I suggest that you at least browse through
  1265.     these RFCs to get an idea for what MIME is and what it can do for
  1266.     you.
  1267.  
  1268.     Let me warn you that the MIME-stuff in PCElm is not for the faint
  1269.     of heart. I developed the MIME-interface for PCElm because I was asked
  1270.     to hold a seminar on MIME at a convention and wanted some hands-on
  1271.     experience with it. Obviously, MS-DOS is not the operating system of
  1272.     choice for multimedia applications; MS-Windows, OS/2 or Unix are much
  1273.     better suited for this.
  1274.     OK, for those I did not frighten away yet, here goes...
  1275.  
  1276.     PCElm normally makes use of the "metamail" program to do something with
  1277.     MIME-mails. This is part of the "Let other programs do the dirty
  1278.     work" maxim that PCElm follows when sending mails; this has two
  1279.     advantages: you can select a program of your choice to do something
  1280.     with the multimedia mails, and it is standardized in RFC 1343.
  1281.  
  1282.     "metamail" is available by anonymous FTP from thumper.bellcore.com,
  1283.     in directory /pub/nsb/mm/dos. I was not sure if I can legally
  1284.     include it in the PCElm distribution, so I did not.
  1285.  
  1286.     As detailed in Chapter 3, you tell PCElm what program to use to
  1287.     display MIME-mails by specifying the name of the program with the
  1288.     multimedia parameter. PCElm can tell that the mail you are reading
  1289.     now is a MIME-compliant mail by looking at the MIME-Version header
  1290.     line of the mail. If it is there, it is a MIME mail.
  1291.     To determine what _kind_ of MIME mail it is, metamail (which is
  1292.     spawned by PCElm) then looks at the Content-Type header line.
  1293.     Depending on what metamail finds there, metamail then spawns a
  1294.     GIF- or JPEG-viewer for pictures, a MOD-player for audio mails or
  1295.     whatnot. To find out what program to spawn for what type of mail,
  1296.     metamail looks into a configuration file called mailcap.
  1297.  
  1298.     Mailcap entries are quite simple: on the left hand of a line, you
  1299.     specify what the Content-Type header line looks like, and on the right
  1300.     hand you specify what program is used to "display" the mail.
  1301.  
  1302.     An example mailcap file might look like this:
  1303.  
  1304.     # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  1305.     #
  1306.     # Permission to use, copy, modify, and distribute this material
  1307.     # for any purpose and without fee is hereby granted, provided
  1308.     # that the above copyright notice and this permission notice
  1309.     # appear in all copies, and that the name of Bellcore not be
  1310.     # used in advertising or publicity pertaining to this
  1311.     # material without the specific, prior written permission
  1312.     # of an authorized representative of Bellcore.  BELLCORE
  1313.     # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
  1314.     # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
  1315.     # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  1316.     #
  1317.     # Prototype Mailcap file
  1318.     # Note that support for text & multipart are "built in" to metamail,
  1319.     # as are rudimentary support for message, and application.
  1320.     # However, any of these may be overridden in mailcap.
  1321.     #
  1322.     # Note that users may override or extend this with a .mailcap
  1323.     # file in their own directory.  However, there is NO NEED
  1324.     # for them to copy entries from this file, as metamail will
  1325.     # pick up entries from both the system and personal mailcap files.
  1326.     #
  1327.     audio/*; audio %s
  1328.  
  1329.     image/jpeg; hiview %s
  1330.     image/gif; svga %s
  1331.     image/*; cview %s+
  1332.     message/partial; showpart %s %{id} %{number} %{total}
  1333.     message/external-body; showext %s %{access-type} %{name} %{site} %{directory} %{mode} ; needsterminal
  1334.  
  1335.     # If you have an interactive Postscript interpreter, you should think carefully
  1336.     # before replacing lpr with it in the following line, because PostScript
  1337.     # can be an enormous security hole.  It is RELATIVELY harmless
  1338.     # when sent to the printer...
  1339.     application/postscript ; print %s ; label="A Postscript File"
  1340.  
  1341.     Note that the Content-Type and the program names and possible options
  1342.     are seperated by ";".
  1343.  
  1344.     Metamail looks for the mailcap file in both the root and the "current"
  1345.     directories.
  1346.  
  1347.     One special case for MSDOS is the message/partial subtype. This MIME
  1348.     Content-Type is used to cope with multipart mails, i.e. mails that
  1349.     would have been too long for a single mail message and have therefore
  1350.     been split into several parts. PCElm can cope with this by using the
  1351.     'showpart.bat' batchfile included in this distribution; however,
  1352.     showpart.bat can only handle one multipart message at a time in
  1353.     PCElm 3.2.
  1354.  
  1355.     Please check the above mentioned RFCs for more information about MIME
  1356.     and about metamail and how to set it up. You might also find the
  1357.     newsgroup comp.mail.mime interesting if you are on Usenet.
  1358.  
  1359.     You can, of course, use other programs than metamail to display
  1360.     MIME mails. Just put the name of your favourite program in the
  1361.     pcelm.rc file, in the parameter 'multimedia'.
  1362.  
  1363.     Well, to conclude this chapter, I have successfully decoded both
  1364.     single- and multipart pictures and audio mails with PCElm, so I guess
  1365.     that the simpler applications of MIME work with PCElm. Be warned,
  1366.     however, that many of the nicer things in MIME won't work with MSDOS,
  1367.     be it because of memory constraints (640 kB just is not enough), be it
  1368.     because MS-DOS is a singletasking operating system. Also, sending MIME
  1369.     mails is not supported yet. Yet!
  1370.  
  1371. 10) Languages
  1372.     PCElm can be configured to speak other languages than English. This
  1373.     is possible because all messages displayed on the screen are contained
  1374.     in a seperate message file, 'pcelm.msg'. Currently, message files
  1375.     in English ('pcelm.eng'), German ('pcelm.deu'), Dutch ('pcelm.ned')
  1376.     and Spanish ('pcelm.esp') exist - if you create your own message file
  1377.     in another language, be sure to send it to us, so that we can include
  1378.     it (with proper credit) in the next distribution.
  1379.     The appropriate message file must be copied (or renamed) to 'pcelm.msg'
  1380.     before using PCElm.
  1381.  
  1382.     The message file has the following format:
  1383.     Empty lines and lines starting with a hash '#' are ignored.
  1384.     Other lines have the form
  1385.     <number>:<text>, for example
  1386.     150:"This is a line"
  1387.  
  1388.     Never change the message number - PCElm uses this number to be able
  1389.     to display the right message at the right time.
  1390.     You can change the text in quotes to your liking, but be warned that
  1391.     PCElm displays all and every message just as it appears in the message
  1392.     file. If you do something wrong, you will end up with a fancy-looking
  1393.     display. Keep a copy of the original message file for safety's sake.
  1394.  
  1395.     You can use escaped decimals in the message file (e.g. \\32 is ' ') as
  1396.     described in chapter 3.1.
  1397.  
  1398.     You can also change the keys that are used as command keys in the main
  1399.     menu - message 83 holds all keys (except function keys) that work.
  1400.     This is a good thing if you want to keep the commands intuitive;
  1401.     'c' for 'change mailbox' is good to remember in English, but (for example)
  1402.     a German user would want 'W' for 'Wechsele Postfach' as a hotkey.
  1403.  
  1404.     If you create a message file in a new language, we would like to have
  1405.     it and to include it (with proper credit given) in a future release
  1406.     of PCElm.
  1407.  
  1408.     This manual is for the English version of PCElm. Foreign language versions
  1409.     use different hotkeys for most of the commands. At the time of this
  1410.     writing, this manual exists only in English, but you should be able
  1411.     to figure out which keys do what from the help screen (press F1 to
  1412.     see the help screen, regardless of what language you have configured).
  1413.     Initial setup is the same for all versions of PCElm however.
  1414.  
  1415.  
  1416. 11) Credits
  1417.     We would like to thank Dave Taylor for programming the original ELM
  1418.     and for the idea for the user interface used both in ELM and PCElm.
  1419.     Thanks to Syd Weinstein, coordinator of the USENET ELM, for his
  1420.     good work.
  1421.     Thanks to Barksdale Garbee II, N3EUA, Gerard van der Grinten, PA0GRI,
  1422.     Phil Karn, KA9Q, and Dave Trulli, NN2Z, for creating BM.
  1423.  
  1424.     Thanks to Andrew Hardie, ash@omega.uucp, who suffered through the
  1425.     early beta versions and wins grand prize in bug-finding :-).
  1426.  
  1427.     Thanks to Daniel Santos y Guillen (daniel@labdig.edu.ar) for the
  1428.     spanish message file, Onno Hardebol (ohb@oceonics.nl) for the Dutch
  1429.     message file, Ian Justman (ianj@ijpc.uupc) and Jack Otto
  1430.     (Jack.Otto@vuw.ac.nz) for their work on interfacing PCElm with Waffle.
  1431.  
  1432.     We would also like to point out that PCElm is (apart from the idea
  1433.     for the user interface) not in any way derived from or connected
  1434.     with ELM. If you are using USENET news, the group comp.mail.elm
  1435.     is NOT the place to ask questions about PCElm.
  1436.  
  1437. 12) The Future
  1438.     Just some things that _might_ be incorporated in PCElm in a future
  1439.     release and some that won't be:
  1440.  
  1441.     - a Windows 3.1 aware PCElm. Ask Wolfgang Siebeck (siebeck@infoac.rmi.de)
  1442.         for details. A beta version exists.
  1443.  
  1444.     - a version of PCElm for OS/2. PCElm _might_ run under OS/2 in the
  1445.         DOS window; I (still) have no way of finding out.
  1446.  
  1447.     - if I have the time (and user feedback is positive), I'd like to
  1448.       improve the MIME stuff and make PCElm really MIME-compatible.
  1449.  
  1450.     - incorporating a newsreader into PCElm - this has been on the wish-
  1451.       list for some time, but as there are some quite good newsreaders
  1452.       out there by now, as nobody seems to be really hot for this and as
  1453.       I face (again) the dilemma that every news-package out there seems
  1454.       to use its own format for storing articles I'll probably scrap this.
  1455.  
  1456.