home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / elm / FAQ next >
Encoding:
Internet Message Format  |  1993-12-16  |  57.7 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nic.hookup.net!swrinde!sdd.hp.com!caen!batcomputer!ghost.dsi.unimi.it!ghost.dsi.unimi.it!serini
  2. From: serini@ghost.dsi.unimi.it (Piero Serini)
  3. Newsgroups: comp.mail.elm,comp.answers,news.answers
  4. Subject: Elm Mail User Agent FAQ - Frequently Asked Questions
  5. Followup-To: poster
  6. Date: 17 Dec 1993 01:49:43 +0100
  7. Organization: Computer Science Dept. - Milan University
  8. Lines: 1531
  9. Sender: serini@ghost.sm.dsi.unimi.it
  10. Approved: news-answers-request@MIT.Edu
  11. Distribution: world
  12. Expires: +1 month
  13. Message-ID: <2eqvn7$ctm@ghost.sm.dsi.unimi.it>
  14. Reply-To: Elm-FAQ@ghost.dsi.unimi.it
  15. NNTP-Posting-Host: ghost.dsi.unimi.it
  16. Summary: This posting contains a list of Frequently Asked
  17.          Questions (and their answers) about the Elm Mail
  18.      User  Agent.  It  should  be read by  anyone who
  19.      wishes to post to the comp.mail.elm newsgroup.
  20. Xref: senator-bedfellow.mit.edu comp.mail.elm:12638 comp.answers:3067 news.answers:15918
  21.  
  22. Archive-name: elm/FAQ
  23. Last-modified: 1993/12/15
  24. Version: 3.2
  25.  
  26.  
  27.                         Frequently Asked Questions
  28.                                Elm 2.4 [23]
  29.  
  30.  
  31.                                Piero Serini
  32.                         serini@ghost.dsi.unimi.it
  33.                       piero@strider.st.dsi.unimi.it
  34.  
  35.                         Last Update: Dec 15 1993
  36.                         This FAQ's version:  3.2
  37.  
  38. This is an unofficial Frequently Asked Questions (with answers) list
  39. about Elm. Syd Weinstein kindly checked this, but he is not responsible
  40. for the errors in the answers, which are my fault, unless otherwise
  41. specified.  I do NOT claim to be a member of the Elm Development Group.
  42.  
  43.  
  44. 0.0     Organization
  45.  
  46.     This FAQ is posted monthly, the 15th, on news.answers,
  47.     comp.answers and comp.mail.elm.
  48.     It is available by anonymous ftp from ghost.dsi.unimi.it
  49.     [149.132.2.1]: ~ftp/pub/Elm/.
  50.     It is also available upon mail request.
  51.     A file containing instructions on how to buid and install
  52.     Elm under Next in in ~ftp/pub/Elm/Next.Z.
  53.  
  54.     This FAQ is NOT reposted if modified, until the next issue
  55.     date. I will modify the ftp file only.  I suggest using ftp
  56.     to get the latest version of this document.
  57.  
  58.     This FAQ refers to latest patchlevel I put my hands on.
  59.     Questions about a specific patchlevel are kept if
  60.     of common interest. Actually, all relevant questions
  61.     concerning PL 21 are kept int this file, as many users
  62.     still have 21 installed.
  63.     
  64.         This FAQ consists of five parts:
  65.         0.*     Organization.
  66.         1.*     Operational Questions (and answers).
  67.         2.*     Installation Questions (and answers).
  68.     3.*    Filter Questions (and answers).
  69.         This part is maintained by Jan Djarv (Jan.Djarv@sa.erisoft.se)
  70.     4.*    Bugs list.
  71.         5.*     Archivers, what they archive, how to download.
  72.  
  73.  
  74.     Here is an (incomplete) questions list, followed by an (incomplete)
  75.     answers part. This list (and answers) are now divided into three
  76.     major groups:
  77.     - The "Operational" group is dedicated to those having any problem
  78.       running Elm.  This part also contains a few general questions,
  79.       like "What is Elm?"
  80.     - The "Installation" group is dedicated to those who want to install
  81.       Elm and don't succeed in.
  82.     - The "Filter" group is dedicated to filter, a great utility 
  83.       which appears in the 70% of the users' questions.
  84.  
  85.     Please, mail me any comment, suggestion, correction
  86.     to any of the addresses above, with Subject: Elm-FAQ
  87.     Answers are from the "Elm montly posting" or from comp.mail.elm
  88.     and proper credit is given before each answer.
  89.  
  90. 1.0     Operational Questions
  91.  
  92. 1.01    What is Elm?
  93. 1.02    Which is Elm current version?
  94. 1.03    Where can I find the distribution?
  95. 1.04    Where do I get the "Elm Reference Guide" and the other docs ?
  96. 1.05    How to get frm(1L) to only show new mail?
  97. 1.06    How do I get ELM to read a mailbox other than /usr/mail/<me> ?
  98. 1.07    How do I save a message without deleting it?
  99. 1.08    How do I attach a `signature' to the bottom of outgoing messages?
  100. 1.09    Why do I get the remote signature on replies to local mail?
  101. 1.10    How can I get elm to NOT expand the alias list on outgoing msgs?
  102. 1.11    How does one mark a message as urgent?
  103. 1.12    How can I get a line like "Quoting foo:" before a replied-to mail?
  104. 1.13    How do i customize the ">" sign ??
  105. 1.14    Can I tag uuecoded files in the order I want and then uudecode them?
  106. 1.15    Is there any way to bounce all the tagged messages with ONE command ? 
  107. 1.16    Does ELM have MIME (metamail) support?
  108. 1.17    How not to include headers in outward bound mail?
  109. 1.18    Is it possible to save mail messages without the headers?
  110. 1.19    How do I upgrade my ELM aliases from 2.3 to 2.4PL23 ?
  111. 1.20    Elm seems to ignore HOME environment variable. Why?
  112. 1.21    Sometimes Elm (PL < 21) seems to join two messages in one. Why?
  113. 1.22    How can ELM be used for an automatic reply?
  114. 1.23    How to list your mail from the oldest to the newest?
  115. 1.24    How to use elmheaders file?
  116. 1.25    How to change the fullname in sent mail ?
  117. 1.26    "Alias too long" or string too long errors.
  118. 1.27    How to crypt mail in elm ?
  119. 1.28    8 bit characters configuration?
  120. 1.29    Sun mailtool attachments and elm?
  121. 1.30    How can I save outgoing mail ?
  122. 1.31    Can I get an automatic receipt when my message is actually read?
  123. 1.32    Get a copy of message(s) into the edit buffer when composing a reply?
  124. 1.33    How can I print in Elm ?
  125. 1.34    I don't have an "~/.elm/elmrc" file!
  126. 1.35    How can I change a configuration setting for all of my users?
  127. 1.36    What do `Priority, Expires and Action' headers mean?
  128. 1.37    What does the `Precedence' header mean?
  129. 1.38    How can I get a `Reply-To' header in all of my messages?
  130. 1.39    ti/te strings for the xterm in termcap are wrong.
  131. 1.40    Can I edit and forward without having the prefix (>) added
  132. 1.41    Can I take an addres from a mail and put it in the aliases list?
  133. 1.42    sendmail 565c+IDA + Elm = SEGV. Why ?
  134. 1.43    Can ELM use MH-style inboxes?
  135. 1.44    How can I enter a message that is in a folder into a message ?
  136. 1.45    How can I get a complete elmrc file ?
  137.  
  138. 2.0    Installation Questions
  139.  
  140. 2.01    On SCO Xenix, all mail is from user anonymous. Why?
  141. 2.02    Elm doesn't work on Next. Why?
  142. 2.03    Compiling with Microsoft UNIX C Compilers won't work. Why?
  143. 2.04    Various problems on Unix 286.
  144. 2.05    Configure won't run on HP-UX. Why?
  145. 2.06    Configure won't run on SCO XENIX 2.2.1. Why?
  146. 2.07    Will Elm work on SGI Indigo?
  147. 2.08    I have problems compiling elm2.4 on HP/Apollo
  148. 2.09    I have problems compiling elm2.4 on IBM AIX
  149. 2.10    Compiling elm 2.4 under NS 3.0
  150. 2.11    Elm sends 'empty mail' on 386BSD: why?
  151. 2.12    Why can't I get SGI to work for non ROOT?
  152. 2.13    I have problems p)rinting messages in 2.4PL20
  153. 2.14    Elm2.4 PL20 - 'x' key causes segmentation violation
  154. 2.15    readmsg:illegal option -- I. Why?
  155. 2.16    Forms don't work. Why?
  156. 2.17    ELM does not recognize VMS mail. Why?
  157. 2.18    Huge headers cause Memory Fault. Why?
  158. 2.19    Can I use elm for posting and replying to news?
  159. 2.20    Compile fails on lib/strftime.c [PL23].
  160. 2.21    Compile error on SGI Crimson.
  161. 2.22    Problem compiling elm on DEC Alpha, OSF/1 v.1.2
  162. 2.23    I can't build Elm 2.4PL23 on Sun 386i SunOS 4.0.2
  163.  
  164. 3.0    Filter Questions
  165.     This part is maintained by Jan Djarv (Jan.Djarv@sa.erisoft.se)
  166.  
  167. 3.01    What documentation exists for filter?
  168. 3.02    What do I need to get filter working?
  169. 3.03    How can I tell if my system understands .forward files?
  170. 3.04    What do I put in my .forward file?
  171. 3.05    What is the simples filter-rules file I can write to test filter?
  172. 3.06    How do I check my filter-rules for typos and other errors?
  173. 3.07    Why doesn't the output from filter -r match my filter-rules file?
  174. 3.08    Can I have 'or' in my filter-rules?
  175. 3.09    Can I make filter execute more than one rule for a message?
  176. 3.10    How do I do multiple actions for one rule?
  177. 3.11    What headers are available in the filter-rules?
  178. 3.12    How do I forward mail to an elm alias from filter?
  179. 3.13    Filter executes my script but the script doesn't work.
  180. 3.14    How do I capture the message fed to a script by execute/executec
  181. 3.15    Both execute and executec feeds the message as standard input to
  182. 3.16    What if I what to do something based on the contents of a message
  183. 3.17    How can I make filter operate on all messages in a folder?
  184. 3.18    Can I use filter to automatically answer my mail (like vacation)?
  185. 3.19    My filter doesn't recognize executec/matches.
  186. 3.20    Filter sometimes munges up my folders, or looses messages. Why?
  187. 3.21    Why doesn't elm mark mail I saved in a folder with filter as new (N)?
  188. 3.22    Why does filter join adjacent messages together?
  189. 3.23    What other mail filter programs exists?
  190. 3.24    554 "|/usr/local/bin/filter"... unknown mailer error
  191.  
  192.  
  193. 1.0    Operational Answers
  194. ---------------------------
  195.  
  196. 1.01    What is Elm?
  197.  
  198.     From Elm documentation:
  199.         Currently on Unix, there seems to be a preponderence
  200.     of line-oriented software.  This is most unfortunate as most
  201.     of the software on Unix tends to be pretty darn hard to use!
  202.     I believe that there is more than a slight correlation between
  203.     the two, and, since I was myself having problems using
  204.     "mailx" with high-volume mail, I created a new mail system.
  205.  
  206.         In the lingo of the mail guru, Elm is a "User Agent" system,
  207.         it's designed to run with "sendmail" or "/bin/rmail" or any
  208.     other UNIX Mail Transport Agent (according to what's on your
  209.     system) and is a full replacement of programs like "/bin/mail"
  210.     and "mailx".  The system is more than just a single program,
  211.     however, and includes programs like "frm" to list a 'table
  212.     of contents' of your mail, "printmail" to quickly paginate mail
  213.     files (to allow 'clean' printouts), and "autoreply", a system-
  214.     wide daemon that can autoanswer mail for people while they're
  215.     on vacation without having multiple copies spawned on the system.
  216.  
  217. 1.02    Which is Elm current version?
  218.  
  219.     Elm current version is 2.4 PatchLevel (PL) 23.
  220.  
  221. 1.03    Where can I find the distribution?
  222.  
  223.     There's a list of sites distributing Elm at the bottom of this
  224.         file (4.*     Archivers, what they archive, how to download.).
  225.     In addition, new releases will be posted to comp.sources.unix,
  226.     patches will be posted to comp.sources.bugs.
  227.     After patches have been proven and out for a while, they will
  228.     be posted to comp.sources.unix.
  229.  
  230.     Elm portings or clones for DOS, Windows and OS/2 are available as
  231.     listed below:
  232.  
  233.     DOS/WINDOWS:
  234.     * Peter Churchyard (pjc@cc.ic.ac.uk):
  235.     Elm-PC, a version I ported, is available by anon ftp from
  236.     lister.cc.ic.ac.uk:/pub/elm-pc.
  237.     A Windows version is available, too, in: /pub/winelm.
  238.  
  239.         * Mike O'Connor (mjo@msen.com):
  240.         There is a package called PC-Elm that's an imitation of Elm (i.e. it
  241.         didn't come from Elm's source tree). It's available for anonymous FTP
  242.         from oak.oakland.edu:/pub/msdos/ka9q-tcpip/, but it's supposed to
  243.         interoperate with UUPC and possibly other common PC UUCP mailers.
  244.  
  245.         * Russell Schulz (russell@alpha3.ersys.edmonton.ab.ca):
  246.     Simtel has it available in the ka9q-tcpip directory as pcelm31.zip
  247.     oak.oakland.edu:/pub/msdos/ka9q-tcpip/pcelm31.zip
  248.     wuarchive.wustl.edu:/mirrors/msdos/ka9q-tcpip/pcelm31.zip
  249.     ftp.uu.net:/systems/ibmpc/msdos/simtel20/ka9q-tcpip/pcelm31.zip
  250.  
  251.     OS/2:
  252.     * Richard j. Wyble (rjw@rjwhome.dmc.com):
  253.     Elm version 3.11 for OS/2 is available by anon ftp from
  254.     ftp-os2.nmsu.edu:/pub/os2/2.x/network. The two files are
  255.     elm23exe.zip and elm23src.zip.
  256.  
  257. 1.04    Where do I get the "Elm Reference Guide" and the other docs ?
  258.  
  259.     * From the monthly posting:
  260.     Elm has several documents (over 100 pages worth of doc)
  261.     that were written to help users install, support and use Elm.
  262.     These are in the doc directory of the source distribution.
  263.     Contact your systems administrator for a copy of the documents.
  264.     For those sites that do not have troff (either di-troff or
  265.     o-troff) and do have postscript printers, dsinc (dsinc.dsi.com)
  266.     has a copy of the docs already in postscript format available
  267.     for anonymous uucp or ftp.
  268.  
  269.     * Adam Lasnik (keys@nwu.edu):
  270.     [about TEXT documentation]
  271.     So, anyone who wants them, they're available for FTP on
  272.     raven.alaska.edu in /pub/elmguidespl21.  The files are gzipped;
  273.     if that's a problem I will replace them with compressed editions.
  274.  
  275.     * David W. Tamkin (dattier@genesis.Mcs.Com):
  276.     They're available for FTP on genesis.mcs.com in subdirectories
  277.     of ~ftp/mcsnet.users/dattier/elmguides.
  278.  
  279. 1.05    How to get frm(1L) to only show new mail?
  280.  
  281.     * Alan Thew (alan.thew@liverpool.ac.uk):
  282.     Try the fromwho program which IMHO is better tham frm and
  283.     allows you to type  "fromwho -n"  to show who has sent you
  284.     new mail amd what the subject line is.
  285.     Availabe from comp.sources.unix archives and needs an ANSI C compiler
  286.     (but will build on Suns with "unproto" software).
  287.  
  288.     * Syd Weinstein (syd@DSI.COM):
  289.     Better answer:
  290.         use nfrm, it will only show new mail.  nfrm is a link to frm.
  291.         There are other command line options to show various restrictions
  292.         see the frm(1) manual page.
  293.         possible status limitations are new, unread and old or any combination
  294.         of these.  typing frm -h yields:
  295.  
  296.     frm -- list from and subject lines of messages in mailbox or folder
  297.     Usage: frm [-n] [-v] [-s {new|old|read}] [filename | username] ...
  298.  
  299.     option summary:
  300.     -h      print this help message.
  301.     -n      display the message number of each message printed.
  302.     -Q      very quiet -- no output is produced.  This option allows shell
  303.         scripts to check frm's return status without having output.
  304.     -q      quiet -- only print summaries for each mailbox or folder.
  305.     -S      summarize the number of messages in each mailbox or folder.
  306.     -s    status only select messages with the specified status.
  307.         'status' is one of "new", "old", "unread" (same as "old"),
  308.         or "read".  The first letter need only be specified.
  309.     -v      print a verbose header.
  310.  
  311. 1.06    How do I get ELM to read a mailbox other than /usr/mail/<me> ?
  312.  
  313.     Elm uses the MAIL environment variable to read the correct
  314.     mailbox.
  315.  
  316. 1.07    How do I save a message without deleting it?
  317.  
  318.     C)opy it instead of s)aving.
  319.  
  320. 1.08    How do I attach a `signature' to the bottom of outgoing messages?
  321.  
  322.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  323.     Create a file, say ".signature" in your home directory, with your
  324.     signature.  Then edit your .elm/elmrc file so that it says:
  325.  
  326.     localsignature = ~/.signature
  327.     remotesignature = ~/.signature
  328.     sigdashes = ON
  329.  
  330. 1.09    Why do I get the remote signature on replies to local mail?
  331.  
  332.         From the monthly posting:
  333.         In Elm 2.4, any address with an ! or @ in it is considered
  334.         remote, without those characters, its local.
  335.         Any reply is qualified to prevent alias expansion.  If you had
  336.         an alias in your private Elm aliases that matched the name of a
  337.         user on your system, but that alias did not point to that user,
  338.         there would be no way to reply to the message.  It would end up
  339.         going to the alias name, not the user that mailed you.  To
  340.         prevent this, Elm fully qualifies (adds the site name) to a
  341.         reply address.  This makes the simplistic signature detector
  342.         think that the message is 'remote'. This is not slated to
  343.         change until 3.0.
  344.  
  345. 1.10    How can I get elm to NOT expand the alias list on outgoing msgs?
  346.  
  347.         From the monthly posting:
  348.     Problem is if a list has, say, 100 names in it then sending to
  349.     the list expands every single one of the 100 names. I would like
  350.     the message to have the "To" line = the name of the list itself
  351.     and have the actual recipients' names not appear.
  352.         You can't and don't want to. (and yet you can also) An alias is
  353.         a mechanism of making Elm address a message to multiple
  354.         people.  However, when the message gets to its destination, Elm
  355.         also has to allow that person do a group reply.  If the message
  356.         only has your local private elm alias in it, the group reply
  357.         will try and go to that alias name.  Unfortunately, that name
  358.         is meaningless to that other person (its private to both Elm
  359.         and you).
  360.  
  361.         There are two solutions:
  362.  
  363.         The preferred if replies are desired:
  364.                 Have your mail administrator create a file include
  365.                 alias for you in your MTA (sendmail, et al).. This is
  366.                 usually of the type
  367.  
  368.         alias   :include:/some/path/to/a/file
  369.  
  370.         where the file would be in a place you control and you have write
  371.     access to the file.  Then you can add/drop members of the list, and
  372.         the mail just goes to the alias, and, someone sending to
  373.         alias@your.system will be able to send to all members. (group
  374.         reply works correctly)
  375.  
  376.         The less preferred method: (no group reply is possible)
  377.                 Send the message to yourself, with a bcc to the Elm
  378.                 alias.
  379.         Of course, the Bcc: won't be expanded by the MTA internal to
  380.         the message, so it won't appear in the message.
  381.  
  382. 1.11    How does one mark a message as urgent?
  383.  
  384.     * David W. Tamkin (dattier@genesis.MCS.COM):
  385.     Having an Action: header sets the recipient's A flag (if the recipient
  386.     uses Elm); in 2.3 have a Priority: header set the U flag no matter what
  387.     it said (even "Priority: none" or "junk" or "low").  In 2.4 there are
  388.     certain precoded Priority: values that do not turn on the U flag
  389.     [Can anyone supply a list?], but anything else will.
  390.  
  391.     * Jan Djarv <Jan.Djarv@sa.erisoft.se>:
  392.     Normal or non-urgent (case independent) does not turn on the U flag.
  393.     Also 'Importance: 2' turns on the U flag (exactly 2).
  394.     I dont know if this is an old artifact. I have never seen any
  395.     Importance header.
  396.  
  397. 1.12    How can I get a line like "Quoting foo:" before a replied-to mail?
  398.  
  399.     Joshua A. Laff (laff@cs.uiuc.edu):
  400.     from $HOME/.elm/elmrc:
  401.     # attribution string for replies ('%s' is the author of original
  402.     # message)
  403.     attribution = In our previous episode, %s said:
  404.  
  405. 1.13    How do i customize the ">" sign ??
  406.  
  407.     Sven Guckes (guckes@math.fu-berlin.de):
  408.     You can edit the "quote prefix" by editing the "elmrc"
  409.     ($HOME/.elm/elmrc). Just change the value of the variable "prefix".
  410.  
  411.     # prefix sequence for indenting included message text
  412.     prefix = >_
  413.  
  414.     Note:  The '_' stands for a <space>.
  415.  
  416. 1.14    Can I tag uuecoded files in the order I want and then uudecode them?
  417.  
  418.     * Alan Edmonds (alan@ernest.itg.ti.com):
  419.     I save all of the items into a single folder,
  420.     order not important (yet).  Bring up elm on the single folder.
  421.     Go to the options screen and select "Sort by Subject."  Go back
  422.     to the main screen.  All of the items are (usually) in the
  423.     proper order.  I can then tag related messages and save them
  424.     (in order) to another folder.  I then run
  425.     'uucat new_folder | uudecode' to decode the pieces.  Works great.
  426.     I can go back to the original folder if something gets messed up.
  427.     I don't have to trim the headers out of each part (uucat does this),
  428.     and elm figures out the order for me.
  429.     (Ask Alan Edmonds for uucat source.)
  430.  
  431.     * Steve Faiwiszewski (stevef@bony1.bony.com):
  432.     UUdecode expects to decode a single uuencoded file. It
  433.     knows nothing about multiple parts, and certainly has no knowledge
  434.     of the correct sequencing.
  435.     Here's what I do:  Typically, I receive a multipart uuencoded file
  436.     with the subject line of each msg containing the part number, so I can
  437.     get the parts ordered properly by telling Elm to sort by Msg
  438.     Subject.  I then save all the parts to a folder, and run it through
  439.     this program I found a long time ago, called unpack (source follows).
  440.     The neat thing about this program, is that you can append many
  441.     uuencoded files to the same folder, and unpack will do the right
  442.     thing - as long as all the parts are ordered correctly, and the
  443.     "begin" line of each part 1 contains a unique file name.
  444.     Invoke it like this: "unpack < foldername"
  445.     I guess tagging and piping should work with it too.
  446.     (Ask Steve Faiwiszewski for unpack source.)
  447.  
  448. 1.15    Is there any way to bounce all the tagged messages with ONE command ? 
  449.  
  450.     Chip Rosenthal (chip@chinacat.unicom.com):
  451.     Save the following to a script in your personal bin directory,
  452.     say `bounce':
  453.  
  454.         : use /bin/sh
  455.         : ${ELMSTATE?} ${1?}
  456.         sed -n -e 's/^S//p' $ELMSTATE | while read mssgno ; do
  457.                 echo "Bouncing message $mssgno to $@ . . ."
  458.                 readmsg -a $mssgno | rmail $@
  459.         done
  460.  
  461.     When you run:  !bounce addr ...
  462.     then all of the tagged messages will be bounced to the indicated
  463.     address(es). If no messages are tagged, then the currently selected
  464.     message will be bounced.
  465.  
  466. 1.16    Does ELM have MIME (metamail) support?
  467.  
  468.     MIME allows for sending and receiving of Messages compliant
  469.     to the Multipurpose Internet Mail Extension (RFC 1341).
  470.     MIME provides a way to attach binary, graphic, audio,
  471.     video, postscript and other files. MIME doesn't necessarily
  472.     need graphics capabilities on your display, but its useful.
  473.  
  474.     If you have intalled Nathaniel Borenstein's metamail package for
  475.     displaying MIME messages, elm can make use of it.  If you didn't
  476.     have metamail installed you might want to obtain a copy of it.
  477.     The most recent version is on thumper.bellcore.com [128.96.41.1].
  478.  
  479.     Compiling of elm even with MIME support enabled would not
  480.     depend on the metamail package. But you would not be able to
  481.     use nearly all of the MIME features as long as you don't have
  482.     metamail installed. Metamail with its companion programs
  483.     (mmencode) must be installed somewhere in the search path,
  484.     usually /usr/local/bin.
  485.  
  486.     Andrew Cagney did a lot of work to use ELm with MIME. Send
  487.     mail to acagney@macadam.mpce.mq.edu.au for details.
  488.  
  489. 1.17    How not to include headers in outward bound mail?
  490.  
  491.     Problem:
  492.     all outward bound mail still includes the following lines,
  493.     even if I have the "noheader = ON" line in my .elmrc:
  494.  
  495.     X-Mailer: ELM [version 2.4 PL21]
  496.     MIME-Version: 1.0
  497.     Content-Type: text/plain; charset=US-ASCII
  498.     Content-Transfer-Encoding: 7bit
  499.     Content-Length: 67
  500.  
  501.     Syd Weinstein (syd@DSI.COM):
  502.     "noheader = ON" means when the message is copied into the buffer
  503.     for a reply or forward.
  504.     The "X-Mailer:" header is controlled at Configure time.  There
  505.     is a compile time option to produce or not produce it.
  506.     The three "Content-*" headers are always going to be produced by 2.4.
  507.  
  508. 1.18    Is it possible to save mail messages without the headers?
  509.  
  510.     * Chip Rosenthal (chip@chinacat.unicom.com):
  511.     Use: !readmsg -n >filename
  512.     If you want to save a few keystrokes, you can encapsulate this
  513.     in a shell script to go in your personal bin directory.
  514.  
  515.     * Syd Weinstein (syd@DSI.COM):
  516.     Note that some of the newer features of readmsg are only
  517.     available in later 2.4 releases
  518.  
  519. 1.19    How do I upgrade my ELM aliases from 2.3 to 2.4PL23 ?
  520.  
  521.         Syd Weinstein (syd@DSI.COM):
  522.     All I did, was make sure 2.4 as installed, and then had each
  523.     user run newalias and I ran newalias -g.  The aliases.text
  524.     file is upwards compatible.  The old newalias converted
  525.     aliases.text to aliases.data and aliases.hash the 2.4 newalias
  526.     converts aliases.text to aliases, aliases.dir and aliases.pag.
  527.     If you don't have those three new files, you didn't install
  528.     2.4 correctly and are still running 2.3's newalias.
  529.  
  530. 1.20    Elm seems to ignore HOME environment variable. Why?
  531.  
  532.         Syd Weinstein (syd@DSI.COM):
  533.     This is a feature.  Elm ignores $HOME, so that when su'd you read
  534.     the right mail file.  Its a choice of one or the other and we chose
  535.     to allow su over $HOME.
  536.  
  537. 1.21    Sometimes Elm (PL < 21) seems to join two messages in one. Why?
  538.  
  539.         Syd Weinstein (syd@DSI.COM):
  540.     Early versions of Elm 2.4 had a problem with messages with bad content
  541.     length headers. I'd update to a more recent version when 21 comes out
  542.     in a bit.
  543.  
  544.     Compiler's Note: now PL 23 is out. I chose to report this Question
  545.     as it is so a strange behaviour (mail still reads the mailbox
  546.     correctly) a person can get mad about it :)
  547.  
  548. 1.22    How can ELM be used for an automatic reply?
  549.  
  550.     Tim McNeil (sps@bml4380.cpg.cdc.com):
  551.     You need to install the "auto reply daemon" supplied with elm
  552.         and then make use of the autoreply command.
  553.  
  554. 1.23    How to list your mail from the oldest to the newest?
  555.  
  556.     Arnaud Girsch (Arnaud.Girsch@INSA-Lyon.FR):
  557.     You can change the sortby= in your .elm/elmrc file, or change in menu
  558.     (O)ption, and then (S)orting criteria .... It allows you to choose
  559.     lots of different order .. and  you can choose whatever you want
  560.  
  561. 1.24    How to use elmheaders file?
  562.  
  563.     Arnaud Girsch (Arnaud.Girsch@INSA-Lyon.FR):
  564.     You only have to create a file named elmheaders, a text file 
  565.     where you put all the lines you want to be seen in the header !
  566.     If you redefine an existing header, it'll take it's place.
  567.     Example: if you want to redefine your Reply-To: header,
  568.     just create the file with the first line:
  569.         Reply-To: myaddress@node.domain.country
  570.  
  571. 1.25    How to change the fullname in sent mail ?
  572.  
  573.     1) use the "fullname" option;
  574.     2) set the NAME environment variable.
  575.  
  576.     2) is useful if you want to change your name for a mail
  577.     only, without editing your elmrc file.
  578.  
  579.     Note that you might not be able to change fulname at all.
  580.     If your Elm is configured with DONT_ADD_FROM enabled
  581.     (run `elm -v' to see if it is), then Elm is *not* adding the
  582.     From: line.  The low-level mail transport is.
  583.     If this is the case (and it commonly is) you'll have to ask your
  584.     local administrator how to do it.  (If you have a `chfn' command
  585.     that might do it.)
  586.  
  587. 1.26    "Alias too long" or string too long errors.
  588.  
  589.     Errors are to be expected when trying to expand very long
  590.     aliases, mailing lists, and so on. This error is due
  591.     to the fixed lenght strings in Elm 2.xx, and will not
  592.     be fixed until 3.xx is released.
  593.  
  594. 1.27    How to crypt mail in elm ?
  595.  
  596.     Sven Guckes (guckes@math.fu-berlin.de):
  597.     You need these two "keylines":
  598.     [encode]
  599.     and
  600.     [clear]
  601.  
  602.     Just put your top secret messages in between these two lines.
  603.     See the "ELM Reference Guide", "5. Special Outgoing Mail Processing"
  604.     for an example.
  605.  
  606.     For all folks outside the US I might quote that little footnote:
  607.     "Unfortunately, at many non-US sites, it's quite probable that
  608.     you won't be able to use this feature since you won't have the
  609.     crypt() library available due to licensing restrictions."
  610.  
  611. 1.28    8 bit characters configuration?
  612.  
  613.     Hakan Sjogren (hakan@Sweden.Prime.COM)
  614.     reports both the problem and the solution:
  615.  
  616.     PROBLEM: When receiving mails having swedish characters
  617.     the display of these national characters on the terminal are wrong
  618.     when using ELM.  If I add the line
  619.     Content-type: text/plain charset=iso-8859-1
  620.     into this received mail, ELM displays correctly.
  621.     Since this is a normal situation I would assume ELM to display
  622.     full 8bit characters if the mail bandwith is set to 8bit.
  623.  
  624.     SOLUTION: The solution to this problem was to set the environment
  625.     variable LC_CTYPE=iso_8859_1 .
  626.  
  627. 1.29    Sun mailtool attachments and elm?
  628.  
  629.     Kurt Swanson (kurt@dna.lth.se):
  630.     > Has anyone hacked elm to support the Sun attachment
  631.     > style in the Openwindow's Mailtool?
  632.     This is handled by metamail, not well, unfortunately,
  633.     but handled that way in any case...
  634.  
  635. 1.30    How can I save outgoing mail ?
  636.  
  637.     Set the following in your elmrc file:
  638.  
  639.     # save a copy of all outbound messages?
  640.     copy = ON
  641.  
  642.     # save outbound messages by login name of sender/recipient even if the
  643.     # associated folder doesn't already exist?
  644.     forcename = OFF
  645.  
  646.     # save messages, incoming and outbound, by login name of
  647.     # sender/recipient?
  648.     savename = ON
  649.  
  650.     # where to save copies of outgoing mail to, default file is "=sent"
  651.     sentmail = ~/Mail/Spedita/sent
  652.  
  653. 1.31    Can I get an automatic receipt when my message is actually read?
  654.  
  655.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  656.     With Elm, you cannot.  Many people consider this an intrusion of
  657.     privacy, not a feature.
  658.  
  659. 1.32    Get a copy of message(s) into the edit buffer when composing a reply?
  660.  
  661.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  662.     Use the `readmsg' command.
  663.  
  664. 1.33    How can I print in Elm ?
  665.  
  666.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  667.     First thing you need to do is change the default print command Elm
  668.     gives you.  The compiled-in default of "cat %s | lp" is obsolete.
  669.     Simply use "lp" (or whatever) as your print command.  This will
  670.     pipe the message directly into the print command, and it will
  671.     leave stdout/stderr of the print command attached to your terminal.
  672.     That means that pass-through printing will work.  That means
  673.     problems and error messages will be displayed.  Making this change
  674.     might fix the problems you are having.  Even if it doesn't fix
  675.     them, at least now you'll be able to see the error diagnostics
  676.     rather than the mysterious `Printout failed' message.
  677.  
  678. 1.34    I don't have an "~/.elm/elmrc" file!
  679.  
  680.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  681.     From the main Elm menu select o)ptions then >)-save.  Now you do.
  682.  
  683. 1.35    How can I change a configuration setting for all of my users?
  684.  
  685.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  686.     By creating a global elmrc file.  Copy your personal elmrc file
  687.     to $libdir/elm.rc, where $libdir is the Elm library directory
  688.     that holds the help files and other such things.  Edit that file.
  689.     The values it provides will override the compiled-in defaults.
  690.  
  691. 1.36    What do `Priority, Expires and Action' headers mean?
  692.  
  693.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  694.     Not a whole hell of a lot.  These are Elm-isms.
  695.     Priority: If you put a value in this header, *any* value other
  696.         than `normal' or `non-urgent', then Elm will put a `U' on
  697.         the index screen to note the message as urgent.
  698.     Expires: You can specify an interval up to 8 weeks from now
  699.         (e.g. `7 days').  When that date has been passed, Elm will
  700.         put a `E' on the index screen to note the message as expired.
  701.     Action: You can use this header to specify some action for the
  702.         recipient to take, and Elm will do absolutely nothing with it.
  703.  
  704. 1.37    What does the `Precedence' header mean?
  705.  
  706.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  707.     This is *not* an Elm-ism.  It is a sendmail-ism. :-)  It allows
  708.     you to specify handling instructions for the mail transport.  If
  709.     you have to ask this question -- you don't want to mess with it.
  710.  
  711. 1.38    How can I get a `Reply-To' header in all of my messages?
  712.  
  713.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  714.     Create a file called ~/.elm/elmheaders that contains the single
  715.     line:
  716.  
  717.     Reply-To: joe@AcmeWidgets.COM
  718.  
  719.     The contents of this file are slapped onto the end of the headers
  720.     that Elm generates for an outgoing message.
  721.  
  722. 1.39    ti/te strings for the xterm in termcap are wrong.
  723.  
  724.     * David W Sanderson (dws@ssec.wisc.edu):
  725.     Whoever wrote the default termcap and/or terminfo descriptions
  726.     for xterm included in the ti/te strings the special escape sequences
  727.     to make xterm switch between the normal and alternate screen buffers.
  728.      These sequences are:
  729.  
  730.         \E[?47h        - use alternate screen buffer
  731.         \E[?47l        - use normal screen buffer
  732.  
  733.     The elm code is just fine as it is.  If you change it so that it
  734.     doesn't ever send ti/te, you'll just break elm for somebody else.
  735.     Fix your termcap/terminfo definition instead.
  736.  
  737.     If this won't work,
  738.     * Neil Weisenfeld (weisen@alw.nih.gov):
  739.     change usetite in your .elmrc file to:
  740.         usetite = OFF
  741.  
  742. 1.40    Can I edit and forward without having the prefix (>) added
  743.     to the mail body?
  744.  
  745.     Forward the mail, answering NO at the edit? question.
  746.     Then, in the send menu, instead of s)ending it, e)dit it.
  747.  
  748. 1.41    Can I take an addres from a mail and put it in the aliases list?
  749.  
  750.     David W. Tamkin (dattier@genesis.mcs.com):
  751.  
  752.     Return to the index screen, make sure the pointer or bar is on a
  753.     letter from that person, and press "a" twice.  The first "a" puts
  754.     you into the alias subsystem and the second says to create an alias
  755.     for the sender of the current letter.
  756.  
  757. 1.42    sendmail 565c+IDA + Elm = SEGV. Why ?
  758.  
  759.     * Paul Pomes (paul@uxc.cso.uiuc.edu):
  760.     Either fix your Elm to use correct GMT offsets or apply the following
  761.     patch from Mike Park <mikep@dragoman.com>.
  762.  
  763.     *** 5.11.0.16   1992/08/26 22:06:32
  764.     --- arpadate.c  1993/03/10 21:38:23
  765.     ***************
  766.     *** 423,428 ****
  767.     --- 423,440 ----
  768.       #endif /* LOG */
  769.             return(NULL);
  770.         }
  771.     + 
  772.     +    /*
  773.     +     * Some buggy mailers (ie elm 2.4.p13) can produce huge incorrect
  774.     +     * offsets.  Applying these offsets can cause the static array
  775.     +     * used by gmtime to be overrun on a NeXT OS3.0 causing sendmail
  776.     +     * to SEGV.
  777.     +     * Limit offsets to be +- 24 hours.
  778.     +     */
  779.     +    if (h_offset < -24)
  780.     +        h_offset = -24;
  781.     +    if (h_offset > 24)
  782.     +        h_offset = 24;
  783.       
  784.             /* is the year a leap year? */
  785.             if ((tm.tm_year % 4 == 0) &&
  786.  
  787. 1.43    Can ELM use MH-style inboxes?
  788.  
  789.     * Steve Simmons (scs@lokkur.dexter.mi.us):
  790.     Elm does not currently do this.  It has been suggsted for Elm 3.0, but
  791.     3.0 is off in the mists of the far future.
  792.  
  793. 1.44    How can I enter a message that is in a folder into a message ?
  794.  
  795.     * Syd Weinstein (syd@dsi.com):
  796.     Just use the readmsg command.  It is the external command that does
  797.     the same thing as ~m, and it understands the current mailbox sort
  798.     order, just like ~m.  From vi, I would put the cursor on the line
  799.     I want to repalce with the message and say "!!readmsg".
  800.  
  801. 1.45    How can I get a complete elmrc file ?
  802.  
  803.     From inside ELm, type 'o' (Options) then '>' (Save).
  804.     This will create a complete elmrc file, with all options and
  805.     lots of comments. Remember that a leading "#" on a line denotes
  806.     a comment. Hence a line with leadin "###" is ALSO a comment.
  807.  
  808.  
  809. 2.0    Installation Answers
  810. ----------------------------
  811.  
  812. 2.01    On SCO Xenix, all mail is from user anonymous. Why?
  813.  
  814.     From Elm README:
  815.         On SCO Xenix, if you are all mail is from user anonymous,
  816.     this is because the mail delivery agent should be
  817.     /usr/lib/mail/execmail instead of /usr/bin/rmail or /bin/rmail.
  818.  
  819. 2.02    Elm doesn't work on Next. Why?
  820.  
  821.     The complete NeXT document by anderson@macc.wisc.edu is
  822.     available via anon ftp from: yak.macc.wisc.edu [144.92.30.18]
  823.     and via e-mail from me (serini@ghost.dsi.unimi.it)
  824.  
  825. 2.03    Compiling with Microsoft UNIX C Compilers won't work. Why?
  826.  
  827.     Thomas Bullinger (mrbulli@btoy1.rochester.ny.us):
  828.     On many systems with the Microsoft UNIX C Compilers (such as SCO),
  829.     compiling with optimization breaks the code.  One symptom is
  830.     that aliases do not work.
  831.     On those machines do not compile any of Elm with optimizations.
  832.     To accomplish that, set all occurences of "OPTIMZE" in the
  833.     makefiles to "-Od" - then it works.
  834.  
  835.     Another possibility is to use gcc instead (my current version [PL23]
  836.     is compiled with gcc [2.4.5] on SCO Unix [3.2.2] without
  837.     modifications and runs perfectly).
  838. 2.04    Various problems on Unix 286.
  839.  
  840.     From Elm README:
  841.         On some systems, especially those based on the AT&T Port to
  842.     286's the -O flag of the compiler produces improper code causing
  843.     segmentation violations.  If this happens, recompile the code without
  844.     the -O flag.  This has been seen with Microport SysV/AT type systems.
  845.  
  846.         The Configuration script has been known to exceed the default
  847.     stack size in Unix 286 sh's.  If Configure does not run correctly on
  848.     this type of machine increase the stack size and rerun it.  On
  849.     Microport SysV/AT machines, Configure might run correctly under ksh.
  850.     Obtain ksh from Microport (available to current version owners without
  851.     additional charge) and rerun Configure using it.
  852.  
  853.         Also on Microport SysV/AT Machines, the C compiler produces
  854.     improper code for one of the arithmetic calls.  To fix this
  855.     problem it is necessary to reduce the complexity of the
  856.     statement, as reported by one of our testers here is the
  857.     symptom and his patch.  Being this is a compiler bug on only
  858.     one system, we make the information available, but not incorporate
  859.     it in the main release.  Note, this may effect other areas
  860.     of Elm, and in the future, Microport may even fix this problem.
  861.     [Read the README file for the patches]
  862.  
  863. 2.05    Configure won't run on HP-UX. Why?
  864.  
  865.         From Elm README:
  866.         The Configuration script has been known to exercise an old bug
  867.     on HP-UX's version of /bin/sh.  This shows up as part of the variable
  868.     setting section showing up on your screen, and configure aborting
  869.     on errors.  If this happens, try using ksh instead of sh as in:
  870.         ksh Configure
  871.     this will usually solve the problem.
  872.  
  873. 2.06    Configure won't run on SCO XENIX 2.2.1. Why?
  874.  
  875.     Keith Brazington (keith@g4lzv.co.uk):
  876.     The solution is simple, up the stack size for /bin/sh. I used 
  877.  
  878.     # mv /bin/sh /bin/sh.old
  879.     # cp /bin/sh.old /bin/sh
  880.     # fixhdr -F 8000 /bin/sh
  881.      
  882.     This may seem a bit over the top, but I put it back after!
  883.  
  884. 2.07    Will Elm work on SGI Indigo?
  885.  
  886.         Syd Weinstein (syd@DSI.COM):
  887.     Well, I had no problems at all configuring and running Elm
  888.     on my SGI Iris under 4.0.5.
  889.     The biggie for SGI is to say Elm is a non ansi application,
  890.     so you need to  list -cckr as an additional compilation flag.
  891.     I took all the defaults from configure and it ran just fine.
  892.  
  893. 2.08    I have problems compiling elm2.4 on HP/Apollo
  894.  
  895.     Gordon D. Berkley (gordonb@mcil.comm.mot.com):
  896.     As of ELM2.4pl17, The system compiles cleanly (?) for Apollo.
  897.     This patch level includes many "fixes" that I submitted to ensure
  898.     this.  There *are* many compilor warnings, but they can safely
  899.     be ignored.
  900.  
  901.     I would suggest discarding any config.sh from a previous Configure,
  902.     though, as this will cause the corrections to NOT work.
  903.  
  904. 2.09    I have problems compiling elm2.4 on IBM AIX
  905.  
  906.     * Steve Adams (adams@spss.com):
  907.     >I am trying to compile the latest and greatest version of ELM on my
  908.     >RS/6000 running 3.2.? (exact level unclear). I received the following
  909.     >error messages about setgid being redefined:
  910.     >
  911.     >"init.c", line 128.16: 1506-132 (S) Function getgid cannot be
  912.     >redeclared.
  913.     >"init.c", line 128.26: 1506-132 (S) Function getuid cannot be
  914.     >redeclared.
  915.  
  916.     You can get around the problem defining -U__STR__ during 'Configure'
  917.     It will be fixed in PL22.
  918.  
  919.     * From the monthly posting:
  920.         This version of Elm 2.4 should not require any changes
  921.         to the configure run to link under AIX 3.2 or newer.
  922.     On IBM RISC 6000 AIX, prior to 3.2, you might get string
  923.         function errors on the compile.
  924.     The solution is to do the following:
  925.  
  926.     Look at /usr/lpp/bos/bsdsport. It tells you to add
  927.     following lines to /etc/xlc.cfg:
  928.         * BSD 4.3 c compiler stanza
  929.         bsdcc:  use        = DEFLT
  930.             crt        = /lib/crt0.o
  931.             mcrt       = /lib/mcrt0.o
  932.             gcrt       = /lib/gcrt0.o
  933.             libraries  = -lbsd, -lc
  934.             proflibs   = -L/lib/profiled,-L/usr/lib/profiled
  935.             options    = -H512,-T512, -qlanglvl=extended, -qnoro,
  936.                      -D_BSD, -D_NONSTD_TYPES, -D_NO
  937.  
  938.         And then link bsdcc to xlc and use bsdcc instead of cc.
  939.  
  940.     In addition, Elm should be linked with the curses lib
  941.     and not termcap lib if /etc/termcap is not there.
  942.     (You can always copy the termcap database to etc
  943.     (or make a symlink)).
  944.  
  945. 2.10    Compiling elm 2.4 under NS 3.0
  946.  
  947.     Paul Terray (popaul@binkley.cs.mcgill.ca):
  948.     Check if fcntl.h is included somewhere (as it probably is).
  949.     It contains most of the declaration the program are looking for.
  950.     If not, include it. Then, just comment the include line for unistd.h.
  951.  
  952. 2.11    Elm sends 'empty mail' on 386BSD: why?
  953.  
  954.     * From the monthly posting:
  955.     On 386bsd, the shell that is shipped with the system,
  956.     ash, does not work for sending messages within Elm.  Mail
  957.     messages have headers only and no body.  Replacing the shell
  958.     with bash (from GNU) seems to solve the problem.  The bash
  959.     shell is in the 'etc' distribution of 386BSD.
  960.  
  961.     * If you upgrade to current version, this should happen no more.
  962.  
  963. 2.12    Why can't I get SGI to work for non ROOT?
  964.  
  965.         From the monthly posting:
  966.         SGI, at 3.3, doesn't have vfork, but instead a stub that does
  967.         not work.  Make sure vfork is undef in the configuration.
  968.  
  969. 2.13    I have problems p)rinting messages in 2.4PL20
  970.  
  971.     When I try and print a message, I get
  972.     "readmsg: Cannot find start of selected message". Why?
  973.  
  974.     Chip Rosenthal (chip@chinacat.Unicom.COM):
  975.     Please take a look at the From_ line of the message you are trying to
  976.     print.  I'm going to guess that it has a complex address, maybe with
  977.     some quoting or special characters, or maybe a strange date syntax.
  978.  
  979.     The utilities in the current Elm release (including `readmsg') use
  980.     very simpleminded routines to crack the From_ lines.  Some headers
  981.     that Elm handles fine confuse these utilities.  One of the larger
  982.     changes in the next Elm update will be moving all of the From_ and
  983.     ~Date: processing out of the main Elm code and into the library, so
  984.     the utilities (including `readmsg') will use the same algorithms as
  985.     Elm.
  986.  
  987.     If you look at the From_ line and it doesn't seem particularly
  988.     unusual, feel free to drop me a line.  Most of the changes to
  989.     readmsg and Elm printing came from my hands, and I'm working on
  990.     the aforementioned changes too.  If there is something else broke
  991.     in there, I'd be glad to look at it.
  992.  
  993. 2.14    Elm2.4 PL20 - 'x' key causes segmentation violation
  994.  
  995.     Nigel Metheringham (nigelm@ohm.york.ac.uk):
  996.     in the file src/exitprog.c, there is a line
  997.         char *msg, answer;
  998.     replace it with
  999.         char msg[SLEN], answer;
  1000.  
  1001. 2.15    readmsg:illegal option -- I. Why?
  1002.  
  1003.     Chip Rosenthal (chip@chinacat.Unicom.COM):
  1004.     It means you installed an updated `elm' binary but continue
  1005.     to use an old version of `readmsg'.
  1006.  
  1007. 2.16    Forms don't work. Why?
  1008.  
  1009.     Syd Weinstein (syd@DSI.COM):
  1010.     If you have `forms = ON' in elmrc, Forms is there, but
  1011.     the menu items to make a form require that user level
  1012.     be set off beginner.  (anything but 0 (beginner))
  1013.  
  1014. 2.17    ELM does not recognize VMS mail. Why?
  1015.  
  1016.     * This is fixed in Pl22.
  1017.     
  1018.     * Syd Weinstein (syd@DSI.COM):
  1019.     Looks to me like you found a bug in Elm's quote parsing routines.
  1020.     It just needs to be looked into.
  1021.  
  1022.     Reported from: Steen Hammerum (kel2sh@uts.uni-c.dk)
  1023.  
  1024. 2.18    Huge headers cause Memory Fault. Why?
  1025.  
  1026.     Syd Weinstein (syd@DSI.COM):
  1027.     Any part of Elm at the 2.x level will abort if given a header line
  1028.     that is too long.  It uses fixed length buffers, and at some point
  1029.     they overflow, and none too gracefully.
  1030.     3.x will support dynamic strings to solve this problem.
  1031.  
  1032. 2.19    Can I use elm for posting and replying to news?
  1033.  
  1034.         * Andreas Spiegl (spiegl@cs.utexas.edu):
  1035.         In order to set things up so elm is your mailer when you
  1036.         respond r or R to a news article in rn or trn, define an
  1037.         environment variable RNINIT that points to an initialization
  1038.         file for rn/trn. E.g. .rnrc
  1039.         Then put the following line in this file (.rnrc):
  1040.         -EMAILPOSTER="elm -i %h -s \"Re: %S\" %t"
  1041.         This is from now on telling rn to start elm with the appropriate
  1042.         parameters whenever you reply to an article and works great.
  1043.         But:  --> This is not for followup postings on the usenet! <--
  1044.         If you want to use elm in order to post article, you'd need a
  1045.         line with -ENEWSPOSTER instead of -EMAILPOSTER. Then you would
  1046.         tell elm (once it was evoked by rn/trn) that you want to send
  1047.         this to newsgroupname-with-dashes-instead-of-dots@cs.utexas.edu,
  1048.         for example use "comp-mail-misc@cs.utexas.edu". This will post
  1049.         your email message to the usenet.
  1050.         This is not very convenient though, as you have to convert the
  1051.         address manually. Unless you write a nice script for it, of course.
  1052.         Be sure to send me a copy if you do. :-)
  1053.  
  1054.         * Mike O'Connor (mjo@iao.ford.com):
  1055.         Of course, the DEC gateway allows one to gateway email to Usenet with
  1056.         email addresses of the following format:
  1057.         comp.mail.misc.usenet@decwrl.dec.com
  1058.         and has the additional advantage that they carry a LOT of the regional
  1059.         newsgroups.
  1060.         I still think piping it to sendmail with a macro for R is the way to
  1061.         go.  This allows you to use the mailer of your choice, be it elm or
  1062.         pine or Berkeley Mail or Z-Mail or whatever.  This gets it into your
  1063.         /usr/spool)/mail or /usr/mail or /var/mail or wherever.
  1064.         
  1065. 2.20    Compile fails on lib/strftime.c [PL23].
  1066.  
  1067.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  1068.     A bug was introduced at PL23 that causes the compile to fail on
  1069.     pre-ANSI systems.  Change line 114 from "# define P_(x) /**/"
  1070.     to "# define P_(x) ()".
  1071.  
  1072. 2.21    Compile error on SGI Crimson.
  1073.  
  1074.     Error:
  1075.         cc  -O -I../hdrs    -c opt_utils.c
  1076.     accom: Warning 294: opt_utils.c, line 171:
  1077.     Function getpwuid has prototyped and non-prototyped declarations.
  1078.     Default promotion of non-prototype form of argument 1 does not
  1079.     match prototype:
  1080.     prototype:  unsigned short is different from actual:  int
  1081.  
  1082.     * Spencer Sun (spencer@der.Princeton.EDU):
  1083.     in Configure, tell it to use the -cckr flag for cc.
  1084.  
  1085. 2.22    Problem compiling elm on DEC Alpha, OSF/1 v.1.2
  1086.  
  1087.     Error:
  1088.     getarpdate.c, line 110: redeclaration of 'timezone';
  1089.  
  1090.     * Eiji Hirai (hirai@cc.swarthmore.edu):
  1091.     This is fixed in elm 2.4p23 ; I think By the way, you
  1092.     should most definitely upgrade to DEC OSF/1 1.3.
  1093.     It fixes a tremendous number of bugs from 1.2.  Do it NOW!  :-)
  1094.  
  1095. 2.23    I can't build Elm 2.4PL23 on Sun 386i SunOS 4.0.2
  1096.  
  1097.     * Sydney Weinstein (syd@DSI.COM):
  1098.     known bug, will be fixed in Patch 24, but its an easy one:
  1099.     in lib/strftime.c, there is a bug in the prototyping macro, it
  1100.     currently reads:
  1101.     #if ANSI_C
  1102.     # define P_(x) x
  1103.     #else
  1104.     # define P_(x) /**/
  1105.     # define const  /**/
  1106.     #endif
  1107.  
  1108.     and the relevant line needs to read
  1109.     # define P_(x) (/**/)
  1110.  
  1111.     thats it.
  1112.  
  1113.  
  1114. 3.0    Filter Answers
  1115. ----------------------
  1116.  
  1117.     This part is maintained by Jan Djarv (Jan.Djarv@sa.erisoft.se)
  1118.  
  1119. 3.01    What documentation exists for filter?
  1120.  
  1121.     Besides the man-page (which is rather brief) there is the
  1122.     `Elm Filter System Guide' (doc/Filter.guid in the elm distribution).
  1123.     A PostScript version is available on dsinc.dsi.com. 
  1124.  
  1125. 3.02    What do I need to get filter working?
  1126.  
  1127.     You need a MTA (Mail Transport Agent) that reads .forward files
  1128.     AND let's you mail to a program.
  1129.  
  1130.     A .forward file is put in your home directory, where it is read
  1131.     by your MTA. It is here you tell your MTA to pipe the messages
  1132.     to filter instead of putting it in your mailbox.
  1133.  
  1134. 3.03    How can I tell if my system understands .forward files?
  1135.  
  1136.     This usually works:
  1137.     Make a .forward file in your home directory with the following
  1138.     contents:
  1139.  
  1140.     \userid, "|/bin/cat - > /your/home/directory/forward.test 2>&1"
  1141.  
  1142.     where userid is your username and /your/home/directory is the
  1143.     full path to your home directory. The \ is there to avoid
  1144.     infinite recursion (i.e. if it wasn't there, the MTA would read
  1145.     your .forward again, and see userid a second time, and read your
  1146.     .forward again and on and on ...)
  1147.  
  1148.     Then mail yourself a message. If all goes well you should have
  1149.     1. A message in your incoming mailbox.
  1150.     2. A file forward.test that contains the same message as in 1.
  1151.  
  1152.     If you get 1 but not 2, it is possible that your MTA doesn't
  1153.     support mailing to programs. Take it up with your system
  1154.     administrator.  It might also be the case that your MTA has another
  1155.     syntax for mailing to programs.
  1156.  
  1157. 3.04    What do I put in my .forward file?
  1158.  
  1159.     "|/full/path/to/filter -vo /some/unique/file"
  1160.  
  1161.     (note the placements of the quotes, this is for sendmail at least,
  1162.     there are possibly other MTA:s out there that want's it different.
  1163.     Try finding a manual if the above doesn't work).
  1164.  
  1165.     Always use the full path to filter. Your MTA probably has a
  1166.     different PATH than the one you have.
  1167.  
  1168.     Also you should personalize your line by for instance
  1169.     redirect the errors of filter (that's what -o does, -v just makes
  1170.     the errors a bit more verbose) to a file that is unique on
  1171.     your system. /tmp/filter.userid (userid == your user name) usually
  1172.     does it.
  1173.  
  1174.     * Syd Weinstein (syd@DSI.COM)
  1175.     explains why your line should be personalized:
  1176.  
  1177.     Its not a bug, but a feature of sendmail. Sendmail prevents duplicate
  1178.     deliveries to addresses, so a message sent to "a, b, a, b, c"
  1179.     would be delivered to "a, b, c", but only one copy to a and b.
  1180.     Sendmail does this by sorting and 'uniq'ing the list of addresses.
  1181.     If two people's filter invocations in the .forward file match,
  1182.     sendmail will gladly coallese these down to one as a duplicate
  1183.     delivery address, and the result is exactly what you describe.
  1184.  
  1185.     Just get everyone to make their .forward line personal (add a unique
  1186.     -o file perhaps) and all will work ok.
  1187.  
  1188.     * John Walder (walder@alexia.lis.uiuc.edu ):
  1189.  
  1190.     If you have the source code for sendmail, try the following patch to
  1191.     the sameaddr() function in the file src/parseaddr.c.  It still
  1192.     eliminates duplicate recipients but not duplicate programs (filters).
  1193.     This solution is more elegant than continually fixing .forward files.
  1194.  
  1195.     ---------------------------------------------------------------------
  1196.  
  1197.     *** parseaddr.c-    Tue May  4 10:55:42 1993
  1198.     --- parseaddr.c    Tue May  4 11:42:52 1993
  1199.     ***************
  1200.     *** 1525,1530 ****
  1201.     --- 1525,1538 ----
  1202.         if (a->q_mailer != b->q_mailer)
  1203.             return (FALSE);
  1204.     
  1205.     +    /* -- 05/04/93 jdw  LOCAL CHANGE
  1206.     +        Allow recipients to forward to the same program/filter!
  1207.     +        Have same mailer, so check for delivery to a program
  1208.     +    */
  1209.     +    /* fprintf(stderr, "sameaddr(%s,%s)\n", a->q_user, b->q_user); */
  1210.     +     if (a->q_mailer == ProgMailer)
  1211.     +         return (FALSE);
  1212.     +    /* -- End LOCAL CHANGE */
  1213.     + 
  1214.         /* if the user isn't the same, we can drop out */
  1215.         if (strcasecmp(a->q_user, b->q_user))
  1216.             return (FALSE);
  1217.  
  1218. 3.05    What is the simples filter-rules file I can write to test filter?
  1219.  
  1220.     Well, the simplest is:
  1221.  
  1222.     always leave
  1223.  
  1224.     which tells filter that it should always put the messages into your
  1225.     default mailbox.
  1226.     A more interesting example would be:
  1227.  
  1228.     if (subject contains "filter-test") then save "~/filter-folder"
  1229.       
  1230.     which tells filter to save all messages with a Subject: field that
  1231.     contains filter-test into the file filter-folder in your home
  1232.     directory.
  1233.     All other messages will be put into your normal incoming mailbox,
  1234.     since that is filters default rule if no other match.
  1235.     You can then look at the messages in filter-folder with elm
  1236.     (elm -f ~/filter-folder).
  1237.  
  1238. 3.06    How do I check my filter-rules for typos and other errors?
  1239.  
  1240.     Run 'filter -r'. See also the next question.
  1241.  
  1242. 3.07    Why doesn't the output from filter -r match my filter-rules file?
  1243.  
  1244.     Filter reads the rules and converts them to an internal format. When
  1245.     it writes them out again, it writes them in a canonical format.
  1246.  
  1247.     This is due to the fact that filter has a loose input syntax.
  1248.  
  1249.     Each rule is turned into an 'if (...) then ...'.
  1250.  
  1251.     The following words are translated:
  1252.  
  1253.     contains    becomes        =
  1254.     &&        becomes        and
  1255.     then        becomes        ?
  1256.     matches        becomes        ~
  1257.  
  1258. 3.08    Can I have 'or' in my filter-rules?
  1259.  
  1260.     No, filter can't deal with that. Or is implemented by writing another
  1261.     rule below the one you want to 'or' with.
  1262.  
  1263. 3.09    Can I make filter execute more than one rule for a message?
  1264.  
  1265.     No. As soon filter find's one applicable rule, it executes that one
  1266.     and exits.
  1267.  
  1268. 3.10    How do I do multiple actions for one rule?
  1269.  
  1270.     You can't do that directly in the filter-rules file. You have to
  1271.     write a shell script or program that does what you want, and then call
  1272.     it with the execute or executec action.
  1273.  
  1274. 3.11    What headers are available in the filter-rules?
  1275.  
  1276.     From, To, and Subject.
  1277.  
  1278.     If you answered yes to Configure when it asked "Does your site
  1279.     receive e-mail with valid "Reply-To:" and "From:" fields?", the
  1280.     from field will be the From: header, or the Reply-To: header if
  1281.     one is available (Reply-To: supersedes From:).
  1282.  
  1283.     If you answered no, the from line is the From_ header.
  1284.  
  1285.         The to field is the concatenation of the To:, Apparently-To:
  1286.     and the Cc: headers.
  1287.  
  1288. 3.12    How do I forward mail to an elm alias from filter?
  1289.  
  1290.     Let's say you want to do
  1291.  
  1292.     if (subject = hello) forward "mail-alias"
  1293.  
  1294.     where mail-alias is an alias you have defined in elm.
  1295.     The sad part is that filter doesn't know about elm aliases.
  1296.     You have to do something like this:
  1297.  
  1298.     if (subject = hello) executec "/full/path/to/elm -s '%s' mail-alias"
  1299.  
  1300. 3.13    Filter executes my script but the script doesn't work.
  1301.     It does work if I run it prom my shell prompt. Why?
  1302.  
  1303.     Never assume that the script filter executes has the same PATH that
  1304.     you have when logged in.
  1305.  
  1306.     Always set the PATH explicitly at the beginning of your script.
  1307.  
  1308. 3.14    How do I capture the message fed to a script by execute/executec
  1309.     for later processing?
  1310.  
  1311.     At the start of your script:
  1312.  
  1313.     /bin/cat - > /tmp/mail$$
  1314.  
  1315.     Then you can grep, and examine /tmp/mail$$ as you would an ordinary
  1316.     file. Don't forget to remove /tmp/mail$$ if you don't need it
  1317.     afterwards.
  1318.  
  1319. 3.15    Both execute and executec feeds the message as standard input to
  1320.     the script. But what if I don't need it?
  1321.  
  1322.     Just ignore it.
  1323.  
  1324. 3.16    What if I what to do something based on the contents of a message
  1325.     (i.e not the headers), or based on some header not available in filter?
  1326.  
  1327.     Feed the message to a script using execute/executec, save it
  1328.     and do your stuff in the script.
  1329.  
  1330. 3.17    How can I make filter operate on all messages in a folder?
  1331.  
  1332.     You can't directly, but you can make a little script that does the job:
  1333.  
  1334.     #!/bin/sh
  1335.  
  1336.     frm -n $1 |
  1337.     while read no rest
  1338.     do
  1339.         no=`echo $no|sed 's/[^0-9]//g'`
  1340.         readmsg -h $no | filter -vo /what/usually/goes/here
  1341.     done
  1342.  
  1343.  
  1344.     Start the script with the folder name as argument.
  1345.     NOTE: this script is an example, and doesn't work on empty folders.
  1346.     If your filter rules try and put something into the folder the
  1347.     script  is currently operating on, disaster occurs.
  1348.  
  1349. 3.18    Can I use filter to automatically answer my mail (like vacation)?
  1350.  
  1351.     If you are on vacation you might do something like this:
  1352.     In your filter-rules:
  1353.  
  1354.     always executec "/path/to/vac.script %s %r"
  1355.  
  1356.     In vac.script:
  1357.     --
  1358.     #!/bin/sh
  1359.     PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin
  1360.     export PATH # Make sure that the PATH above includes elm
  1361.     elm -s "Re: $1" $2 <<EOM
  1362.  
  1363.     Hi.
  1364.  
  1365.     I got your message about "$1". Im not in now but will get
  1366.     back to you as soon as I'm back.
  1367.  
  1368.     EOM
  1369.     --
  1370.  
  1371.     You can also execute "vacation" if you have it.
  1372.  
  1373. 3.19    My filter doesn't recognize executec/matches.
  1374.  
  1375.     Executec and matches was added in Elm 2.4 PL11.
  1376.     Try getting a newer Elm.
  1377.  
  1378. 3.20    Filter sometimes munges up my folders, or looses messages. Why?
  1379.  
  1380.     If two instances of filter are running at the same time, and are
  1381.     operating on the same folder, you get this effect. Filter doesn't
  1382.     lock your private folders (i.e not incoming folder), so the two
  1383.     instances will never know that there is someone else operating on
  1384.     the same folder.
  1385.  
  1386.     This usually occurs if you are receiving mail on more than one
  1387.     machine, and your home directory is shared (via NFS, for instance)
  1388.     between the machines AND you manipulate your folders from both
  1389.     machines.
  1390.  
  1391.     The solution is usually to forward all your mail to one machine and
  1392.     run filter on that single machine.
  1393.  
  1394. 3.21    Why doesn't elm mark mail I saved in a folder with filter as new (N)?
  1395.  
  1396.     * Elm does only mark new messages as new in your incoming folder.
  1397.     Sometimes you want it that way, sometimes you don't.
  1398.     If you are sure you want new messages to be marked as such in
  1399.     any folder, you need to edit the source for Elm, and recompile.
  1400.  
  1401.     Search for these lines in src/newmbox.c:
  1402.         if(folder_type == SPOOL)
  1403.           current_header->status = VISIBLE | NEW | UNREAD;
  1404.         else
  1405.           current_header->status = VISIBLE;
  1406.  
  1407.     and change them to:
  1408.         current_header->status = VISIBLE | NEW | UNREAD;
  1409.  
  1410.     * Jennifer Myers (jmyers@eecs.nwu.edu):
  1411.     You should also modify the code for 'frm' and 'nfrm', so that those
  1412.     utilities will recognize new mail in the users's mail folders.
  1413.     In utils/from.c, the following code appears twice:
  1414.  
  1415.     if (user_mailbox)
  1416.         status = NEW_MSG;
  1417.     else
  1418.         status = READ_MSG;
  1419.  
  1420.     Change both occurrences of the above lines to:
  1421.  
  1422.     /* if no Status header, assume NEW_MSG */
  1423.     status = NEW_MSG;
  1424.  
  1425.     * You can also mail alansz@cogsci.berkeley.edu for his setstaus
  1426.     source.
  1427.  
  1428.     * William Pemberton (wfp5p@holmes.acc.Virginia.EDU) also wrote
  1429.     a set of patches to do this.
  1430. 3.22    Why does filter join adjacent messages together?
  1431.  
  1432.     * Aidan M Corey (jo95005@oxford.ac.uk):
  1433.     The first line in a piece of mail is a From_ line; this is used by
  1434.     Elm to tell where one message in the mailbox ends and a new one
  1435.     starts.  Unfortunately, on some systems this line is lost.  If
  1436.     the first message in the mailbox went through filter, Elm will refuse
  1437.     to run, saying that the mailbox is corrupt.  If a filtered message
  1438.     follows another message, Elm will interpret them as a single message.
  1439.  
  1440.     A patch for this is to have a .forward containing
  1441.  
  1442.     "|/full/path/to/mailkludge"
  1443.  
  1444.     where mailkludge is a world-executable file containing
  1445.  
  1446.     #!/bin/sh
  1447.     (echo From fubar `date`;cat) | /full/path/to/filter
  1448.     exit 0
  1449.  
  1450. 3.23    What other mail filter programs exists?
  1451.  
  1452.     Filter is a very simple program and has limitations.
  1453.     If you have something complicated you want to do,
  1454.     and it is difficult to do with Filter, you should check out the
  1455.     more powerful alternatives: deliver, procmail or mailagent.
  1456.  
  1457.     More info on these can be found in the UNIX Email Software Survey FAQ
  1458.     (see news.answers or comp.mail.misc).
  1459.  
  1460. 3.24    554 "|/usr/local/bin/filter"... unknown mailer error
  1461.  
  1462.     This happens if your system administrator disabled the pipe
  1463.     inside sendmail. It is due to a security hole in sendmail.
  1464.     Check CERT advisories to know more on this.
  1465.  
  1466.  
  1467. 4.0    Bugs list
  1468.  
  1469.     This list is included for completeness in the ftp version only.
  1470.     please, ftp to ghost.dsi.unimi.it as stated at the beginning
  1471.     of this FAQ to get it.
  1472.  
  1473.     You can get it via a mail server,too:
  1474.     send a mail to elmbygs@ohm.york.ak.uk, with Subject: command
  1475.     and "@SH elmbugs <your email addr>" as the body.
  1476.  
  1477. 5.0     Archivers
  1478.  
  1479.     This is the list of Internet and UUCP sites distributing
  1480.     the latest version of Elm, from the Elm monthly posting.
  1481.  
  1482. 5.0.1   The following sites have agreed to make Elm available
  1483.     via anonymous ftp.
  1484.  
  1485.     Site            Contact
  1486.  
  1487.     In the US/Canada:
  1488.     wuarchive.wustl.edu    chris@wugate.wustl.edu (Chris Myers)
  1489.         (128.252.135.4)
  1490.     /mirrors/elm
  1491.  
  1492.     ftp.uu.net
  1493.     (137.39.1.9, 192.48.96.9)
  1494.     /networking/mail/elm
  1495.  
  1496.     In Europe:
  1497.     ftp.cs.ruu.nl        Edwin Kremer, edwin@cs.ruu.nl
  1498.     (131.211.80.17)
  1499.     /pub/ELM-2.4
  1500.  
  1501.     ftp.th-darmstadt.de    ftpadmin@ftp.th-darmstadt.de
  1502.     (130.83.55.75)
  1503.     /pub/networking/mail/elm
  1504.  
  1505.     In the UK:
  1506.     uk.ac.soton.ecs        T.Chown@ecs.soton.ac.uk (bitnet)
  1507.     (152.78.64.201)            T.Chown@uk.ac.soton.ecs (JANET)
  1508.  
  1509.     ftp.demon.co.uk        Cliff Stanford, cliff@demon.co.uk
  1510.     (158.152.1.65)
  1511.     /pub/unix/mail/elm
  1512.  
  1513.         src.doc.ic.ac.uk    L.McLoughlin@doc.ic.ac.uk
  1514.         (146.169.2.10)
  1515.         /computing/mail/elm
  1516.  
  1517.         In Australia:
  1518.         ftp.adelaide.edu.au     Mark Prior, mrp@itd.adelaide.edu.au
  1519.         (129.127.40.3)
  1520.     /pub/mailers
  1521.  
  1522.     In Taiwan:
  1523.     NCTUCCCA.edu.tw        Huang, Chih-Hsien hch@NCTUCCCA.edu.tw
  1524.     (140.111.1.10 or 192.83.166.10)
  1525.     /packages/mail/elm
  1526.  
  1527. 5.0.2    The following sites have agreed to make Elm available
  1528.     via anonymous uucp:
  1529.  
  1530.         Site                    Contact
  1531.  
  1532.     uunet            Elm is /networking/mail/elm
  1533.  
  1534.     dsinc            Syd Weinstein
  1535.                 syd@dsi.com, dsinc!syd
  1536.                 note: anon uucp info changed 12/16/91
  1537.                 For further info, send an e-mail
  1538.                 message to archive-server@dsi.com stating:
  1539.                 send anon how-to dir
  1540.  
  1541.  
  1542.     stanton            Steven P. Donegan
  1543.                 donegan@stanton.cts.com, stanton!donegan 
  1544.                 714-894-2246 uucp - nuucp no word
  1545.                 Elm is /u/public/elm2.3.tar.Z
  1546.  
  1547. ----------------------
  1548. *** END of Elm FAQ *** This file has not been truncated
  1549.  
  1550. -- 
  1551. Piero Serini                                 Computer Science Dept. 
  1552. <serini@ghost.dsi.unimi.it>          Univ. Statale - Milano - ITALY
  1553.