home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / mh-faq < prev    next >
Internet Message Format  |  1993-12-18  |  61KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!pad-thai.aktis.com!pad-thai.aktis.com!not-for-mail
  2. From: Bill Wohler <wohler@hw1175.sap-ag.de>
  3. Newsgroups: comp.mail.mh,news.answers,comp.answers
  4. Subject: MH Frequently Asked Questions (FAQ) with Answers
  5. Supersedes: <mh-faq_753685212@GZA.COM>
  6. Followup-To: poster
  7. Date: 19 Dec 1993 00:00:17 -0500
  8. Organization: SAP AG, Walldorf, Germany
  9. Lines: 1693
  10. Sender: faqserv@security.ov.com
  11. Approved: news-answers-request@MIT.Edu
  12. Expires: 1 Feb 1994 05:00:10 GMT
  13. Message-ID: <mh-faq_756277210@GZA.COM>
  14. Reply-To: Bill Wohler <wohler@sap-ag.de>
  15. NNTP-Posting-Host: pad-thai.aktis.com
  16. Summary: This document answers Frequently Asked Questions about MH, a
  17.      sophisticated mail interface.  It should be read by anyone who wishes
  18.      to post to comp.mail.mh.
  19. Keywords: FAQ mh mail question answer pop slocal letter signature
  20.       draft message folder xmh olmh vmail vmailtool comp repl 
  21.       forw scan smtp bind mh-e
  22. X-Last-Updated: 1993/03/20
  23. Xref: senator-bedfellow.mit.edu comp.mail.mh:5032 news.answers:15964 comp.answers:3076
  24.  
  25. Archive-name: mh-faq
  26. Last-modified: $Date: 1993/03/20 16:13:34 $
  27. Version: $Revision: 93.3 $
  28.  
  29.   This is a living list of frequently asked questions on the mailer
  30.   user interface, Mail Handler, or MH.  The point of this is to
  31.   circulate existing information, and avoid rehashing old answers.
  32.   Better to build on top than start again.  Please read this document
  33.   before ever posting to this newsgroup.
  34.  
  35.   This article is posted monthly.  If it has already expired and
  36.   you're not reading this, you can hope that you saved the last bit of
  37.   question 3 so that you can get a copy yourself.
  38.  
  39.   Please do not post an answer when someone posts a frequently asked
  40.   question, as I will always e-mail a reply.  This ensures that
  41.   everybody gets their question answered fully and eliminates
  42.   unnecessary traffic in this newsgroup.
  43.  
  44.   Your comments, additions and fixes to this list are welcome: please
  45.   send them to Bill Wohler <wohler@sap-ag.de>.
  46.  
  47.   
  48. Subject: Table of Contents
  49. From: Preface
  50.  
  51. Legend: + new, - deleted, ! changed
  52.  
  53. Introductory
  54.  
  55.  1.  Why should I use MH?
  56.  2.  What is the current version/status of MH?
  57.  3.  Where can I get MH?
  58.  4.  What references exist for MH?
  59. !5.  What other MH software is available?
  60.  6.  How can I print a MH manual?
  61.  7.  How should I report bugs?
  62.  8.  How can I convert from my mailer to MH?
  63.  
  64. Building MH
  65.  
  66.  10. What machines does MH run on?
  67.  11. How do I build MH?
  68.  12. What options should I use?
  69.  13. Fixing "post: problem initializing server; [BHST] no servers available"
  70.  14. Where can I get POP3?
  71.  15. What do I do if scan shows the wrong date?
  72.  16. Why slocal writes messages to system maildrop that from(1) can't read.
  73.  17. Why does repl add a "Re:" to a message that already has one?
  74.  18. Does MH support IMAP2 (RFC 1064)?
  75.  19. Why does "mailgroup mail" only affect inc and not slocal?
  76.  
  77. Using MH
  78.  
  79.  30. Where can I read about slocal and the format of the .maildelivery file?
  80.  31. How do I include messages in repl with or without ">"?
  81.  32. How can I eliminate duplicate copies of letters to myself?
  82.  33. How would one go about reading usenet with MH?
  83.  34. Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?
  84.  35. How can I include my signature?
  85.  36. What to do with "Problems with edit - draft removed".
  86.  37. How do I call my editor with arguments?
  87. !38. How do I debug my .maildelivery file?  
  88.  39. How can I digestify the messages in a folder for mail to another user?
  89.  40. Can I run my message through a program (ie. ispell) before sending?  
  90.  41. Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  91.  42. Is there documentation for mh-e?
  92.  43. How can I change my return address?
  93.  44. How can I change my From header?
  94.  45. What to do with "bad address 'xxx' - no at-sign after local-part".
  95. +46. How can I search through multiple folders?
  96. +47. Why isn't slocal working?
  97. +48. Fixing "post: problem initializing server; [RPLY] 503 Sender
  98.      already specified" 
  99.  
  100. Xmh
  101.  
  102.  50. How can I get xmh to use Emacs as the editor?
  103.  51. Does xmh support subfolders?
  104.  52. How do I precede included messages with ">" when replying in xmh?
  105.  
  106. Appendix
  107.  
  108.  Glossary, Acknowledgements, Warranty
  109.  Switching xmh's editor
  110.  babyl2mh.pl
  111.  inco
  112.  
  113.   
  114. Subject: Viewing This Article
  115. From: Preface
  116.  
  117.   To skip to a particular question numbered xx, use "/^F.*xx" with most
  118.   pagers.  In GNU Emacs type "M-C-s ^F.*xx", (or C-r to search backwards),
  119.   followed by ESC to end the search.  "-xx" is often sufficient.
  120.  
  121.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  122.   "M-C-s ^S.*[!+]" in GNU Emacs.
  123.  
  124.   This article is in digest format.  Nn may have already broken this
  125.   message into separate articles; if not, then type "G %".  In rn, use
  126.   ^G to skip sections.
  127.  
  128.   This article is treated as an outline when edited by GNU Emacs.
  129.   Run "M-x describe-mode" to see available outline-mode commands.
  130.   Useful commands are "C-c C-s" (show-subtree) and "M-x show-all"
  131.  
  132.   Numbers in square brackets denote the month and year of the last
  133.   update.
  134.  
  135.   
  136. Subject: Why should I use MH?
  137. From: Intro-1
  138.  
  139.   The MH message handling system is a set of electronic mail programs
  140.   in the public domain.  If your computer runs UNIX, it can probably
  141.   run MH.
  142.  
  143.   The big difference between MH and most other "mail user agents" is
  144.   that you can use MH from a UNIX shell prompt.  In MH, each command
  145.   is a separate program, and the shell is used as an interpreter.  So,
  146.   all the power of UNIX shells (pipes, redirection, history, aliases,
  147.   and so on) works with MH--you don't have to learn a new interface.
  148.   Other mail agents have their own command interpreter for their
  149.   individual mail commands (although the mush mail agent simulates a
  150.   UNIX shell).
  151.  
  152.   Because MH commands aren't part of a monolithic mail system, you can
  153.   use them at any time; you don't have to start or quit the mail
  154.   agent.  Because you use them from a shell prompt, you can use all
  155.   the power of the shell.
  156.  
  157.   If your shell has time-saving aliases or functions (and most do),
  158.   you'll be able to use them with MH, of course.  And because MH isn't
  159.   a monolithic mail agent, you can use MH commands in UNIX shell
  160.   scripts, or call them from programs in high-level languages like C.
  161.  
  162.   Unlike most mail agents, MH keeps each message in a separate file.
  163.   The filename is the message number.  To rearrange the messages, MH
  164.   just changes the filenames.  MH can use standard UNIX filesystem
  165.   operations such as removing, copying and linking messages.  The
  166.   message files are grouped into one or more folders, which are
  167.   actually UNIX directories.
  168.  
  169.   MH is free, powerful, flexible--and the basics are easy to learn.
  170.   --Jerry Peek <jerry@ora.com>
  171.  
  172.   
  173. Subject: What is the current version/status of MH.
  174. From: Intro-2
  175.  
  176.   The current version of MH is 6.8.
  177.  
  178.   This version includes MIME, a multi-media MH package that implements
  179.   the new IETF work on Multi-media 822 (MIME).  This allows you to
  180.   include things like audio, graphics, and the like, in your mail
  181.   messages.  --Marshall Rose <mrose@dbc.mtview.ca.us>
  182.  
  183.   MH now works with Kerberos as well.
  184.   
  185.   In addition, a new program called mhparam extracts arguments from
  186.   .mh_profile which is useful in shellscripts. 
  187.  
  188.   Please see the file CHANGES in the distribution for more details. [1.93]
  189.  
  190.   
  191. Subject: Where can I get MH?
  192. From: Intro-3
  193.  
  194.   MH comes standard with:
  195.  
  196.     Control Data Corp. CDC4680-MP . . . EMH Version 1.4.2 (modified MH)
  197.     DEC Ultrix 3.1  . . . . . . . . . . MH Version 6.5
  198.     DEC Ultrix 4.2A . . . . . . . . . . MH Version 6.7.1
  199.     Evans and Sutherland ES/OS 2.3  . . MH Version 6.6
  200.     IBM PS/2 AIX 1.2.x  . . . . . . . . MH Version 6.4
  201.     IBM RISC System/6000 AIX 3.x  . . . MH Version 6.6
  202.     MIPS RISC/OS 4.52 . . . . . . . . . MH Version 6.6
  203.     Tektronix UTek  . . . . . . . . . . MH (version unknown)
  204.     Table maintained by James R. Hamilton <jrh@jrh.gts.org> [9.92].
  205.  
  206.   via anonymous ftp:                        [1.93]
  207.     FTP Site:        IP Address:    Path/File Name:        Size:
  208.     -----------------------------------------------------------------
  209.     ftp.ics.uci.edu    [128.195.1.1]    mh/mh-6.8.tar.Z        1.8MB
  210.     louie.udel.edu    [128.175.1.3]    portal/mh-6.8.tar.Z    1.8MB
  211.     ftp.uu.net        [192.48.96.9]    mail/mh/tar/mh-6.8.tar.Z-split/    256K*7
  212.                     README, part01, ..., part08
  213.  
  214.     Or use archie to find a site near you. [12.92]
  215.  
  216.   via uucp:
  217.     The following shell script is one example of how to queue jobs for
  218.     downloading the files from UUNET via UUCP:
  219.  
  220.     #!/bin/sh
  221.     SRC=uunet!~/mail/mh/tar/mh-6.8.tar.Z-split
  222.     DST=/usr/spool/uucppublic/mh
  223.     uucp -d -r $SRC/README $DST/README
  224.     for f in 1 2 3 4 5 6 7 8
  225.     do
  226.         uucp -d -r $SRC/part0$f $DST/part0$f
  227.     done
  228.  
  229.     UUNET subscribers would then call us normally using uucico.  Others
  230.     can use UUNET's 900 number to access UUNET via anonymous uucp.  The
  231.     number is 1-900-468-7727.  The login name is "uucp" and there is no
  232.     password.  The following is a sample Systems/L.sys entry:
  233.     
  234.     uunet Any ACU 19200 19004687727 "" \d\r ogin:-\r-ogin: uucp
  235.     
  236.     The modems on the 900 lines are Telebit WorldBlazers.  These modems
  237.     negotiate V.32bis, V.32, 2400, 1200, and last with (Turbo)PEP tones.
  238.     The cost is 50 cents per minute (as of Jan 93) which will appear on
  239.     your next phone bill.  For more information about the 900 service,
  240.     retrieve uunet!~/help or send e-mail to postmaster@uunet.uu.net
  241.     (uunet!postmaster).  -- Eric Ziegast <ziegast@uunet.uu.net>
  242.  
  243.   via mail:
  244.     Send a note to either mail-server@nluug.nl or
  245.     archive-server@germany.eu.net with a body containing the following:
  246.  
  247.       send mail/mh/mh-6.8.tar.Z
  248.  
  249.     UK users may be able to use ftpmail@doc.ic.ac.uk.  Send a note
  250.     whose body contains "help" to this address. [12.92]
  251.  
  252.     Send a note to ftpmail@decwrl.dec.com whose body contains "help"
  253.     on a line by itself get information on getting ftp sources by
  254.     mail.  Also include the lines "connect" and "dir /pub/mail/ua/mh"
  255.     to see which files are available local to decwrl.  Please do this
  256.     as a last resort only.  [1.93]
  257.  
  258.   via U.S. mail:
  259.     You can send $75 US to the address below.  This covers
  260.     the cost of a 6250 BPI 9-track magtape, handling, and ship-
  261.     ping.  In addition, you'll get a laser-printed hard-copy of
  262.     the entire MH documentation set.  Be sure to include your
  263.     USPS address with your check.  Checks must be drawn on U.S.
  264.     funds and should be made payable to:
  265.  
  266.        Regents of the University of California
  267.  
  268.     The distribution address is:
  269.  
  270.        Univeristy of California at Irvine
  271.        Office of Academic Computing
  272.        360 Computer Science
  273.        Irvine, CA  92717  USA
  274.  
  275.        +1 714 856 5153
  276.  
  277.     Sadly, if you just want the hard-copies of the documenta-
  278.     tion, you still have to pay the $75.  The tar image has the
  279.     documentation source (the manual is in roff format, but the
  280.     rest are in TeX format).  Postscript formatted versions of
  281.     the TeX papers are available, as are crude tty-conversions
  282.     of those papers.  [1.93]
  283.  
  284.   
  285. Subject: What references exist for MH?
  286. From: Intro-4
  287.  
  288.   Book:
  289.     MH & xmh: E-mail for Users & Programmers.  Second edition. Jerry Peek.
  290.     ISBN 1-56592-027-9.  $29.95.  728 pages.
  291.     O'Reilly & Associates, Inc.
  292.     Book Orders:
  293.       US and Canada: 800-998-9938. Fax: 707-829-0104.
  294.  
  295.     References to "the MH book" in this document refer to the second
  296.     edition of this book (section numbers for the first edition appear
  297.     in parenthesis).
  298.  
  299.     To get a list of non-US distributors, send a note to
  300.     nuts@ora.com or call +1-707-829-0515.
  301.  
  302.     Examples from this book are in:  
  303.     ftp.uu.net        [137.39.1.9]
  304.     published/oreilly/nutshell/MHxmh/MHxmh2.tar.Z        54KB
  305.  
  306.     There is another book that contains a number of examples of
  307.     advanced mail handing using MH as the example message handler.
  308.     It's also quite a good reference on e-mail in general.  [12.92]
  309.  
  310.     The Internet Message.  Marshall T. Rose
  311.     ISBN 0-13-092941-7.  396 pages.
  312.     P T R Prentice Hall
  313.  
  314.   Usenet:
  315.     comp.mail.mh (gatewayed to MH-users)
  316.  
  317.   Mailing lists:
  318.      General questions/discussion: MH-users@ics.uci.edu
  319.      (gatewayed to comp.mail.mh).
  320.      MH developers and maintainers: MH-workers@ics.uci.edu.
  321.      Please use MH-users-request and MH-workers-request to request
  322.      an addition or deletion.
  323.  
  324.   MH-users archives:
  325.     ftp.ics.uci.edu    [128.195.1.1]    mh/mh-users/*
  326.  
  327.     The files are in packf(1) format, compressed with compress(1).  To
  328.     get them, use anonymous ftp and set "binary" transfer mode.
  329.                     
  330.       mh-users.86.Z       8549        mh-users.86.scan.Z      771
  331.       mh-users.87.Z      55449        mh-users.87.scan.Z     3679
  332.       mh-users.88.Z     182805        mh-users.88.scan.Z    11339
  333.       mh-users.89.Z      89151        mh-users.89.scan.Z     5522
  334.       mh-users.90.Z     402470        mh-users.90.scan.Z    21551
  335.       mh-users.91.Z     878763        mh-users.91.scan.Z    36992
  336.       mh-users.92.Z    1281585        mh-users.92.scan.Z    44975
  337.       mh-users.mbox: current archive, uncompressed.
  338.  
  339.     There are directions in the README file.  Basically, you can use
  340.     either "msh" or the individual commands "inc -file" to get the
  341.     messages into a folder, and then "scan", "pick", "show", and so on
  342.     (or your favorite commands in xmh, mh-e, etc.).  --Jerry Peek
  343.     <jerry@ora.com>
  344.  
  345.   This document:
  346.     via anonymous ftp:
  347.       pit-manager.mit.edu  [18.172.1.27]      /pub/usenet/news.answers/mh-faq.Z
  348.       ftp.uu.net        [137.39.1.9]   /archive/usenet/news.answers/mh-faq.Z
  349.       ftp.cs.ruu.nl       [131.211.80.17]    /pub/NEWS.ANSWERS/mh-faq
  350.  
  351.     via mail:
  352.       Each of the following addresses is following by commands which
  353.       should be included as the body of the message.
  354.       
  355.       mail-server@pit-manager.mit.edu
  356.         send usenet/comp.mail.mh/mh-faq
  357.  
  358.       mail-server@cs.ruu.nl
  359.     send pub/NEWS.ANSWERS/mh-faq
  360.     
  361.   
  362. Subject: ! What other MH software is available?
  363. From: Intro-5
  364.  
  365.   vmh 
  366.     Vmh is designed for people using the bulletin-board features
  367.     of MH, where mail is stored in packed (single-file) folders.  As
  368.     a result, use of this program cannot be mixed with the use of
  369.     normal MH commands.  Vmh is a part of the official MH
  370.     distribution.  --James Perkins <jamesp@sp-eug.com> [1.93]
  371.  
  372.   xmh
  373.     Xmh is a X11 mouse-based MH browsing tool.  It is very powerful
  374.     and feature-filled and thus comes with a moderate learning
  375.     curve.  Its dependence on the X11 environment makes it very
  376.     reconfigurable, but only by people well-versed in X applications
  377.     programming.  Its message reply built-in-editor interface is not
  378.     always popular among those used to having MH bring up the editor
  379.     of their choice.  --James Perkins <jamesp@sp-eug.com>
  380.  
  381.     xmh is part of the standard X Window System distribution from
  382.     MIT.  Ultrix also ships dxmail which is similar.
  383.  
  384.     cs.utk.edu     [128.169.201.1]    pub/xmh.shar.Z        161KB
  385.  
  386.     Here's a version of xmh that includes MIME.  --Harald Tveit
  387.     Alvestrand <hta@boheme.er.sintef.no> [1.93]
  388.  
  389.     aun.uninett.no        pub/unix/mixmh-0.2.tar.Z
  390.  
  391.   olmh
  392.     Sun's Open Windows 3 comes with a demo for OLIT (Open Look
  393.     Interface Toolkit, the Open Look wrapper to Xt) named olmh that
  394.     does handle 3rd and subsequent levels of nesting of folders.
  395.     --Dale Carstensen <dlc@c3file.c3.lanl.gov>
  396.  
  397.     Obtain the Open Windows 3 distribution CD/ROM from Sun (SPARC
  398.     only).  To do this, call 1-800-USA-4SUN and send tone "2" for
  399.     telemarketing after it answers.  The 4.1.2 CD/ROM may also have
  400.     Open Windows 3.  The list price for the 4.1.2 CD/ROM is $200.
  401.  
  402.   mh-e
  403.     Mh-e is the GNU Emacs front end for MH.  It offers all the
  404.     functionality of MH, the visual orientation and simplicity of
  405.     use of xmh, and full integration with Emacs, including thorough
  406.     configurability.  The command set is similar to that of rmail
  407.     (the Emacs front end for BSD mail) and BSD mail itself.  On-line
  408.     help is available.
  409.  
  410.     Mh-e allows one to read and process mail very quickly: commands
  411.     are single characters and completion and defaults are available
  412.     for file and folder names.  During a reply, the original message
  413.     is displayed simultaneously in another window for easy reference
  414.     where a mh-e command can quickly incorporate and format this
  415.     text into your reply.
  416.  
  417.     With mh-e you compose outgoing messages in Emacs.  This is a big
  418.     plus for Emacs users, but it has been known for non-Emacs users
  419.     to be able use mh-e after only learning the most basic cursor
  420.     motion commands.  Mh-e is easily configured via the Emacs
  421.     edit-options menu, and people familiar with Emacs Lisp will be
  422.     able to further reconfigure mh-e beyond recognition.  --Stephen
  423.     Gildea <gildea@expo.lcs.mit.edu>
  424.  
  425.     Mh-e is part of the standard GNU Emacs distribution.  Note
  426.     that mh-e got much faster in Emacs 18.56.
  427.  
  428.     primost.cs.wisc.edu [128.105.2.115] pub/mh-e.el.Z        36KB
  429.  
  430.     mime-compose.el allows one to easily include MIME components into
  431.     a mh-e message.  --Marc Andreessen <marca@ncsa.uiuc.edu>  [1.93]
  432.  
  433.     archive.cis.ohio-state.edu
  434.       pub/gnu/emacs/elisp-archive/misc/mime-compose.el.Z    19KB
  435.  
  436.   vmail 
  437.     Vmail is a curses-based, vi-like message browser which calls on
  438.     MH programs to manipulate mail.  It can be used on almost any
  439.     terminal.  It organizes mail folders into index pages, from
  440.     which a message can be selected to be shown, replied-to,
  441.     forwarded, refiled, deleted, and so on.  The vi-like interface
  442.     and command keystrokes are comfortable to less-experienced UNIX
  443.     users, and it is a small, compact program, unlike the mh-e Emacs
  444.     package.
  445.  
  446.     This version of vmail has been bugfixed and enhanced from the
  447.     original vmail published on the net in 1987 by J. Zobel.
  448.     --James Perkins <jamesp@sp-eug.com> [1.93]
  449.  
  450.     ftp.uu.net    [137.39.1.9]
  451.     comp.sources.unix/volume12/vmail/part0*.Z        46KB
  452.  
  453.     ftp.ucs.ubc.ca     [137.82.27.61]    pub/mh/vmail[1-3]of3.Z    58KB
  454.     Or mail requests to James Perkins <jamesp@sp-eug.com>.  [1.93]
  455.  
  456.   vmailtool
  457.     If you have a Sun workstation, vmailtool may be for you.  It is a
  458.     button gadget panel for the above-mentioned vmail program.  It
  459.     brings vmail into the windows era where people no longer need to
  460.     memorize specific command keystrokes.  It also provides a mail
  461.     icon with the flag that pops up when new mail arrives.  Again,
  462.     this is a compact, simple tool, unlike the powerful xmh program.
  463.     Still, it's a welcome alternative for many people who are running
  464.     SunView or OpenWindows.  --James Perkins <jamesp@sp-eug.com> [1.93]
  465.  
  466.     ftp.ucs.ubc.ca     [137.82.27.61]    pub/mh/vmailtool.Z    18KB
  467.     or mail requests to James Perkins <jamesp@sp-eug.com>. [1.93]
  468.  
  469.   plum
  470.     Plum is a highly configurable and extensible screen-oriented front-end
  471.     for processing MH mail on ASCII terminals.  Unlike mh-e, the extension
  472.     language used in plum is perl, not LISP.  Plum offers many of the
  473.     advantages of xmh, but lacks several of xmh's disadvantages.  The
  474.     look&feel derives more from vi than from emacs.  Key bindings and
  475.     functions may be changed on the fly to suit the user's preference.  It
  476.     offers filename and word completion on folder, variables, and command
  477.     names.
  478.  
  479.     Until it is included in the standard distribution (under miscellany),
  480.     you can find a copy on:
  481.  
  482.     convex.com    [130.168.1.1]    pub/plum/plum*        55KB
  483.     or mail requests to Tom Christiansen <tchrist@convex.com>.
  484.  
  485.   mmh     
  486.     MMH, My Mail Handler, is a Motif interface for reading and sending mail.
  487.     It uses the MH commands to actually handle sending a receiving messages.
  488.     It does not support all the capabilities of MH, but offers a large
  489.     enough subset to handle the majority of users.  Its intended user is
  490.     someone between "bumbling e-mail novice" and "sophisticated user".
  491.     Hooks are provided to allow the user to customize and add new commands.
  492.  
  493.     ftp.eos.ncsu.edu    [152.1.9.25]    /pub/bill.tar.Z
  494.  
  495.   metamail
  496.     Metamail is a package that can be used to convert virtually ANY
  497.     mail-reading program on UNIX into a multimedia mail-reading program.
  498.     It is an extremely generic implementation of MIME (Multipurpose
  499.     Internet Mail Extensions), the proposed standard for multimedia mail
  500.     formats on the Internet.  The implementation is extremely flexible and
  501.     extensible, using a "mailcap" file mechanism for adding support for new
  502.     data formats when sent through the mail.  At a heterogeneous site where
  503.     many mail readers are in use, the mailcap mechanism can be used to
  504.     extend them all to support new types of multimedia mail by a single
  505.     addition to a mailcap file.
  506.  
  507.     The metamail distribution comes complete with a small patch for
  508.     each of over a dozen popular mail reading programs, including
  509.     Berkeley mail, mh, Elm, Xmh, Xmail, Mailtool, Emacs Rmail, Emacs
  510.     VM, Andrew, and others.  Note that the MH patches are now integrated
  511.     into MH 6.8 --Nathaniel Borenstein <nsb@thumper.bellcore.com>
  512.  
  513.     thumper.bellcore.com     [128.96.41.1]    /pub/nsb/mm.tar.Z
  514.  
  515.   X.500 lookups  
  516.     If a name is enclosed in square brackets, when entering a destination
  517.     address, ie:
  518.  
  519.     To: [Greg Wickham,CSIRO]
  520.  
  521.     a search will be made in the X.500 Directory for the individual's entry.
  522.     If an address exists then it will be extracted and placed into the
  523.     headers.  Mail requests for the software to the author.  --Andrew
  524.     Waugh <ajw@mel.dit.csiro.au>
  525.  
  526.   QueueMH
  527.     QuemeMH is an e-mail based service request and tracking system
  528.     based on the Rand Mail Handler. --Barbara Dyker
  529.     <dyker@teal.csn.org>  [1.93]
  530.  
  531.     ftp.cs.colorado.edu        pub/cs/sysadmin/utilities/queuemh.tar.Z
  532.  
  533.   QMH:
  534.  
  535.     Qmh is an MH-based group mail management tool. Written entirely in
  536.     perl, Qmh combines the best aspects of MH with group mail
  537.     heuristics and delivers a sensible package for all levels of UNIX
  538.     users. A limitless number of individual queues and associated
  539.     groups of permitted users can be established.
  540.  
  541.     Specific functionality includes the following modes of operation;
  542.     checking header dates and sending reminder/deadline mail, editing
  543.     existing messages, help screens, creating new messages from
  544.     scratch or exiting messages, resolving messages, scanning queue
  545.     folders, and annotating with status both by editing and sending
  546.     mail.
  547.  
  548.     Qmh is a single generic program in and of itself from which all
  549.     modes of operation are invoked. Additionally, each separate queue
  550.     may be accessed via a link to the single program. All system
  551.     configuration is maintained in a single file that is read upon
  552.     each invocation of Qmh.  Formatting and template files are
  553.     provided in the system library, although individual users can
  554.     override the defaults simply by creating equivalent files in their
  555.     own MH mail directory.
  556.  
  557.     Qmh provides a powerful database-like functionality by allowing
  558.     limitless per-queue X-Qmh-<$value> headers to be included in
  559.     messages.  These "fields" then form the context of the queue
  560.     messages and provide a user-defined, but yet structured
  561.     environment for queries, reporting, and random information.
  562.  
  563.     Qmh is designed to provide a complete solution for SA groups, help
  564.     desks, support organizations, or wherever two or more individuals
  565.     are trying to manage multiple mail requests.
  566.  
  567.     Qmh is also compatible with versions of xmh that provide
  568.     user-level command buttons. Provided in the Qmh package is a
  569.     ~/.Xdefaults template file that's setup to harness the power of
  570.     Qmh.
  571.  
  572.     For more info, write to <info@rootgroup.com>.  [3.93]
  573.  
  574.   MacMH and PC/MH:
  575.     These were available only for non-commercial degree-granting
  576.     institutions from:
  577.  
  578.     Networking & Communication Systems
  579.     115 Pine Hall
  580.     Stanford University
  581.     Stanford, CA 94305-4122
  582.     Phone: +1 415-723-3909
  583.  
  584.     --Jerry Peek <jerry@ora.com>
  585.  
  586.     The authorized distributor for PC/MH is:
  587.  
  588.     NEI, Inc.
  589.     210 Technology Drive, STE 210
  590.     Irvine, Ca 92718
  591.     Phone: +1 714-753-8588
  592.     FAX:   +1 714-753-8593
  593.     Internet: info@netix.com
  594.  
  595.     --Shannon Yeh <yeh@orion.oac.uci.edu>
  596.  
  597.     In addition, you might try Wollongong, to see if they have something you
  598.     can get.
  599.  
  600.   
  601. Subject: How can I print a MH manual?
  602. From: Intro-6
  603.  
  604.   To order a copy by mail, see the section on how to get MH by mail in
  605.   "Where can I get MH?"  Also, check "What references exist for MH?"
  606.  
  607.   To print your own copy, first obtain the MH sources ("Where can I
  608.   get MH?") if you don't already have it.  Go into the "doc" directory
  609.   and run "make guide" to create the administrators guide and "make
  610.   manual" to create a user's manual which includes tutorials and man
  611.   pages.  If the doc directory is empty or is missing the Makefile,
  612.   you'll have to run "mhconfig MH" in the conf directory so that the
  613.   documentation with correct local information is created.
  614.  
  615.   For properly formatting the documentation (at least the manual
  616.   pages) you might even have to install MH, because a reference to a
  617.   tmac.h file in the MH lib directory is made in the manual pages.
  618.  
  619.   You can also ftp the ASCII or postscript versions:
  620.  
  621.     ftp.ics.uci.edu    [128.195.1.1]    mh/doc/tutorial.ps.Z        64KB
  622.                     mh/doc/ADMIN.ps.Z        57KB
  623.                     mh/doc/MH.ps.Z (man pages)    273KB  
  624.     ftp.uu.net        [137.39.1.9]    same files, but in dir mail/mh/doc
  625.  
  626.   Or, you can send a note to mail-server@nluug.nl with a body containing the
  627.   following:
  628.  
  629.     send mail/mh/papers-ps/tutorial.ps.Z
  630.  
  631.   --Bill Wohler and Jos Vos <jos@bull.nl> [1.93]  
  632.  
  633.   
  634. Subject: How should I report bugs?
  635. From: Intro-7
  636.  
  637.   Mail them to Bug-MH@ics.uci.edu and be sure to include the output of
  638.   the -help option as well as what hardware and operating system you
  639.   are using.
  640.  
  641.   
  642. Subject: How can I convert from my mailer to MH?
  643. From: Intro-8
  644.  
  645.   If you use one of a mail agent like 'mail', 'mailx', 'elm' or
  646.   'mush', converting to MH is easy.  When you run the 'inc' command,
  647.   it reads all new messages from the system mailbox into your 'inbox'
  648.   folder.  Those mail agents also have separate files or "folders"
  649.   that hold messages in the same format as the system mailbox.  You
  650.   can read them with the 'inc -file' command.  For example, to read
  651.   the messages from your 'mbox' mail file into your MH 'inbox' folder,
  652.   you'd type:
  653.  
  654.     % cd
  655.     % cp mbox mbox.backup
  656.     % inc -file mbox
  657.  
  658.   If you see the usual "Incorporating new mail into inbox..." message
  659.   and a scan listing, the messages probably were converted.  Read some
  660.   or all of them (with the 'show' command) and be sure.  The 'inc'
  661.   won't remove your mbox unless you use '-truncate'. 
  662.  
  663.   Section D.4 (C.4) of the MH book lists two scripts to convert mail
  664.   files to MH folders: babyl2mh to convert from rmail's babyl format;
  665.   vmsmail2mh to convert from VMS's mail (see "What references exist
  666.   for MH" to see where the book's examples can be ftped from).
  667.   --Jerry Peek <jerry@ora.com>
  668.  
  669.   Vivek Khera <khera@cs.duke.edu> rewrote this in Perl since the
  670.   original script doesn't work for some people.  See appendix
  671.   "babyl2mh.pl." [1.93]
  672.  
  673.   Juergen Nickelsen <nickel@cs.tu-berlin.de> provides yet another
  674.   short script.  He says,
  675.  
  676.   "You can remove the second to last second line ("> $input"), so
  677.   that the script doesn't zero out your RMAIL file.
  678.  
  679.   "Another alternative is to replace this line with "inc -file $tmpmbox
  680.   $folder && > $input", so that the RMAIL is only zeroed if inc
  681.   successfully incorporated the mail.  Finally one could add a switch
  682.   -z, so that the RMAIL file is only zeroed if the switch is given.
  683.   See appendix "inco." [1.93]
  684.  
  685.   Use the following to convert a Babyl format file to UNIX mail format.
  686.   --Barry A. Warsaw <warsaw@nlm.nih.gov>.
  687.   durer.cme.nist.gov    [129.6.32.4]    pub/gnu/rmailtovm.el
  688.  
  689.   See also MH book appendix D (appendix C).
  690.  
  691.   
  692. Subject: What machines does MH run on?
  693. From: Building MH-10
  694.  
  695.   If you have a computer running UNIX, you can probably run MH.
  696.   --Jerry Peek <jerry@ora.com>
  697.  
  698.   
  699. Subject: How do I build MH?
  700. From: Building MH-11
  701.  
  702.   By carefully reading the READ-ME in the root of the source
  703.   hierarchy, one should not have any trouble building MH.
  704.  
  705.   
  706. Subject: What options should I use?
  707. From: Building MH-12
  708.  
  709.   BERK: Do NOT include the BERK option (in versions 6.7 or later)!
  710.   BERK breaks the mh-format functions that take apart address lines,
  711.   for example mbox, from, and friendly.  This would really put a crimp
  712.   on my replcomps file.
  713.  
  714.   LOCKF: if you have NFS, you need to lock your mailbox with lockf()
  715.   so the lock will be honored by all machines on the local network.
  716.   If you have the lockf() system call, include LOCKF.
  717.  
  718.   JQ Johnson <jqj@duff.uoregon.edu> makes the point that one should
  719.   use this option carefully since it requires a roboust lockf() call.
  720.   For example, this option caused serious problems on his SunOS 4.1.1.
  721.   He suggested using LOK_BELL instead, and adding "lockstyle: 1" to
  722.   mtstailor.
  723.  
  724.   ATZ: makes your timezones print like "EST" instead of "-0500".  Much
  725.   prettier.
  726.  
  727.   --Stephen Gildea <gildea@expo.lcs.mit.edu>
  728.  
  729.   However, Tony Landells <ahl@technix.oz.au> replies: "Yes; very
  730.   pretty.  How unfortunate that timezone names are so ambiguous, so
  731.   that EST can be interpreted, at a minimum, as (American) Eastern
  732.   Standard Time, (Australian) Eastern Standard Time, or (Australian)
  733.   Eastern Summer Time (and yes, I think it's dumb having the same
  734.   acronym for both normal and Summer time, but that's a different
  735.   problem).  While the numeric timezones may not look as nice, they
  736.   are, at least, reasonably unambiguous.  I would urge anyone who ever
  737.   intends/hopes/expects to use e-mail outside the U.S. to NOT use ATZ
  738.   (sorry Stephen)."
  739.  
  740.   At any rate, the conf/examples directory has been updated and
  741.   contains many examples show you which options are required on your
  742.   platform and which are optional (in the upcoming version MH 6.8).  At
  743.   any rate, it is recommended that you examine the options in the
  744.   example configuration files, and read about them in READ-ME.
  745.  
  746.   RPATHS: a side-effect is that slocal writes messages to your system
  747.   maildrop without the MMDF C-A's that separate messages, so your BSD
  748.   tools like from work. [12.92]
  749.  
  750.   
  751. Subject: Fixing "post: problem initializing server; [BHST] no servers available"
  752. From: Building MH-13
  753.  
  754.   The error message itself is essentially correct.  However, what this
  755.   really means is: MH's post cannot connect to a running sendmail over
  756.   an SMTP port (MH configured with SMTP and SENDMTS).
  757.  
  758.   The potential problems:
  759.  
  760.   1. Your local sendmail daemon is dying or not running for some
  761.   reason.
  762.  
  763.   2. You use BIND and your local nameserver is not responding.
  764.  
  765.   3. Your mtstailor has its "servers:" pointing to a non-existant
  766.   machine or a machine which is a) not reachable or b) not running the
  767.   sendmail daemon.  --Peter Marvit <marvit@hplabs.hpl.hp.com>
  768.  
  769.   
  770. Subject: Where can I get POP3?
  771. From: Building MH-14
  772.  
  773.   MH6.7 (and earlier versions too) include a server for version 3 of POP.
  774.  
  775.   
  776. Subject: What do I do if scan shows the wrong date?
  777. From: Building MH-15
  778.  
  779.   Upgrade to MH 6.8. [1.93]
  780.  
  781.   
  782. Subject: Why slocal writes messages to system maildrop that from(1) can't read.
  783. From: Building MH-16
  784.  
  785.   Upgrade to MH 6.8 and set the RPATHS option.  Better yet, use a more
  786.   MH-like command instead: "scan -file $MAIL".  [1.93]
  787.  
  788.  
  789. Subject: Why does repl add a "Re:" to a message that already has one?
  790. From: Building MH-17
  791.  
  792.   I carefully reconfigured and rebuilt MH from scratch and the problem
  793.   went away.  --Larry McVoy <lm@slovax.Eng.Sun.COM>
  794.  
  795.   
  796. Subject: Does MH support IMAP2 (RFC 1064)?
  797. From: Building MH-18
  798.  
  799.   No.  MH only supports retrieving mail using POP3.  POP3 is on the
  800.   "standards track"--it is now an elective Internet Draft Standard
  801.   (see RFC1280 for more details).  At this point, IMAP[23] are
  802.   "experimental, limited use" protocols; it is unlikely that MH will
  803.   support them.  --John Romine <jromine@ics.uci.edu>
  804.  
  805.   
  806. Subject: Why does "mailgroup mail" only affect inc but not slocal?
  807. From: Building MH-19
  808.  
  809.   If "mailgroup" is set, inc is made set-group-id to this group name.
  810.   Some SYS5 systems want this to be set to "mail".  Set this if
  811.   /usr/spool/mail (or /usr/mail) is not world-writeable.  These
  812.   changes were contributed by Peter Marvit, and "inc" is very careful
  813.   about its use of the set-gid privilege.
  814.  
  815.   Note that slocal doesn't know how to deal with this, and will not
  816.   work under these systems; just making it set-group-id will open a
  817.   security hole (since it doesn't know when to drop the set-gid
  818.   privileges).  If you're using "mailgroup", you should remove slocal
  819.   (and its man page) from your system. --John Romine
  820.   <jromine@ics.uci.edu> [1.93]
  821.  
  822.   Alternatives to slocal include deliver, procmail, and mailagent.
  823.   Archie can help you find where they are kept.
  824.  
  825.   
  826. Subject: Where can I read about slocal and the format of the .maildelivery file?
  827. From: Using MH-30
  828.  
  829.   See the slocal man page.
  830.  
  831.   Here is brief example of a .maildelivery file that stores messages
  832.   to babble in a folder and the system mailbox, stores mh-users in a
  833.   folder but not the system mailbox, and puts the rest in the system
  834.   mailbox.
  835.  
  836.     to  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  837.     cc  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  838.     to  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  839.     cc  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  840.     default -     > ? /usr/spool/mail/wohler
  841.  
  842.   Your .forward file may look like (quotes necessary):
  843.  
  844.     "| /usr/local/lib/mh/slocal -user your_login"
  845.  
  846.   In some implentations, the "-user your_login" is not needed.  If
  847.   not, manually running slocal with the flag will produce an error.
  848.  
  849.   See also chapter 11 in the MH book.
  850.  
  851.   Alternatives to slocal include deliver, procmail, and mailagent.
  852.   Archie can help you find where they are kept.
  853.  
  854.   
  855. Subject: How do I include messages in repl with or without ">"?
  856. From: Using MH-31
  857.     
  858.   When making a reply, specify a filter file on the command line:
  859.  
  860.     repl -filter repl.format
  861.  
  862.   This filter file must be in your MH mail directory (usually "Mail",
  863.   in your home directory).  Here are a couple of example repl.format
  864.   files:
  865.  
  866.     overflowtext="",overflowoffset=0
  867.     message-id:nocomponent,formatfield=\
  868.     "In message %{text}you write:"
  869.     body:component=">",overflowtext=">",overflowoffset=0
  870.  
  871.           or
  872.  
  873.     overflowtext="",overflowoffset=0
  874.     date:component="Your message dated",formatfield=\
  875.     "%<(nodate{text})%{text}%|%(pretty{text})%>"
  876.     body:component=">",overflowtext=">",overflowoffset=0
  877.  
  878.   Setting overflowoffset to 0 keeps MH from doing anything to
  879.   extra-long lines in the headers.  In the body, however, this
  880.   behavior is overridden so that long lines are automatically broken
  881.   and a ">" is inserted before every line.  You could put almost
  882.   whatever you want between those quotes, although the "standard" ">"
  883.   makes it easier to read notes that have been included several times.
  884.   The examples differ with the descriptive text that is inserted
  885.   before the included body.
  886.  
  887.   It is suggested not to use the "prompter" editor in this case, since
  888.   it is likely that you'll not want to use all of the included
  889.   message.  Indeed, it is proper etiquette to edit out all unnecessary
  890.   include verbiage so readers don't have to wade through the morass to
  891.   read your pearls of wisdom.
  892.  
  893.   WARNING: the '>' appears on the first line ONLY in versions prior
  894.   to 6.7.2.  Upgrade to MH 6.8.
  895.     
  896.   --Alan Thew <qq11@liv.ac.uk>, Mike Schwager <schwager@cs.uiuc.edu>,
  897.   James T Perkins <jamesp@sp-eug.com> [1.93]
  898.  
  899.   See also MH book sections 6.7.4, 6.7.5, 9.4.1 (9.3.1).
  900.  
  901.   
  902. Subject: How can I eliminate duplicate copies of letters to myself?
  903. From: Using MH-32
  904.  
  905.   Add these two lines to your MH profile file:
  906.  
  907.     Alternate-Mailboxes: user@host1, user@host2, ...
  908.         repl: -nocc me
  909.  
  910.   To get one copy, you can either:
  911.  
  912.   - Take out the "-nocc me"... then you'll get exactly one copy of
  913.     your replies (assuming all your addresses are listed in
  914.     Alternate-Mailboxes), or
  915.  
  916.   - Add an "Fcc: foldername" to the headers of messages you send.
  917.     That will drop a copy of the message in the folder "foldername".
  918.     You can do this for *all* MH messages you send (not just with
  919.     repl) by putting an "Fcc:" entry in your personal copy of the
  920.     files "components", "replcomps", and "forwcomps" in your MH
  921.     directory.  (If you make a "distcomps" file, it needs
  922.     "Resent-Fcc:".)  For more info, see the man pages comp(1),
  923.     repl(1), forw(1), dist(1) and mh-mail(5). --Jerry Peek <jerry@ora.com>
  924.  
  925.   The Alternate-Mailboxes also tells scan which messages are really
  926.   from you so that it can place the recipient in the scan line instead
  927.   of the sender.  --Bill Wohler
  928.  
  929.   See also MH book sections 6.7.2, 8.6.
  930.  
  931.   This is also a convenient way to AVOID automatically cc-ing a
  932.   mailing list when replying to a person who sent the message to the
  933.   mailing-list, by listing the name of that mailing list in your
  934.   alternate mailboxes.  --Alec Wolman <wolman@crl.dec.com>
  935.  
  936.   
  937. Subject: How would one go about reading Usenet with MH?
  938. From: Using MH-33
  939.  
  940.   Although news readers are better, if one really wants to use
  941.   MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this
  942.   newsgroup.  To enable bbc, you have to specify "bboards" when you
  943.   build MH.  --Stephen Gildea <gildea@expo.lcs.mit.edu>
  944.  
  945.   You can save articles in the news readers for later perusal with MH.
  946.  
  947.   First, create a symbolic link from your mail directory (ie. usenet) to
  948.   your news directory (ie. "ln -s ~/News ~/Mail/usenet").  You can then
  949.   treat your news directory as a mail folder.  Thus, to select a news
  950.   group, use "folder +usenet/comp/mail/mh".
  951.  
  952.   To set the default save location correctly in rn, use:
  953.  
  954.     rn -M -/
  955.  
  956.   or in your nn presentation sequence:
  957.  
  958.     news.announce.        +$F/$N
  959.     comp.mail.mh        +
  960.     .
  961.     .
  962.  
  963.   See also MH book section 8.7.
  964.  
  965.   
  966. Subject: Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?
  967. From: Using MH-34
  968.  
  969.   Yes, see support/general/packmbox.sh in the distribution.  [1.93]
  970.  
  971.   
  972. Subject: How can I include my signature?
  973. From: Using MH-35
  974.  
  975.   There are several ways.
  976.  
  977.   1) The MH way.
  978.  
  979.   1a) In your Mail directory, create files that
  980.       include your signature into the format of the message.
  981.  
  982.      ~/Mail/components:
  983.     To: 
  984.     cc: 
  985.     Subject: 
  986.     --------
  987.  
  988.     --
  989.     Eric Ziegast        ziegast@uunet.uu.net
  990.     UUNET Technologies    uunet!ziegast
  991.  
  992.      ~/Mail/replcomps
  993.     body:component="> ",compwidth=2
  994.     :--
  995.     :Eric Ziegast          ziegast@uunet.uu.net
  996.     :UUNET Technologies    uunet!ziegast
  997.  
  998.      To use the replcomps file, add the following to your ~/.mh_profile:
  999.  
  1000.     repl: -filter replfmt
  1001.  
  1002.      When comp is used, your signature is already there along with my
  1003.      headers.  When repl is used, the mhl program takes the body of
  1004.      the letter you're replying to, prepends '> ' to each line and
  1005.      then adds your signature at the end (available after version 6.7).
  1006.  
  1007.   1b) Create an "editor" which can be called from whatnow to add the
  1008.      signature when desired or create a frontend to post (use the
  1009.      .mh_profile line "postproc: postproc" to call it) that always
  1010.      appends the .signature file before calling post to mail the
  1011.      message.  David J. Fiander <david@golem.uucp>, David A.
  1012.      Truesdell <truesdel@sun418.nas.nasa.gov> and Tom Wilmore
  1013.      <sastjw@unx.sas.com> have sample scripts to do these.
  1014.  
  1015.   1c) Section 13.13 of the MH book lists mysend, a sendproc script to
  1016.     process a message after "What now? send" (see "What references
  1017.     exist for MH" to see where the book's examples can be ftped from).
  1018.     --Jerry Peek <jerry@ora.com> [9.92]
  1019.  
  1020.   2) Using your editor.  If you use vi, you can use something like:
  1021.  
  1022.       map S :r ~/.signature
  1023.  
  1024.      to load your signature out of .signature every time you
  1025.      hit 'S'.
  1026.  
  1027.   3) Use your windowing system.  xterm, for example, can provide key
  1028.      and button mappings for the utterly lazy.
  1029.  
  1030.   4) And if you use Emacs with mh-e, C-c C-s will append the signature.
  1031.  
  1032.   --Eric W. Ziegast <ziegast@uunet.uu.net> & Hardy Mayer
  1033.   <hardy@golem.ps.uci.edu> except where noted.
  1034.  
  1035.   Tired of the same old signature?  Want different signatures for
  1036.   different newsgroups?  Here's a program to help you out.
  1037.  
  1038.   The way it works is to have .signature be a named pipe, so if you
  1039.   don't have named pipes, just say 'n'.
  1040.  
  1041.   The sigrand program then feeds stuff down the pipe everytime someone
  1042.   wants to read it.  That way it works for more than just news, but
  1043.   for anything that wants to read your .signature, like a mailer.
  1044.  
  1045.   You have your choice of three kinds of signatures:
  1046.  
  1047.       1) random (short) fortune from "fortune -s"; you get these if
  1048.      you don't have a global sig file.
  1049.       2) random fortune from ~/News/SIGNATURES [global sig file]
  1050.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  1051.  
  1052.   Ask Tom Christiansen <tchrist@convex.com> for more details.
  1053.  
  1054.   
  1055. Subject: What to do with "Problems with edit - draft removed".
  1056. From: Using MH-36
  1057.  
  1058.   If your users are using an AT&T version of "vi", it's exiting with
  1059.   non-zero status (supposedly a count of the "errors" during the edit).
  1060.   Move "vi" to "broken_vi" and put it its place:
  1061.  
  1062.     #! /bin/sh
  1063.     /usr/ucb/broken_vi $*
  1064.     exit 0
  1065.  
  1066.   Alternatively, compile MH with the ATTVIBUG option.
  1067.  
  1068.   Then complain to your vendor that "vi" is broken, and they should
  1069.   fix it.  --John Romine <jromine@ics.uci.edu>
  1070.  
  1071.   
  1072. Subject: How do I call my editor with arguments?
  1073. From: Using MH-37
  1074.  
  1075.   Set your editor (in .mh_profile) to the following shellscript:
  1076.  
  1077.     #/bin/sh
  1078.     <youreditor> <yourargs> $*
  1079.     exit 0
  1080.  
  1081.   --John Romine <jromine@ics.uci.edu>
  1082.  
  1083.   You might find it useful to make <youreditor> $EDITOR, or to use
  1084.   different arguments depending on your EDITOR environment variable.
  1085.   --Ray Nickson <Ray.Nickson@comp.vuw.ac.nz>
  1086.  
  1087.   
  1088. Subject: ! How do I debug my .maildelivery file?
  1089. From: Using MH-38
  1090.  
  1091.   Use as many of the following as necessary.
  1092.  
  1093.   Put a message into a file and call slocal directly on it.
  1094.  
  1095.     /usr/local/lib/mh/slocal -user $USER -verbose -debug < test-msg 
  1096.  
  1097.   Modify your .forward to look like:
  1098.  
  1099.     "|/bin/sh -c 'exec >> /tmp/out 2>&1; /usr/local/lib/mh/slocal 
  1100.     -user $USER -verbose -debug'"
  1101.  
  1102.   Or modify a rule in .maildelivery to look like this:
  1103.  
  1104.     to foo | R "set -xv; exec >/tmp/out 2>&1;
  1105.     /usr/local/lib/mh/rcvstore +foo"
  1106.  
  1107.   The previous examples are broken up for readability; the text must
  1108.   appear on one line.
  1109.  
  1110.   See also MH book section 11.11. [3.93]
  1111.  
  1112.   
  1113. Subject: How can I digestify the messages in a folder for mail to another user?
  1114. From: Using MH-39
  1115.  
  1116.   How about:
  1117.  
  1118.     forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]
  1119.          messages +folder
  1120.  
  1121.   These messages can be un-digestified :-) by the MH burst(1) program.
  1122.   --Jerry Peek <jerry@ora.com> and Bill Wohler
  1123.  
  1124.   See also MH book sections 6.8, 7.9.
  1125.  
  1126.   
  1127. Subject: Can I run my message through a program (ie. ispell) before sending?  
  1128. From: Using MH-40
  1129.  
  1130.   It's pretty simple.  If your speller is called myspell, use:
  1131.  
  1132.     What now? edit myspell
  1133.  
  1134.   MH will actually execute:
  1135.  
  1136.     myspell /your-mail-draft-directory/draftfile
  1137.  
  1138.   and give the entire draft message to your speller.  The header will
  1139.   probably be "misspelled," of course, though you might be able to
  1140.   tell the speller to ignore it--or you could hack up a little shell
  1141.   script to run the speller on just the message body, then tack the
  1142.   corrected body back onto the header before sending.
  1143.  
  1144.   You can automate this some more.  For example, if you want your
  1145.   speller to run after your first edit with "prompter" and also after
  1146.   you leave the "vi" editor, add these lines to your MH profile:
  1147.  
  1148.       prompter-next: myspell
  1149.       vi-next: myspell
  1150.  
  1151.   Then, at the "What now?" prompt:
  1152.  
  1153.       What now? e
  1154.  
  1155.   your speller will run.  For more info, see the mh-profile(5) man
  1156.   page or section 6.2.1 of the MH book. --Jerry Peek <jerry@ora.com>
  1157.  
  1158.   
  1159. Subject: Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  1160. From: Using MH-41
  1161.       
  1162.   To convert your MH folders to BABYL folders, first run the following script
  1163.   on your Mail directory.
  1164.  
  1165.   #!/bin/sh
  1166.  
  1167.   for f in Mail/*; do
  1168.     if [ -d $f ]; then
  1169.         touch msgbox
  1170.         folder=`basename $f`
  1171.         echo -n packing $folder ...
  1172.         packf +$folder
  1173.         echo done
  1174.         mv msgbox Mail-rmail/$folder
  1175.     fi
  1176.   done
  1177.  
  1178.   This assumes you don't have nested folders.  Your rmail folders will be
  1179.   left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run
  1180.   rmail-input for each folder, which converts each folder into BABYL format.
  1181.  
  1182.   Be sure not to append any messages before they are converted from MMDF
  1183.   to BABYL, since there may be really strange results.
  1184.  
  1185.   
  1186. Subject: Is there documentation for mh-e?
  1187. From: Using MH-42
  1188.  
  1189.   Yes, sort of.  Run "C-h m" (describe-mode) in both scan and
  1190.   letter modes to see which commands and variables are available.
  1191.   Browsing the code is also helpful.
  1192.  
  1193.   
  1194. Subject: How can I change my return address?
  1195. From: Using MH-43
  1196.  
  1197.   If you find that your mailer creates a From header that others have
  1198.   trouble replying to, you can add a Reply-To header to override the
  1199.   From header in replies.
  1200.  
  1201.   Copy the components and replcomps files which are normally found in
  1202.   /usr/local/lib/mh into your Mail directory and add a line like the
  1203.   following after the Subject header replacing my address with your
  1204.   address:
  1205.  
  1206.     Reply-To: wohler@sap-ag.de
  1207.  
  1208.   [12.92]
  1209.   
  1210. Subject: How can I change my From header?
  1211. From: Using MH-44
  1212.  
  1213.   If you're just interested in changing the hostname, add a line to
  1214.   $LIB/mtstailor:
  1215.  
  1216.     localname: desired_host_name
  1217.  
  1218.   --Bill Wisner <wisner@netcom.com> [12.92]
  1219.  
  1220.   Just put a "From:" header in your "components", "replcomps" and
  1221.   "forwcomps" files.  MH will add a "Sender:" header with what it thinks
  1222.   is your real address, but (almost) no one cares about the "Sender:"
  1223.   header anyway.  --Jerry Peek <jerry@ora.com>  [12.92]
  1224.  
  1225.   
  1226. Subject: What to do with "bad address 'xxx' - no at-sign after local-part".
  1227. From: Using MH-45
  1228.  
  1229.   You may find that post returns the following message:
  1230.  
  1231.     post: bad address 'Mr. Foo Bar <fb@somewhere.edu>' - no at-sign
  1232.     after local-part (Bar), continuing...
  1233.  
  1234.   The unquoted dot causes "Mr. Foo" to be parsed as the local part of
  1235.   the address.  Either remove the dot, or rewrite the address as
  1236.   follows: 
  1237.  
  1238.     "Mr. Foo Bar" <fb@somewhere.edu>
  1239.     (Mr. Foo Bar) <fb@somewhere.edu>
  1240.     (Mr. Foo Bar) fb@somewhere.edu
  1241.  
  1242.   --Owen Rees <rtor@ansa.co.uk> [1.93]
  1243.  
  1244.   
  1245. Subject: + How can I search through multiple folders?
  1246. From: Using MH-46
  1247.  
  1248.   Recurse through the folders (in csh and sh):
  1249.  
  1250.   % foreach f (`folders -f`)        $ for f in `folders -f`
  1251.   ? pick [switches] +$f            > pick [switches] +$f
  1252.   ? end                    > done
  1253.  
  1254.   Or create a folder that contains links to all messages (in csh and sh):
  1255.  
  1256.     % foreach f (`folders -f | grep -v -x ln`)    
  1257.     ? refile -src +$f -link all +ln        
  1258.     ? end                        
  1259.  
  1260.     $ for f in `folders -f | grep -v -x ln`
  1261.     > do refile -src +$f -link all +ln
  1262.     > done
  1263.  
  1264.   and in the future, refile messages with "refile +folder +ln".  To
  1265.   find something, use:
  1266.  
  1267.     % pick [switches] +ln
  1268.  
  1269.   See MH book sections 7.2.9, 7.8.3. [3.93]
  1270.  
  1271.   
  1272. Subject: + Why isn't slocal working?
  1273. From: Using MH-47
  1274.  
  1275.   If slocal doesn't appear to be doing anything, run the following
  1276.  
  1277.     /usr/local/lib/mh/slocal -user your_login -verbose < file
  1278.  
  1279.   where "file" is some message in a mail folder.  If you get something
  1280.   like: 
  1281.   
  1282.     .maildelivery: ownership/modes bad (0, 154,154,0100666)
  1283.  
  1284.   your .maildelivery is writable by too many people.  Make it writable
  1285.   only by you by running "chmod 644 .maildelivery".
  1286.  
  1287.   See also "How do I debug my .maildelivery file?" [3.93]
  1288.  
  1289.   
  1290. Subject: + Fixing "post: problem initializing server; [RPLY] 503 Sender already specified"
  1291. From: Using MH-48
  1292.  
  1293.   The problem in sendmail is that the RSET after the ONEX does not
  1294.   reset all the state information.  Normally sendmail fork()s after
  1295.   the Mail from: statement and a RSET causes that child to exit.  This
  1296.   automatically cleans up.  If the fork() is suppressed by ONEX, then
  1297.   the source must be modified to do the cleanup.  See "srvrsmtp.c
  1298.   patch" in the Appendix.  If you don't have the sources, modify your
  1299.   MH sources to not use the ONEX verb.  --Paul Pomes
  1300.   <paul@uxc.cso.uiuc.edu> [3.93]
  1301.  
  1302.   
  1303. Subject: How can I get xmh to use Emacs as the editor?
  1304. From: Xmh-50
  1305.  
  1306.   The modifications to xmh to support an external editor, annotations,
  1307.   and an append command can be found in the these places.  --Bob
  1308.   Ellison <ellison@sei.cmu.edu>
  1309.  
  1310.   export.lcs.mit.edu                R5fixes/xmh.editor/*
  1311.   ftp.sei.cmu.edu                pub/xmh
  1312.  
  1313.   As of R5, xmh has a new action proc called XmhShellCommand.  A
  1314.   string parameter will be executed as a shell command with the
  1315.   currently selected messages as parameters (or the current message if
  1316.   there are no selected messages).
  1317.  
  1318.   Using this new action, a couple of shell scripts, a window version
  1319.   of emacs (e.g. xemacs) and some elisp code, xmh can use emacs as its
  1320.   editor instead of the built in Athena text widget editor.  This
  1321.   doesn't require any source code changes to xmh.  These are included
  1322.   in the appendix "Switching xmh's editor".  --Andrew Wason
  1323.   <aw@bae.bellcore.com> 
  1324.  
  1325.   
  1326. Subject: Does xmh support subfolders?
  1327. From: Xmh-51
  1328.  
  1329.   Yes. Create one by invoking "Create Folder" as usual, and enter
  1330.   something like: existing-folder/new-sub-folder. You can then access
  1331.   the subfolder by popping up a menu over the "existing-folder" button
  1332.   item.  --Steve Malowany <malowany@cenparmi.concordia.ca>
  1333.  
  1334.   But:
  1335.  
  1336.   The R5 version of xmh does *not* handle nested sub-folders.  If you
  1337.   create a folder as 'grab/some/bandwidth', xmh displays this
  1338.   foldername for the remainder of the session where it was created,
  1339.   BUT if you later re-run xmh, the folder is no longer visible to xmh.
  1340.   --John Cooper <jsc@saxon.Eng.Sun.COM>
  1341.  
  1342.   See also MH book section 15.6.2 (14.6.2).
  1343.  
  1344.   
  1345. Subject: How do I precede included messages with ">" when replying in xmh?
  1346. From: Xmh-52
  1347.  
  1348.   Include the following line in your ~/app-defaults/XMh file:
  1349.  
  1350.     Xmh*replyInsertFilter: "sed 's/^/> /'"
  1351.  
  1352.   --Len Makin <len@mel.dit.csiro.au>
  1353.  
  1354.   or, 
  1355.  
  1356.     Xmh.ReplyInsertFilter: /usr/local/lib/mh/mhl -form repl.filter
  1357.  
  1358.   Using this means that you can chose to insert the original by use of
  1359.   the "Insert" button in the Draft message pane.  See "How do I
  1360.   include messages in repl with or without ">"?" to find examples of
  1361.   repl.filter. --Andy Linton <andy.linton@comp.vuw.ac.nz>
  1362.  
  1363.   See also MH book sections 15.1.4 (14.1.4), 16.3.3 (15.2.3).
  1364.  
  1365.   
  1366. Subject: Glossary
  1367. From: Appendix
  1368.  
  1369.   MH    Mail Handler
  1370.   POP3    Post Office Protocol, RFC 1225    
  1371.   MMDF    Multi-channel Memo Distribution Facility
  1372.   MIME    Multipurpose Internet Mail Extensions
  1373.  
  1374.   
  1375. Subject: Acknowledgements
  1376. From: Appendix
  1377.  
  1378. I'd like to thank the following people for providing ideas on the
  1379. layout of this article:
  1380.  
  1381. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  1382. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@convex.com>
  1383. Eugene N. Miya <eugene@nas.nasa.gov>
  1384.  
  1385.  
  1386. We are also grateful to the individuals mentioned below and in the
  1387. text of this document who have provided answers or other information
  1388. to make this a better document.  I regret that it is possible that
  1389. some names have been accidently omitted.  I would also like to thank
  1390. all the readers of comp.mail.mh.
  1391.  
  1392. Kim F. Storm <storm@texas.dk>          Edward Vielmetti <emv@ox.com>
  1393.  
  1394.   
  1395. Subject: Warranty
  1396. From: Appendix
  1397.  
  1398. [The following statement epitomizes the ridiculous state of affairs in
  1399. our country (I'm an American) and can be ignored outside the US...]
  1400.  
  1401. No Warranty: Because this article is provided free of charge as a
  1402. service to comp.mail.mh readers, we provide absolutely no warranty, to
  1403. the extent permitted by applicable state law.  This article is
  1404. provided "as is" without warranty of any kind, either expressed or
  1405. implied, including, but not limited to, the implied warranties of
  1406. merchantability and fitness for a particular purpose.  Should the
  1407. information prove defective, you assume the cost of all necessary
  1408. servicing, repair or correction.
  1409.  
  1410.   
  1411. Subject: Switching xmh's editor
  1412. From: Appendix
  1413.  
  1414. #! /bin/sh
  1415. # This is a shell archive.  Remove anything before this line, then unpack
  1416. # it by saving it into a file and typing "sh file".  To overwrite existing
  1417. # files, type "sh file -c".  You can also feed this as standard input via
  1418. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  1419. # will see the following message at the end:
  1420. #        "End of shell archive."
  1421. # Contents:  README Xmh.ad xmh-command.el xmhcommand xmhemacs
  1422. # Wrapped by aw@jello on Fri Nov 15 17:10:34 1991
  1423. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  1424. if test -f 'README' -a "${1}" != "-c" ; then 
  1425.   echo shar: Will not clobber existing file \"'README'\"
  1426. else
  1427. echo shar: Extracting \"'README'\" \(1269 characters\)
  1428. sed "s/^X//" >'README' <<'END_OF_FILE'
  1429. XThis is a short description of what to do with each of the enclosed files.
  1430. X
  1431. XXmh.ad
  1432. X  Merge this in with your xmh resources.  If you already have
  1433. X  user defined buttons, then you may need to renumber the
  1434. X  buttons in this resource file.
  1435. X
  1436. Xxmh-command.el
  1437. X  Byte compile this file and put it in your GNU emacs load-path.
  1438. X
  1439. Xxmhcommand
  1440. Xxmhemacs
  1441. X  Put these somewhere in your path.
  1442. X
  1443. X
  1444. XOnce you have installed these, restart the R5 xmh with the new
  1445. Xresources.  When you press the repl, forw or comp buttons
  1446. Xan xemacs window will come up with your draft message.
  1447. X
  1448. XOnce you have written your mail, save it and exit GNU emacs (C-xC-c).
  1449. XYou will be prompted if you want to send the current message.
  1450. XIf you enter 'y', the message will be sent and the output will
  1451. Xbe displayed in an emacs window (in case you use -verbose or -snoop).
  1452. XThen you will be prompted to exit emacs.  Enter 'y' when you are ready.
  1453. X
  1454. XIf you answered 'n' when prompted to send the message,
  1455. Xthen the draft message will be deleted and emacs will exit.
  1456. X
  1457. XYou can modify the Xmh.ad resources to add more buttons.
  1458. XAny MH command which accepts "+folder msg" can be used
  1459. X(e.g. a replx shell script which includes the body of the
  1460. Xmessage being replied to can be bound to a replx button)
  1461. X
  1462. X
  1463. XAndrew Wason
  1464. Xaw@bae.bellcore.com
  1465. END_OF_FILE
  1466. if test 1269 -ne `wc -c <'README'`; then
  1467.     echo shar: \"'README'\" unpacked with wrong size!
  1468. fi
  1469. # end of 'README'
  1470. fi
  1471. if test -f 'Xmh.ad' -a "${1}" != "-c" ; then 
  1472.   echo shar: Will not clobber existing file \"'Xmh.ad'\"
  1473. else
  1474. echo shar: Extracting \"'Xmh.ad'\" \(457 characters\)
  1475. sed "s/^X//" >'Xmh.ad' <<'END_OF_FILE'
  1476. XXmh*CommandButtonCount:            3
  1477. X
  1478. XXmh*commandBox.button1.label:        repl
  1479. XXmh*commandBox.button1.translations:\
  1480. X    #override\n\
  1481. X    <Btn1Up>:    XmhShellCommand(xmhcommand y repl) unset()
  1482. X
  1483. XXmh*commandBox.button2.label:        forw
  1484. XXmh*commandBox.button2.translations:\
  1485. X    #override\n\
  1486. X    <Btn1Up>:    XmhShellCommand(xmhcommand y forw) unset()
  1487. X
  1488. XXmh*commandBox.button3.label:        comp
  1489. XXmh*commandBox.button3.translations:\
  1490. X    #override\n\
  1491. X    <Btn1Up>:    XmhShellCommand(xmhcommand n comp) unset()
  1492. END_OF_FILE
  1493. if test 457 -ne `wc -c <'Xmh.ad'`; then
  1494.     echo shar: \"'Xmh.ad'\" unpacked with wrong size!
  1495. fi
  1496. # end of 'Xmh.ad'
  1497. fi
  1498. if test -f 'xmh-command.el' -a "${1}" != "-c" ; then 
  1499.   echo shar: Will not clobber existing file \"'xmh-command.el'\"
  1500. else
  1501. echo shar: Extracting \"'xmh-command.el'\" \(1294 characters\)
  1502. sed "s/^X//" >'xmh-command.el' <<'END_OF_FILE'
  1503. X;;; These functions are for use with xemacs and xmh.
  1504. X;;; The R5 xmh has a new action - XmhShellCommand which executes
  1505. X;;; a shell command with the current msg as an arg.
  1506. X;;; By executing something like:
  1507. X;;;    XmhShellCommand(xmhcommand repl)
  1508. X;;; you can use xemacs as your editor with xmh.
  1509. X;;;
  1510. X;;; The following elisp functions perform the basic whatnowproc functionality
  1511. X;;; (quitting and deleting, sending)
  1512. X;;;
  1513. X;;; Andrew Wason  aw@bae.bellcore.com
  1514. X
  1515. X
  1516. X;;; Override C-xC-c
  1517. X(define-key indented-text-mode-map "\C-x\C-c" 'xmh-command-send-or-delete)
  1518. X
  1519. X
  1520. X(setq mhdraft (getenv "mhdraft"))    ; save the filename of the draft
  1521. X
  1522. X
  1523. X(find-file mhdraft)            ; load the draft letter
  1524. X(indented-text-mode)
  1525. X(setq draft-buffer (current-buffer))    ; save the buffer the draft is in
  1526. X
  1527. X
  1528. X(defun xmh-command-send-or-delete ()
  1529. X  "Prompt to send or delete letter, then quit."
  1530. X  (interactive)
  1531. X  (set-buffer draft-buffer)
  1532. X  (if (y-or-n-p "Send message? ")
  1533. X      (progn
  1534. X    (save-buffer)                ; save the draft buffer
  1535. X    (message "Sending...")
  1536. X    (pop-to-buffer "MH mail delivery"); pop to a buffer for "send" output
  1537. X    (erase-buffer)
  1538. X    (call-process "send" nil t t mhdraft)    ; call MH "send"
  1539. X    (if (y-or-n-p "Exit? ")
  1540. X        (kill-emacs)))            ; exit emacs
  1541. X    (delete-file mhdraft)            ; delete the draft letter
  1542. X    (kill-emacs)))                ; exit emacs
  1543. END_OF_FILE
  1544. if test 1294 -ne `wc -c <'xmh-command.el'`; then
  1545.     echo shar: \"'xmh-command.el'\" unpacked with wrong size!
  1546. fi
  1547. # end of 'xmh-command.el'
  1548. fi
  1549. if test -f 'xmhcommand' -a "${1}" != "-c" ; then 
  1550.   echo shar: Will not clobber existing file \"'xmhcommand'\"
  1551. else
  1552. echo shar: Extracting \"'xmhcommand'\" \(669 characters\)
  1553. sed "s/^X//" >'xmhcommand' <<'END_OF_FILE'
  1554. X#!/bin/sh
  1555. X# This shell should be invoked by the xmh XmhShellCommand() action as
  1556. X#   XmhShellCommand(xmhcommand y repl)
  1557. X#   XmhShellCommand(xmhcommand n comp) etc.
  1558. X# If the second arg is y, then the message list will be used.
  1559. X
  1560. X# We invoke the passed MH command on the identified message
  1561. X# (we must strip the message number and folder from the pathname)
  1562. X(if [ $1 = "y" ]
  1563. Xthen
  1564. X    $2 -whatnowproc xmhemacs +`dirname \`echo $3 | \
  1565. X        sed "s;\\\`mhpath +\\\`/;;"\`` `basename $3`
  1566. X
  1567. X# You can use this more readable version instead if you have ksh
  1568. X#    $2 -whatnowproc xmhemacs +$(dirname $(echo $3 | \
  1569. X#        sed "s;$(mhpath +)/;;")) $(basename $3)
  1570. X
  1571. Xelse
  1572. X    $2 -whatnowproc xmhemacs
  1573. Xfi)&
  1574. END_OF_FILE
  1575. if test 669 -ne `wc -c <'xmhcommand'`; then
  1576.     echo shar: \"'xmhcommand'\" unpacked with wrong size!
  1577. fi
  1578. chmod +x 'xmhcommand'
  1579. # end of 'xmhcommand'
  1580. fi
  1581. if test -f 'xmhemacs' -a "${1}" != "-c" ; then 
  1582.   echo shar: Will not clobber existing file \"'xmhemacs'\"
  1583. else
  1584. echo shar: Extracting \"'xmhemacs'\" \(116 characters\)
  1585. sed "s/^X//" >'xmhemacs' <<'END_OF_FILE'
  1586. X#!/bin/sh
  1587. X# Invoke xemacs and load the xmh-command.el stuff.
  1588. X# xmhemacs is used by xmhcommand
  1589. Xxemacs -l xmh-command
  1590. END_OF_FILE
  1591. if test 116 -ne `wc -c <'xmhemacs'`; then
  1592.     echo shar: \"'xmhemacs'\" unpacked with wrong size!
  1593. fi
  1594. chmod +x 'xmhemacs'
  1595. # end of 'xmhemacs'
  1596. fi
  1597. echo shar: End of shell archive.
  1598. exit 0
  1599.  
  1600.   
  1601. Subject: babyl2mh.pl
  1602. From: Appendix
  1603.  
  1604. #!/usr/gnu/bin/perl
  1605. # incorporate an RMAIL babyl file into an MH folder
  1606. #
  1607. # usage: babyl2mh +folder babyl-file
  1608. #
  1609. # V. Khera <khera@cs.duke.edu> 17-JUL-1991
  1610.  
  1611. # where to find rcvstore
  1612. $rcvstore = "/usr/local/lib/mh/rcvstore";
  1613.  
  1614. #
  1615. # pull out command line args
  1616. #
  1617. die "usage: babyl2mh +folder babyl-file\n" unless @ARGV == 2;
  1618.  
  1619. $folder = shift;
  1620. # make sure folder name starts with a "+"
  1621. (substr($folder,0,1) eq "+") || (substr($folder,0,0) = "+");
  1622. $bfname = shift;
  1623.  
  1624. print "Incorporating RMAIL file $bfname into MH folder $folder\n";
  1625.  
  1626. #
  1627. # read in babyl file.
  1628. #
  1629. $/ = "\037";    # this separates the records in a babyl file
  1630. $* = 1;        # records are multi-lines
  1631.  
  1632. open(BABYL,$bfname) || die "Couldn't open $bfname\n";
  1633.  
  1634. $_ = <BABYL>;    # discard header.
  1635.  
  1636. $msgnum = 0;
  1637.  
  1638. while (<BABYL>) {
  1639.   chop;        # get rid of delimeter
  1640.   s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//;    # remove duplicate header information
  1641.   open(RCVSTORE,"|" . $rcvstore . " $folder");
  1642.   print RCVSTORE $_;
  1643.   $msgnum++;
  1644.   print "Message $msgnum done.\n";
  1645. }
  1646.  
  1647.   
  1648. Subject: inco
  1649. From: Appendix
  1650.  
  1651. #!/bin/sh
  1652. # Usage: inco [from [folder]]
  1653. # "from" defaults to $HOME/Mail/outbound, "folder" to +inbox.
  1654.  
  1655. lispfile=/tmp/inco.$$.el
  1656. input=${1-$HOME/Mail/outbound}
  1657. tmpmbox=/tmp/inc.$$.mbox
  1658. folder=${2-+inbox}
  1659.  
  1660. if [ $# -ge 3 ]; then
  1661.     echo Usage: `basename $0` [ from [ folder ]]
  1662.     exit 2
  1663. fi
  1664.  
  1665. trap "rm -f $lispfile $tmpmbox ; exit 1" 1 2 15
  1666.  
  1667. touch $tmpmbox
  1668. chmod 600 $tmpmbox
  1669.  
  1670. echo '(rmail-input "'$input'")
  1671. (rmail-last-message)
  1672. (setq last (rmail-what-message))
  1673. (rmail-show-message 1)
  1674. (while (not (equal (rmail-what-message) last))
  1675.   (rmail-output "'$tmpmbox'")
  1676.   (rmail-delete-forward nil))
  1677. (rmail-output "'$tmpmbox'")
  1678. (kill-buffer (current-buffer))
  1679. ' > $lispfile
  1680.  
  1681. emacs -batch -l $lispfile
  1682. inc -file $tmpmbox $folder
  1683.  
  1684. > $input
  1685. rm -f $lispfile $tmpmbox
  1686.  
  1687.   
  1688. Subject: srvrsmtp.c patch
  1689. From: Appendix
  1690.  
  1691. >From the 5.67 sources:
  1692.  
  1693. *** srvrsmtp.c-    Mon Feb 22 12:25:54 1993
  1694. --- srvrsmtp.c    Mon Feb 22 12:29:09 1993
  1695. ***************
  1696. *** 384,389 ****
  1697. --- 384,395 ----
  1698.               message("250", "Reset state");
  1699.               if (InChild)
  1700.                   finis();
  1701. +             /* clean up a bit if running in parent */
  1702. +             hasmail = FALSE;
  1703. +             dropenvelope(CurEnv);
  1704. +             CurEnv = newenvelope(CurEnv);
  1705. +             CurEnv->e_flags = BlankEnvelope.e_flags;
  1706.               break;
  1707.   
  1708.             case CMDVRFY:        /* vrfy -- verify address */
  1709.  
  1710.  
  1711. Local Variables:
  1712. mode: outline
  1713. outline-regexp: "^Subject:"
  1714. fill-prefix: "  "  
  1715. eval: (progn (setq buffer-read-only nil) (hide-body))
  1716. End:
  1717.