home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / mail / mh-faq / part1 < prev   
Encoding:
Internet Message Format  |  2004-05-09  |  149.3 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <mail/mh-faq/part1_1084010824@rtfm.mit.edu>
  3. Supersedes: <mail/mh-faq/part1_1081511793@rtfm.mit.edu>
  4. Expires: 19 Jun 2004 10:07:04 GMT
  5. X-Last-Updated: 2001/07/23
  6. Newsgroups: comp.mail.mh,comp.answers,news.answers
  7. Subject: MH Frequently Asked Questions (FAQ) with Answers
  8. Keywords: FAQ,mh,mail,question,answer,pop,slocal,letter,signature,
  9.       draft,message,folder,xmh,olmh,vmail,vmailtool,comp,repl,
  10.       forw,scan,SMTP,bind,mh-e,MIME,plum,exmh,nmh
  11. Summary: This document answers Frequently Asked Questions about MH, a
  12.      sophisticated mail interface.  It should be read by new MH
  13.      users and comp.mail.mh readers and before posting to this group.
  14. Followup-To: poster
  15. Approved: news-answers-request@MIT.Edu
  16. Reply-To: Bill Wohler <wohler@newt.com>
  17. From: Bill Wohler <wohler@newt.com>
  18. Organization: Newt Software, Burlingame, California, USA
  19. Originator: faqserv@penguin-lust.MIT.EDU
  20. Date: 08 May 2004 10:07:56 GMT
  21. Lines: 4267
  22. NNTP-Posting-Host: penguin-lust.mit.edu
  23. X-Trace: 1084010876 senator-bedfellow.mit.edu 574 18.181.0.29
  24. Xref: senator-bedfellow.mit.edu comp.mail.mh:14065 comp.answers:57098 news.answers:270987
  25.  
  26. Archive-name: mail/mh-faq/part1
  27. Last-modified: $Date: 2001/07/23 06:33:32 $
  28. Version: $Revision: 2001.07.2.1 $
  29. Posting-Frequency: monthly
  30.  
  31.   This is a living list of frequently asked questions on the mailer
  32.   user interface, Mail Handler, or MH.  The point of this is to
  33.   circulate existing information, and avoid rehashing old answers.
  34.   Better to build on top than start again.  Please read this document
  35.   before ever posting to this newsgroup.
  36.  
  37.   This article is posted monthly.  If it has already expired and
  38.   you're not reading this, you can hope that you saved the
  39.   instructions to retrieve the FAQ (see "Where can I get MH") so that
  40.   you can get a copy through other means.
  41.  
  42.   Please do not post an answer when someone posts a frequently asked
  43.   question; rather, email the relevant section of the FAQ to eliminate
  44.   unnecessary traffic in this newsgroup.
  45.  
  46.   This list depends on your comments, additions and fixes: please send
  47.   them to Bill Wohler <wohler at newt.com>.
  48.  
  49.   Copyright 1991,1992,1993,1994,1995,1996,1997,1998,1999,2001 Bill Wohler
  50.  
  51.   Permission to use, copy, distribute, and translate this document for
  52.   any non-commercial purpose is hereby granted, provided that this
  53.   copyright notice appears in all copies.  Commercial distributions
  54.   require prior written consent.
  55.  
  56.   This article is distributed in the hope that it will be useful,
  57.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  58.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  59.  
  60. ----------------------------------------------------------------------
  61.   
  62. Subject: Table of Contents
  63. From: Bill Wohler <wohler at newt.com>
  64. Date: Sat, 3 Mar 2001 11:29:16 -0800
  65.  
  66. Legend: + new, - deleted, ! changed
  67. __________________
  68.  
  69. 01.00 Introduction
  70.  
  71.  01.01 Why should I use MH?
  72.  01.02 What is the current version/status of MH?
  73.  01.03 Where can I get MH?
  74.  01.04 What references exist for MH?
  75.  01.05 What other MH software is available?
  76.  01.06 How can I print a MH manual?
  77.  01.07 How should I report bugs?
  78.  01.08 How can I convert from my mailer to MH?
  79. _________________
  80.  
  81. 02.00 Building MH
  82.  
  83.  02.01 What machines does MH run on?
  84.  02.02 How do I build MH?
  85.  02.03 What options should I use?
  86.  02.04 What do I need to do to use POP?
  87.  02.05 Does MH support IMAP?
  88.  02.06 Why does "mailgroup mail" only affect inc and not slocal?
  89.  02.07 How can I build MH on Solaris 2?
  90.  02.08 How can I build MH on Linux?
  91.  02.09 How can I build MH on IRIX?
  92.  02.10 How can I get MH to interpret the Content-Length field?
  93.  02.11 How do I build MH on HP-UX?
  94.  02.12 Can I prevent adding the local hostname to addresses behind firewalls?
  95.  02.13 Is there a patch to fix this or that?
  96.  02.14 How can I build MH on OS/2?
  97.  02.15 Do any POP/IMAP servers handle MH format?
  98. ________________________
  99.  
  100. 03.00 Scanning & Reading
  101.  
  102.  03.01 What do I do if scan shows the wrong date?
  103.  03.02 How would one go about reading Usenet with MH?
  104.  03.03 How can I search through multiple folders?
  105.  03.04 Why don't MH format commands such as %(friendly) work?
  106.  03.05 Why doesn't "show" display all of a MIME message?
  107.  03.06 Can I get show not to run "less" so much on MIME messages?
  108.  03.07 Why do I get "mhn: don't know how to display content"?
  109.  03.08 How can I automatically delete MH backup files?
  110.  03.09 Fixing "cannot fopen and lock /var/spool/mail/(user)".
  111.  03.10 Can I read my mail with a Web browser?
  112.  03.11 How can I run inc automatically with POP?
  113.  03.12 Why does inc hang (on Sun)?
  114.  03.12 How can I get POP to work?
  115.  03.13 How do I persuade mhshow (mhn) not to bring up a new window?
  116.  03.14 How do I turn off of all the mhshow (mhn) prompts?
  117.  03.15 Why is inc splitting messages improperly?
  118.  03.16 Can MH thread messages?
  119.  03.17 How can I avoid reading the HTML version of the message?
  120.  03.18 How do I view or save attachments?
  121.  03.19 How do I view HTML attachments with Netscape?
  122. ____________
  123.  
  124. 04.00 Filing
  125.  
  126.  04.01 Can I append MH messages to a Unix mailbox format file?
  127.  04.02 Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  128.  04.03 Why do I get ".../.mh_sequences is poorly formatted?"
  129.  04.04 How can you save News articles into an MH folder?
  130.  04.05 Are there any good tools to archive MH messages?
  131.  04.06 How can I remove duplicate messages?
  132.  04.07 How can I remove holes in numbering?
  133. __________________________
  134.  
  135. 05.00 Composing & Replying
  136.  
  137.  05.01 Why does repl add a "Re:" to a message that already has one?
  138.  05.02 How do I include messages in repl with or without ">"?
  139.  05.03 How can I eliminate duplicate copies of letters to myself?
  140.  05.04 How can I include my signature?
  141.  05.05 How do I call my editor with arguments?
  142.  05.06 How can I digestify messages in a folder for mail to another user?
  143.  05.07 How can I change my return address?
  144.  05.08 How can I change my From header?
  145.  05.09 How can I save a copy of all messages I send?
  146.  05.10 Can the folder in Fcc: be dynamically specified?
  147.  05.11 Can I post secure/encryped mail?
  148.  05.12 How can I send multi-media (MIME) attachments?
  149.  05.13 What's the best way to send mail to a long list of people?
  150.  05.14 What is the Dcc header?
  151.  05.15 How can I make sense of the replcomps file?
  152.  05.16 How can I convert quoted-printable to 8bit in quoted text in replies?
  153.  05.17 Can I have aliases include aliases?
  154.  05.18 Why doesn't mhmail understand aliases?
  155.  05.19 How do I send blind carbon copies?
  156.  05.20 When I forward a message, can I use its Subject?
  157.  05.21 Why is the timezone field in my 'Date:' field wrong?
  158.  05.22 Can I automate the comp -editor mhn process?
  159.  05.23 How can I remove those "=20" characters when forwarding?
  160.  05.24 Can I use mh-format substitution with forw?
  161. _____________
  162.  
  163. 06.00 Posting
  164.  
  165.  06.01 What to do with "Problems with edit - draft removed".
  166.  06.02 Can I run my message through a program (e.g., ispell) before sending?
  167.  06.03 What to do with "bad address 'xxx' - no at-sign after local-part".
  168.  06.04 Fixing "post: problem initializing server; [BHST] no servers available"
  169.  06.05 Fixing "post: problem initializing server; [RPLY] 503 Sender
  170.        already specified"
  171.  06.06 Fixing "post: unexpected response; [BHST] no socket opened"
  172.  06.07 How do I fix the "X-Authentication-Warning" header?
  173.  06.08 Fixing "post: unexpected response; [RPLY] 503 Need MAIL
  174.        before RCPT"
  175.  06.09 Fixing "post: problem initializing server; [BHST] premature
  176.        end-of-file on socket"
  177.  06.10 Fixing "Sender didn't use the HELO protocol"
  178.  06.11 Fixing "post: problem initializing server; [RPLY] 553 Local
  179.        configuration error, hostname not recognized as local
  180. __________________
  181.  
  182. 07.00 Mail Filters
  183.  
  184.  07.01 What mail filters are available?
  185.  07.02 Why slocal writes messages to system mailbox that from(1) can't read.
  186.  07.03 Where can I read about slocal and the format of .maildelivery?
  187.  07.04 How do I debug my .maildelivery file?
  188.  07.05 Why isn't slocal working?
  189.  07.06 Are there any good biff applications for MH?
  190. __________
  191.  
  192. 08.00 mh-e
  193.  
  194.  08.01 I have a question about mh-e
  195. _________
  196.  
  197. 09.00 Xmh
  198.  
  199.  09.01 How can I get xmh to use Emacs as the editor?
  200.  09.02 Does xmh support subfolders?
  201.  09.03 How do I precede included messages with ">" when replying in xmh?
  202. ________
  203.  
  204. Appendix
  205.  
  206.  Glossary & Acknowledgments
  207.  Switching xmh's editor
  208.  babyl2mh.pl
  209.  inco - babyl to MH converter
  210.  +t2h - add hyperlinks to message viewed
  211.  srvrsmtp.c patch
  212.  IRIX config file
  213.  HP-UX 10.20 config file
  214.  Removing duplicate messages (Bourne)
  215.  Removing duplicate messages (Perl)
  216.  
  217. ------------------------------
  218.   
  219. Subject: Viewing This Article
  220. From: Bill Wohler <wohler at newt.com>
  221. Date: Mon, 27 Nov 1995 14:44:19 -0800
  222.  
  223.   To skip to a particular question with Subject or number xx, use
  224.   "/^S.*xx" with most pagers.  In GNU Emacs type "M-C-s ^S.*xx", (or
  225.   C-r to search backwards), followed by ESC to end the search.
  226.  
  227.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  228.   "M-C-s ^S.*[!+]" in GNU Emacs.
  229.  
  230.   This article is in digest format.  nn may have already broken this
  231.   message into separate articles; if not, then type "G %".  In rn, use
  232.   ^G to skip sections.
  233.  
  234.   This article is treated as an outline when edited by GNU Emacs.  Run
  235.   "M-x describe-mode" to see available outline-mode commands.  Useful
  236.   commands are "M-x hide-body",  "C-c C-s" (show-subtree) and "M-x
  237.   show-all"
  238.  
  239.   Check out the Usenet Hypertext FAQ Archive (see "What references
  240.   exist for nn?"). Files available by ftp, man pages, and other Web
  241.   pages, as well as cross-references like the one in this paragraph
  242.   are just a click away.
  243.  
  244.   A "Date" field whose time is 00:00:00 is approximate.  The month and
  245.   year in these fields represent the time they were added to the FAQ,
  246.   rather than when they were contributed by the author, as is the case
  247.   since November, 1995.
  248.  
  249.   If you should need the Internet address, use nslookup or dig if you
  250.   have them, or send mail to <dns at grasp.insa-lyon.fr> with
  251.   "help" for a Subject.
  252.  
  253.   References to $MHLIB refer to the directory that contains MH support
  254.   files and routines. This directory is usually /usr/lib/mh or
  255.   /usr/local/lib/mh (or /usr/local/nmh/lib or /etc/nmh for nmh). Do
  256.   not use $MHLIB literally; use the real, absolute path to your MH
  257.   library directory.
  258.  
  259.   There are slight differences between the original MH and nmh. In the
  260.   text, the nmh command or filename is preferred, and the MH
  261.   equivalent is placed in parenthesis. For example, the MH
  262.   configuration is in $MHLIB/mts.conf (mtstailor); mhshow (mhn -show)
  263.   is used to view attachments.
  264.  
  265.   Note that due to bottom feeding email address harvesting spam scum,
  266.   mailto links have been removed and @s in addresses have been
  267.   replaced by "at."
  268.   
  269. ------------------------------
  270.  
  271. Subject: 01.00 ***** Introduction *****
  272. From: Bill Wohler <wohler at newt.com>
  273. Date: Fri, 1 Mar 1991 13:03:15 -0800
  274.  
  275. ------------------------------
  276.  
  277. Subject: 01.01 Why should I use MH?
  278. From: Jerry Peek <jpeek at jpeek.com>
  279. Date: Fri, 1 Mar 1991 13:03:15 -0800
  280.  
  281.   The MH message handling system is a set of electronic mail programs
  282.   in the public domain.  If your computer runs Unix, it can probably
  283.   run MH.
  284.  
  285.   The big difference between MH and most other "mail user agents" is
  286.   that you can use MH from a Unix shell prompt.  In MH, each command
  287.   is a separate program, and the shell is used as an interpreter.  So,
  288.   all the power of Unix shells (pipes, redirection, history, aliases,
  289.   and so on) works with MH--you don't have to learn a new interface.
  290.   Other mail agents have their own command interpreter for their
  291.   individual mail commands (although the mush mail agent simulates a
  292.   Unix shell).
  293.  
  294.   Because MH commands aren't part of a monolithic mail system, you can
  295.   use them at any time; you don't have to start or quit the mail
  296.   agent.  Because you use them from a shell prompt, you can use all
  297.   the power of the shell.
  298.  
  299.   If your shell has time-saving aliases or functions (and most do),
  300.   you'll be able to use them with MH, of course.  And because MH isn't
  301.   a monolithic mail agent, you can use MH commands in Unix shell
  302.   scripts, or call them from programs in high-level languages like C.
  303.  
  304.   Unlike most mail agents, MH keeps each message in a separate file.
  305.   The filename is the message number.  To rearrange the messages, MH
  306.   just changes the filenames.  MH can use standard Unix file system
  307.   operations such as removing, copying and linking messages.  The
  308.   message files are grouped into one or more folders, which are
  309.   actually Unix directories.
  310.  
  311.   MH is free, powerful, flexible--and the basics are easy to learn.
  312.  
  313. ------------------------------
  314.   
  315. Subject: 01.02 What is the current version/status of MH.
  316. From: Bill Wohler <wohler at newt.com>
  317. Date: Tue, 9 Feb 1999 22:49:18 -0800
  318.  
  319.   The current official version of MH is 6.8.3, although a beta of
  320.   6.8.4 is available.
  321.  
  322.   This version includes MIME, a multi-media MH package that implements
  323.   the new IETF work on Multi-media 822 (MIME).  This allows you to
  324.   include things like audio, graphics, and the like, in your mail
  325.   messages.  --Marshall Rose <mrose at dbc.mtview.ca.us>
  326.  
  327.   MH now works with Kerberos as well.
  328.  
  329.   In addition, a new program called mhparam extracts arguments from
  330.   .mh_profile which is useful in shell scripts.
  331.  
  332.   Please see the file CHANGES in the distribution for more details. 
  333.  
  334.   Due to the languishing state of MH, Richard Coleman
  335.   <coleman at math.gatech.edu> has created another version of MH called
  336.   nmh (currently version 1.0.4). He uses GNU autoconf to ease
  337.   installation considerably and has fixed several bugs and
  338.   inconsistencies. See http://www.mhost.com/nmh/ and
  339.   http://nmh.sourceforge.net/.
  340.  
  341. ------------------------------
  342.   
  343. Subject: 01.03 Where can I get MH?
  344. From: Bill Wohler <wohler at newt.com>
  345. Date: Sun, 23 Nov 1997 13:07:47 -0800
  346.  
  347.   MH comes standard with:
  348.   
  349.     Berkeley Software Design BSD/386  . . . . MH 6.8.3
  350.     Control Data Corp. CDC4680-MP . . . . . . EMH 1.4.2 (modified MH)
  351.     Debian GNU/Linux 1.1  . . . . . . . . . . MH 6.8.4
  352.     DEC Ultrix 3.1  . . . . . . . . . . . . . MH 6.5
  353.     DEC Ultrix 4.2A.4 . . . . . . . . . . . . MH 6.7.1
  354.     DEC OSF/1 . . . . . . . . . . . . . . . . MH 6.7
  355.     Evans and Sutherland ES/OS 2.3  . . . . . MH 6.6
  356.     FreeBSD . . . . . . . . . . . . . . . . . MH 6.8.4
  357.     IBM PS/2 AIX 1.3  . . . . . . . . . . . . MH 6.4
  358.     IBM RISC System/6000 AIX 3.x and 4.x  . . MH 6.6
  359.     MIPS RISC/OS 4.52 . . . . . . . . . . . . MH 6.6
  360.     Red Hat Linux (3.0.3, 4.0 and 4.1)  . . . MH 6.8.3
  361.     SGI Irix 6.2 Freeware 2.0 CDROM . . . . . MH 6.8.3
  362.     Sony NEWS-OS 4.3  . . . . . . . . . . . . MH 6.7.2
  363.     Tektronix UTek  . . . . . . . . . . . . . MH (Version Unknown)
  364.     Table maintained by: "James R. Hamilton" <jrh at interlog.com>
  365.  
  366.   If you should need the Internet address, use nslookup or dig if you
  367.   have them, or send mail to <dns at grasp.insa-lyon.fr> with "help" for
  368.   a Subject.
  369.  
  370.   via anonymous ftp:
  371.     ftp://ftp.mhost.com/pub/nmh/nmh.tar.gz                667kB
  372.     ftp://ftp.ics.uci.edu/pub/mh/mh-6.8.tar.Z                2MB
  373.     ftp://ftp.uu.net/networking/mail/mh/mh-6.8.tar.Z            2MB
  374.     ftp://ftp.efd.lth.se/pub/mail/mh-6.8.3.tar.gz            1.3MB
  375.     ftp://ftp.ics.uci.edu/pub/mh/updates/MH.6.8.4.Z            46kB
  376.  
  377.   via mail:
  378.     Send a note to either <mail-server at NL.net> or
  379.     <archive-server at germany.eu.net> with a body containing the
  380.     following:
  381.  
  382.       send mail/mh/mh-6.8.tar.Z
  383.  
  384.     UK users may be able to use <ftpmail at doc.ic.ac.uk>.  Send a
  385.     note whose body contains "help" to this address.
  386.  
  387.     Send a note to <ftpmail at ftpmail.ramona.vix.com> whose body
  388.     contains "help" on a line by itself get information on getting ftp
  389.     sources by mail.
  390.  
  391. ------------------------------
  392.   
  393. Subject: 01.04 What references exist for MH?
  394. From: Bill Wohler <wohler at newt.com>
  395. Date: Tue, 9 Feb 1999 22:51:40 -0800
  396.  
  397.   The Web:
  398.     http://www.ics.uci.edu/~mh/
  399.     http://www.mhost.com/nmh/
  400.     http://nmh.sourceforge.net/
  401.     http://mh-e.sourceforge.net/
  402.  
  403.   Books:
  404.     MH & xmh: E-mail for Users & Programmers.  Third edition. Jerry
  405.     Peek, with Bill Wohler and Brent Welch.
  406.     ISBN 1-56592-093-7.  738 pages.
  407.     O'Reilly & Associates, Inc.
  408.     Out of print as of August, 1996.
  409.  
  410.     References to "the MH book" in this document refer to the third
  411.     edition of this book (section numbers for the second edition
  412.     appear in parentheses).  Links to the online edition are to the
  413.     updated third edition at http://www.ics.uci.edu/~mh/book/.
  414.  
  415.     This book is also available online in the following locations:
  416.     http://www.ics.uci.edu/~mh/book/ (western USA, Web)
  417.     http://www.tac.nyc.ny.us/mirrors/mh-book/ (eastern USA, Web)
  418.     http://www.fan.net.au/mirrors/freebooks/mh/ (Australia, Web)
  419.     http://www.huygens.org/~eijk/mh_book/ (the Netherlands, Web)
  420.     http://www.funet.fi/index/MH/book/ (Finland, Web)
  421.     ftp://ftp.ics.uci.edu/pub/mh/book/index.htm (western USA, FTP)
  422.     ftp://ftp.funet.fi/index/MH/book/index.htm (Finland, FTP)
  423.  
  424.     Examples from this book are in:
  425.     ftp://ftp.uu.net/published/oreilly/nutshell/MHxmh/MHxmh3.tar.Z    114k
  426.     ftp://ftp.ics.uci.edu/pub/mh/book/download/MHxmh3.tar.Z  (updated)  115k
  427.  
  428.     There is another book that contains a number of examples of
  429.     advanced mail handing using MH as the example message handler.
  430.     It's also quite a good reference on email in general.  
  431.  
  432.     The Internet Message.  Marshall T. Rose
  433.     ISBN 0-13-092941-7.  396 pages.
  434.     P T R Prentice Hall
  435.  
  436.   Papers:
  437.     MHN Tutorial by Jerry Sweet
  438.     ftp://ftp.ics.uci.edu/pub/mh/contrib/multimedia/mhn-tutorial.ps.Z    141k
  439.     ftp://ftp.ics.uci.edu/pub/mh/contrib/multimedia/mhn-tutorial.tex.Z    48k
  440.  
  441.   Usenet:
  442.     comp.mail.mh (gatewayed to MH-users)
  443.  
  444.   Mailing lists:
  445.     General questions/discussion: <MH-users at ics.uci.edu>
  446.     (gatewayed to comp.mail.mh).
  447.     MH developers and maintainers: <MH-workers at ics.uci.edu>.
  448.     Please use <MH-users-request at ics.uci.edu> and
  449.     <MH-workers-request at ics.uci.edu> to request an addition or
  450.     deletion.
  451.  
  452.     The mailing list for nmh is <nmh-workers at mhost.com>.
  453.     Please use <nmh-workers-request at mhost.com> for
  454.     subscription.
  455.  
  456.   MH-users archives:
  457.     The files are in packf(1) format, compressed with compress(1).  To
  458.     get them, use anonymous ftp and set "binary" transfer mode.
  459.  
  460.       current archive, uncompressed:
  461.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.mbox
  462.  
  463.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.95.Z        1724k
  464.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.95.scan.Z        113k
  465.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.94.Z        1669k
  466.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.94.scan.Z        57k
  467.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.93.Z        1507k
  468.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.93.scan.Z        51k
  469.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.92.Z        1251k
  470.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.92.scan.Z        43k
  471.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.91.Z        858k
  472.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.91.scan.Z        36k
  473.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.90.Z        393k
  474.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.90.scan.Z        21k
  475.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.89.Z        89k
  476.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.89.scan.Z        5k
  477.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.88.Z        178k
  478.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.88.scan.Z        11k
  479.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.87.Z        54k
  480.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.87.scan.Z        3k
  481.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.86.Z        8k
  482.       ftp://ftp.ics.uci.edu/pub/mh/mh-users/mh-users.86.scan.Z        771
  483.  
  484.     There are directions in ftp://ftp.ics.uci.edu/pub/mh/mh-users/README.
  485.     Basically, you can use either "msh" or the individual commands
  486.     "inc -file" to get the messages into a folder, and then "scan",
  487.     "pick", "show", and so on (or your favorite commands in xmh, mh-e,
  488.     etc.).  --Jerry Peek <jpeek at jpeek.com>
  489.  
  490.     Achim Bohnet <ach at rosat.mpe-garching.mpg.de> has created an
  491.     excellent indexed version of the archive, plus some other archives
  492.     besides.
  493.  
  494.       http://www.rosat.mpe-garching.mpg.de/mailing-lists/mh-users/
  495.       http://www.rosat.mpe-garching.mpg.de/mailing-lists/exmh/
  496.       http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/
  497.       http://www.rosat.mpe-garching.mpg.de/mailing-lists/mhonarc/
  498.  
  499.   This document:
  500.     http://www.faqs.org/faqs/mail/mh-faq/part1/preamble.html
  501.     http://www.cs.ruu.nl/wais/html/na-dir/mail/mh-faq/part1.html
  502.  
  503.   mh-e documentation:
  504.     GNU Emacs 19.29 comes with a version of mh-e that now includes
  505.     online (Texinfo) documentation.  Try "C-h i m mh-e RET".  It is
  506.     also available online at http://www.ics.uci.edu/~mh/book/mh-e/.
  507.     See also "What other MH software is available?" to see where you
  508.     can get the latest version of mh-e which includes the
  509.     documentation sources.
  510.  
  511.   exmh:
  512.     The FAQ is available at http://www.beedub.com/exmh/exmh-faq.html.
  513.     The online exmh sections from the MH book can be found at
  514.  
  515.       http://www.ics.uci.edu/~mh/book/exmh/tocs/jump.htm.
  516.  
  517.   Signature and Finger FAQ:
  518.     http://www.faqs.org/faqs/usenet/signature-faq/
  519.  
  520. ------------------------------
  521.   
  522. Subject: 01.05 What other MH software is available?
  523. From: Stephen Gildea <gildea at stop.mail-abuse.org>, Bill Wohler <wohler at newt.com>
  524. Date: Sat, 3 Mar 2001 13:39:01 -0800
  525.  
  526.   Mh-e is the GNU Emacs front end for MH. It offers all the
  527.   functionality of MH, the visual orientation and simplicity of use of
  528.   xmh, and full integration with Emacs, including thorough
  529.   configurability. The command set is similar to that of rmail (the
  530.   Emacs front end for BSD mail) and BSD mail itself. online help is
  531.   available.
  532.  
  533.   Mh-e allows one to read and process mail very quickly: commands are
  534.   single characters and completion and defaults are available for file
  535.   and folder names. During a reply, the original message is displayed
  536.   simultaneously in another window for easy reference where a mh-e
  537.   command can quickly incorporate and format this text into your
  538.   reply.
  539.  
  540.   With mh-e you compose outgoing messages in Emacs. This is a big plus
  541.   for Emacs users, but it has been known for non-Emacs users to be
  542.   able use mh-e after only learning the most basic cursor motion
  543.   commands. Mh-e is easily configured via the Emacs edit-options menu,
  544.   and can be configured to fit the needs of even the most demanding
  545.   user.
  546.  
  547.   The GNU Emacs distribution includes mh-e.
  548.  
  549.   mh-e is maintained at SourceForge:
  550.  
  551.     http://mh-e.sourceforge.net/
  552.  
  553. From: Brent Welch <welch at acm.org>
  554. Date: Tue, 20 Mar 2001 22:42:15 -0800
  555.  
  556.   EXMH is a user interface for the MH mail system written in TCL/TK.
  557.  
  558.   Exmh has MIME support, color feedback in the scan listing, a folder
  559.   display with one label per folder, clever scan caching, facesaver
  560.   bitmap display; background inc, various inc styles, searching over
  561.   folder listing and message body, a dialog-box interface to MH pick,
  562.   a simple built-in emacs-like editor, interfaces to other editors,
  563.   user preferences, user hacking support. For more info or to obtain
  564.   exmh, see:
  565.  
  566.     http://exmh.sourceforge.net/
  567.  
  568. From: "Eric D. Friedman" <friedman at hydra.acs.uci.edu>
  569. Date: Tue, 9 Feb 1999 22:52:44 -0800
  570.  
  571.   Mhtake is a perl script that lets you add people to your mail
  572.   aliases file by typing mhtake [message #].
  573.  
  574.     http://orion.oac.uci.edu/~friedman/mhtake.txt
  575.  
  576. From: Steinar Bang <sb at metis.no>
  577. Date: Fri, 26 Jan 1996 13:51:08 +0100
  578.  
  579.   Mew (an Emacs interface to MH that has MIME and PGP capabilities) is
  580.   found at:
  581.  
  582.     ftp://ftp.aist-nara.ac.jp/pub/elisp/Mew/mew-current.tar.gz
  583.  
  584. From: James Perkins <jamesp at sp-eug.com> 
  585. Date: Fri, 1 Jan 1993 00:00:00 -0800
  586.  
  587.   Vmh is designed for people using the bulletin-board features of MH,
  588.   where mail is stored in packed (single-file) folders. As a result,
  589.   use of this program cannot be mixed with the use of normal MH
  590.   commands. Vmh is a part of the official MH distribution.
  591.  
  592. From: James Perkins <jamesp at sp-eug.com>
  593. Date: Fri, 1 Jan 1993 00:00:00 -0800
  594.  
  595.   Xmh is a X11 mouse-based MH browsing tool. It is very powerful and
  596.   feature-filled and thus comes with a moderate learning curve. Its
  597.   dependence on the X11 environment makes it very reconfigurable, but
  598.   only by people well-versed in X applications programming. Its
  599.   message reply built-in-editor interface is not always popular among
  600.   those used to having MH bring up the editor of their choice.
  601.  
  602. Date: Fri, 1 Jan 1993 00:00:00 -0800
  603.  
  604.   xmh is part of the standard X Window System distribution from the X
  605.   Consortium. Ultrix also ships dxmail which is similar.
  606.  
  607.     ftp://cs.utk.edu/pub/xmh.shar.Z                    162k
  608.  
  609. From: Harald Tveit Alvestrand <hta at boheme.er.sintef.no>
  610. Date: Fri, 1 Jan 1993 00:00:00 -0800
  611.  
  612.   Here's a version of xmh that includes MIME.
  613.  
  614.     ftp://aun.uninett.no/pub/mail/mixmh/mixmh-0.3.tar.Z            232k
  615.  
  616. From: Nathaniel Borenstein <nsb at thumper.bellcore.com>
  617. Date: Sun, 26 Nov 1995 19:04:51 -0800
  618.  
  619.   Metamail is a package that can be used to convert virtually ANY
  620.   mail-reading program on Unix into a multi-media mail-reading
  621.   program. It is an extremely generic implementation of MIME
  622.   (Multipurpose Internet Mail Extensions), the proposed standard for
  623.   multi-media mail formats on the Internet. The implementation is
  624.   extremely flexible and extensible, using a "mailcap" file mechanism
  625.   for adding support for new data formats when sent through the mail.
  626.   At a heterogeneous site where many mail readers are in use, the
  627.   mailcap mechanism can be used to extend them all to support new
  628.   types of multi-media mail by a single addition to a mailcap file.
  629.  
  630.   The metamail distribution comes complete with a small patch for each
  631.   of over a dozen popular mail reading programs, including Berkeley
  632.   mail, mh, Elm, Xmh, Xmail, Mailtool, Emacs Rmail, Emacs VM, Andrew,
  633.   and others. Note that the MH patches are now integrated into MH 6.8.
  634.  
  635.     ftp://ftp.bellcore.com/pub/nsb/mm2.7.tar.Z
  636.  
  637. From: Tom Christiansen <tchrist at perl.com>
  638. Date: Tue, 9 Feb 1999 22:55:24 -0800
  639.  
  640.   Plum is a highly configurable and extensible screen-oriented
  641.   front-end for processing MH mail on ASCII terminals. Unlike mh-e,
  642.   the extension language used in plum is perl, not LISP. Plum offers
  643.   many of the advantages of xmh, but lacks several of xmh's
  644.   disadvantages. The look&feel derives more from vi than from emacs.
  645.   Key bindings and functions may be changed on the fly to suit the
  646.   user's preference. It offers filename and word completion on folder,
  647.   variables, and command names.
  648.  
  649.   Until it is included in the standard distribution (under
  650.   miscellany), you can fiqnd a copy on:
  651.  
  652.     http://www.cpan.org/authors/Tom_Christiansen/scripts/plum.gz    29k
  653.  
  654.   or mail requests to Tom
  655.  
  656. From: Jerry Sweet <jsweet at irvine.com>
  657. Date: Tue, 1 Nov 1994 00:00:00 -0800
  658.  
  659.   Mhunify is a set of perl scripts and templates that provides
  660.   shell-level MH functionality with USENET news. Since MH supports
  661.   MIME, MIME-format news articles just work. I've found that being
  662.   able to handle news in the same way that I handle email is very
  663.   useful, although there are some tradeoffs.
  664.  
  665.   Mhunify also treats MH folders just like news groups. If you
  666.   subscribe to several mailing lists, and your email is automatically
  667.   delivered to separate folders, say, via procmail or via MMDF's
  668.   .maildelivery, the mhunify package lets you progress automatically
  669.   through your folders just as you would news groups.
  670.  
  671.     ftp://ftp.ics.uci.edu/pub/mh/contrib/multimedia/mhunify.shar.gz
  672.  
  673. From: Dale Carstensen <dlc at c3file.c3.lanl.gov>
  674. Date: Tue, 1 Nov 1994 00:00:00 -0800
  675.  
  676.   olmh is a demo for OLIT (Open Look Interface Toolkit, the Open Look
  677.   wrapper to Xt) in Sun's Open Windows 3 that does handle 3rd and
  678.   subsequent levels of nesting of folders.
  679.  
  680.   Obtain the Open Windows 3 distribution CD/ROM from Sun (SPARC only).
  681.   To do this, call 1-800-USA-4SUN and send tone "2" for telemarketing
  682.   after it answers. The 4.1.2 CD/ROM may also have Open Windows 3. The
  683.   list price for the 4.1.2 CD/ROM is $200.
  684.  
  685. From: James Perkins <jamesp at sp-eug.com>
  686. Date: Sun, 1 May 1994 00:00:00 -0800
  687.  
  688.   Vmail is a curses-based, vi-like message browser which calls on MH
  689.   programs to manipulate mail. It can be used on almost any terminal.
  690.   It organizes mail folders into index pages, from which a message can
  691.   be selected to be shown, replied-to, forwarded, refiled, deleted,
  692.   and so on. The vi-like interface and command keystrokes are
  693.   comfortable to less-experienced Unix users, and it is a small,
  694.   compact program, unlike the mh-e Emacs package.
  695.  
  696.   This version of vmail has been bugfixed and enhanced from the
  697.   original vmail published on the net in 1987 by J. Zobel.
  698.  
  699.     ftp://ftp.uu.net/comp.sources.unix/volume12/vmail/part0*.Z        46k
  700.     ftp://ftp.ucs.ubc.ca/pub/mh/vmail.[1-3]of3.Z            58k
  701.  
  702.   Or mail requests to James.
  703.  
  704. From: James Perkins <jamesp at sp-eug.com>
  705. Date: Sun, 1 May 1994 00:00:00 -0800
  706.  
  707.   vmailtool may be for you if you have a Sun workstation. It is a
  708.   button gadget panel for the above-mentioned vmail program. It brings
  709.   vmail into the windows era where people no longer need to memorize
  710.   specific command keystrokes. It also provides a mail icon with the
  711.   flag that pops up when new mail arrives. Again, this is a compact,
  712.   simple tool, unlike the powerful xmh program. Still, it's a welcome
  713.   alternative for many people who are running SunView or OpenWindows.
  714.  
  715.     ftp://ftp.ucs.ubc.ca/pub/mh/vmailtool.Z                18k
  716.  
  717.   or mail requests to James.
  718.  
  719.   MMH, My Mail Handler, is a Motif interface for reading and sending
  720.   mail. It uses the MH commands to actually handle sending a receiving
  721.   messages. It does not support all the capabilities of MH, but offers
  722.   a large enough subset to handle the majority of users. Its intended
  723.   user is someone between "bumbling email novice" and "sophisticated
  724.   user". Hooks are provided to allow the user to customize and add new
  725.   commands.
  726.  
  727.     ftp://ftp.eos.ncsu.edu/pub/bill/bill.tar.Z                120k
  728.  
  729. From: Andrew Waugh <ajw at mel.dit.csiro.au>
  730. Date: Fri, 1 Jan 1993 00:00:00 -0800
  731.  
  732.   X.500 lookups: If a name is enclosed in square brackets, when
  733.   entering a destination address:
  734.  
  735.     To: [Greg Wickham,CSIRO]
  736.  
  737.   a search will be made in the X.500 Directory for the individual's
  738.   entry. If an address exists then it will be extracted and placed
  739.   into the headers. Mail requests for the software to the author.
  740.  
  741. From: Barbara Dyker <dyker at teal.csn.org>
  742. Date: Fri, 1 Jan 1993 00:00:00 -0800
  743.  
  744.   QuemeMH is an email based service request and tracking system
  745.   based on the Rand Mail Handler.
  746.  
  747.     ftp://ftp.cs.colorado.edu/pub/cs/sysadmin/utilities/queuemh.tar.Z   98k
  748.  
  749. From: <info at rootgroup.com>
  750. Date: Mon, 1 Mar 1993 00:00:00 -0800
  751.  
  752.   Qmh is an MH-based group mail management tool. Written entirely in
  753.   perl, Qmh combines the best aspects of MH with group mail heuristics
  754.   and delivers a sensible package for all levels of Unix users. A
  755.   limitless number of individual queues and associated groups of
  756.   permitted users can be established.
  757.  
  758.   Specific functionality includes the following modes of operation;
  759.   checking header dates and sending reminder/deadline mail, editing
  760.   existing messages, help screens, creating new messages from scratch
  761.   or exiting messages, resolving messages, scanning queue folders, and
  762.   annotating with status both by editing and sending mail.
  763.  
  764.   Qmh is a single generic program in and of itself from which all
  765.   modes of operation are invoked. Additionally, each separate queue
  766.   may be accessed via a link to the single program. All system
  767.   configuration is maintained in a single file that is read upon each
  768.   invocation of Qmh. Formatting and template files are provided in the
  769.   system library, although individual users can override the defaults
  770.   simply by creating equivalent files in their own MH mail directory.
  771.  
  772.   Qmh provides a powerful database-like functionality by allowing
  773.   limitless per-queue X-Qmh-<$value> headers to be included in
  774.   messages. These "fields" then form the context of the queue messages
  775.   and provide a user-defined, but yet structured environment for
  776.   queries, reporting, and random information.
  777.  
  778.   Qmh is designed to provide a complete solution for SA groups, help
  779.   desks, support organizations, or wherever two or more individuals
  780.   are trying to manage multiple mail requests.
  781.  
  782.   Qmh is also compatible with versions of xmh that provide user-level
  783.   command buttons. Provided in the Qmh package is a ~/.Xdefaults
  784.   template file that's setup to harness the power of Qmh.
  785.  
  786. From: Jerry Peek <jpeek at jpeek.com>, Shannon Yeh <yeh at netix.com>
  787. Date: Sun, 11 Mar 2001 00:23:21 -0800
  788.  
  789.   MacMH and PC/MH:
  790.     These were available only for non-commercial degree-granting
  791.     institutions from:
  792.  
  793.       Networking & Communication Systems
  794.       115 Pine Hall
  795.       Stanford University
  796.       Stanford, CA 94305-4122
  797.       Phone: +1 415-723-3909
  798.  
  799.     See also:
  800.       ftp://netix.com/pub/pc-mh-info/*
  801.  
  802.     For more PC/MH info, contact:
  803.  
  804.       Netix Communications, Inc.
  805.       15375 Barranca Parkway
  806.       Building G, Suite 107
  807.       Irvine, CA 92718
  808.       Phone: +1 714-727-9532
  809.       FAX:   +1 714-727-3922
  810.       Internet: info at netix.com
  811.  
  812.     In addition, you might try Wollongong, to see if they have something you
  813.     can get.
  814.  
  815.     [This information appears to be out of date.  Please send me
  816.     pointers to valid information.  Potential sites include
  817.     jessica.stanford.edu.]
  818.  
  819.     Two other potential methods to run MH under Windows: Run Unix
  820.     under Windows with VMware (http://www.vmware.com/) or try to
  821.     compile nmh with the Cygwin tools (http://www.cygwin.com/).
  822.  
  823. ------------------------------
  824.   
  825. Subject: 01.06 How can I print a MH manual?
  826. From: Bill Wohler <wohler at newt.com>, Jos Vos <jos at bull.nl>
  827. Date: Mon, 9 Sep 1996 01:21:49 -0700
  828.  
  829.   First, check out the documents available on http://www.ics.uci.edu/~mh/.
  830.  
  831.   To order a copy by mail, see the section on how to get MH by mail
  832.   (see "Where can I get MH?" and "What references exist for MH?").
  833.  
  834.   To print your own copy, first obtain the MH sources (see "Where can
  835.   I get MH?") if you don't already have it.  Go into the "doc"
  836.   directory and run "make guide" to create the administrators guide
  837.   and "make manual" to create a user's manual which includes tutorials
  838.   and man pages.  If the doc directory is empty or is missing the
  839.   Makefile, you'll have to run "mhconfig MH" in the conf directory so
  840.   that the documentation with correct local information is created.
  841.  
  842.   For properly formatting the documentation (at least the manual
  843.   pages) you might even have to install MH, because a reference to a
  844.   tmac.h file in the MH lib directory is made in the manual pages.
  845.  
  846.   You can also ftp the ASCII or postscript versions:
  847.  
  848.     ftp://ftp.ics.uci.edu/pub/mh/doc/tutorial.ps.Z            65k
  849.     ftp://ftp.ics.uci.edu/pub/mh/doc/ADMIN.ps.Z                56k
  850.     ftp://ftp.ics.uci.edu/pub/mh/doc/MH.ps.Z (man pages)        261k
  851.     ftp://ftp.uu.net/networking/mail/mh/doc/tutorial.ps.Z
  852.     ftp://ftp.uu.net/networking/mail/mh/doc/ADMIN.ps.Z
  853.     ftp://ftp.uu.net/networking/mail/mh/doc/MH.ps.Z (man pages)
  854.  
  855.   Or, you can send a note to <mail-server at NL.net> with a body
  856.   containing the following:
  857.  
  858.     send /mail/mh/papers-ps/tutorial.ps.Z
  859.  
  860. ------------------------------
  861.   
  862. Subject: 01.07 How should I report bugs?
  863. From: Bill Wohler <wohler at newt.com>
  864. Date: Fri, 1 Mar 1991 13:03:15 -0800
  865.  
  866.   Mail them to <Bug-MH at ics.uci.edu> and be sure to include the
  867.   output of the -help option as well as what hardware and operating
  868.   system you are using.
  869.  
  870.   Bugs to nmh should be reported to <nmh-bugs at mhost.com>.
  871.  
  872.   Bugs in mh-e should be reported at:
  873.  
  874.     http://sourceforge.net/tracker/?atid=113357&group_id=13357&func=browse
  875.  
  876. ------------------------------
  877.   
  878. Subject: 01.08 How can I convert from my mailer to MH?
  879. From: Mike Sutton <mws115 at llcoolj.dayton.saic.com>
  880. Date: 7 Jul 1995 10:03:50 GMT
  881.  
  882.   The unrmail function will convert rmail format to mbox format.
  883.  
  884. From: Jerry Peek <jpeek at jpeek.com>
  885. Date: Fri, 1 Mar 1991 13:03:15 -0800
  886.  
  887.   If you use one of a mail agent like 'mail', 'mailx', 'elm' or
  888.   'mush', converting to MH is easy.  When you run the 'inc' command,
  889.   it reads all new messages from the system mailbox into your 'inbox'
  890.   folder.  Those mail agents also have separate files or "folders"
  891.   that hold messages in the same format as the system mailbox.  You
  892.   can read them with the 'inc -file' command.  For example, to read
  893.   the messages from your 'mbox' mail file into your MH 'inbox' folder,
  894.   you'd type:
  895.  
  896.     % cd
  897.     % cp mbox mbox.backup
  898.     % inc -file mbox
  899.  
  900.   If you see the usual "Incorporating new mail into inbox..." message
  901.   and a scan listing, the messages probably were converted.  Read some
  902.   or all of them (with the 'show' command) and be sure.  The 'inc'
  903.   won't remove your mbox unless you use '-truncate'.
  904.  
  905. From: "Jason R. Mastaler" <jason at Mastaler.COM>
  906. Date: Mon, 1 May 1995 00:00:00 -0800
  907.  
  908.   You can also specify an alternate folder to inc.  Here's how you
  909.   can convert all your folders en masse:
  910.  
  911.     for arg in `cat flist`; do
  912.     echo "converting $arg"
  913.     inc +"$arg" -file "$arg" -silent
  914.     done
  915.  
  916.   Section D.4 of the MH book's second edition lists two scripts to
  917.   convert mail files to MH folders: babyl2mh to convert from rmail's
  918.   BABYL format; vmsmail2mh to convert from VMS's mail (see "What
  919.   references exist for MH") to see where the book's examples can be
  920.   ftped from).  These scripts aren't in the third edition but are in
  921.   its archive file.
  922.  
  923. From: Vivek Khera <khera at cs.duke.edu>
  924. Date: Fri, 1 Jan 1993 00:00:00 -0800
  925.  
  926.   I rewrote the above script in Perl since the original script doesn't
  927.   work for some people (see "babyl2mh.pl" below).
  928.  
  929. From: Juergen Nickelsen <nickel at cs.tu-berlin.de>
  930. Date: Fri, 1 Jan 1993 00:00:00 -0800
  931.  
  932.   You can remove the second to last second line ("> $input"), so
  933.   that the script doesn't zero out your RMAIL file.
  934.  
  935.   Another alternative is to replace this line with "inc -file $tmpmbox
  936.   $folder && > $input", so that the RMAIL is only zeroed if inc
  937.   successfully incorporated the mail.  Finally one could add a switch
  938.   -z, so that the RMAIL file is only zeroed if the switch is given.
  939.   (See "Appendix inco".)
  940.  
  941. Date: Sun, 1 May 1994 00:00:00 -0800
  942.  
  943.   Use the following to convert a BABYL format file to Unix mail
  944.   format.
  945.  
  946.     ftp://inf.informatik.uni-stuttgart.de/pub/gnu/emacs_extras/rmailtovm.el.Z
  947.       6k
  948.  
  949.   See also MH book second edition (Appendix D).
  950.  
  951. ------------------------------
  952.  
  953. Subject: 02.00 ***** Building MH *****
  954. From: Bill Wohler <wohler at newt.com>
  955. Date: Fri, 1 Mar 1991 13:03:15 -0800
  956.  
  957. ------------------------------
  958.  
  959. Subject: 02.01 What machines does MH run on?
  960. From: Bill Goffe <goffe at oswego.edu>
  961. Date: 25 May 1999 18:13:55 GMT
  962.  
  963.   If you have Windows, consider looking at VMware
  964.  
  965.     http://www.vmware.com/
  966.   
  967.   which provides a virtual machine where you can run Unix and
  968.   therefore MH under Windows.
  969.  
  970. From: Ted Nolan <ted at ags.ga.erg.sri.com>
  971. Date: 24 May 99 17:20:27 GMT
  972.  
  973.   The latest Cygnus Cygwin, GNU tools that run under Windows,
  974.  
  975.     http://www.cygwin.com/
  976.  
  977.   seems to work pretty well and may well be able to build nmh.
  978.  
  979. From: Bill Wohler <wohler at newt.com>
  980. Date: Sun, 8 Sep 1996 16:02:39 -0700
  981.  
  982.   MH isn't just for Unix any more.  Versions are reported to run on
  983.   OS/2 also (see "How can I build MH on OS/2?").
  984.  
  985. From: Jerry Peek <jpeek at jpeek.com>
  986. Date: Fri, 1 Mar 1991 13:03:15 -0800
  987.  
  988.   If you have a computer running Unix, you can probably run MH.
  989.  
  990. ------------------------------
  991.   
  992. Subject: 02.02 How do I build MH?
  993. From: Bill Wohler <wohler at newt.com>
  994. Date: Sun, 8 Sep 1996 15:13:12 -0700
  995.  
  996.   If you're using Linux, you can simply install the nmh or MH package
  997.   which is available in most distributions.
  998.  
  999.   If you want to build nmh, follow the directions in the file named
  1000.   INSTALL. Basically, it's simply "./configure; make; make install."
  1001.  
  1002.   If you have MH on the other hand, if you carefully read the file
  1003.   named READ-ME in the root of the source hierarchy, you should not
  1004.   have any trouble building MH.
  1005.  
  1006.   If you're having troubles building MH, it could be that the problem
  1007.   has already been fixed, but hasn't yet gotten into an official
  1008.   release.  Please see http://www.gw.com/mail/mh/patches/ for more info.
  1009.  
  1010. ------------------------------
  1011.   
  1012. Subject: 02.03 What options should I use?
  1013. From: Bill Wohler <wohler at newt.com>
  1014. Date: Tue, 1 Dec 1992 00:00:00 -0800
  1015.  
  1016.   BERK: Do NOT include the BERK option (in versions 6.7 or later)!
  1017.   BERK breaks the mh-format functions that take apart address lines,
  1018.   for example mbox, from, and friendly.  This would really put a crimp
  1019.   on my replcomps file.
  1020.  
  1021.   LOCKF: if you have NFS, you need to lock your mailbox with lockf()
  1022.   so the lock will be honored by all machines on the local network.
  1023.   If you have the lockf() system call, include LOCKF.
  1024.  
  1025.   JQ Johnson <jqj at duff.uoregon.edu> makes the point that one
  1026.   should use this option carefully since it requires a robust lockf()
  1027.   call. For example, this option caused serious problems on his SunOS
  1028.   4.1.1. He suggested using LOK_BELL instead, and adding "lockstyle:
  1029.   1" to $MHLIB/mts.conf (mtstailor).
  1030.  
  1031.   ATZ: makes your timezones print like "EST" instead of "-0500".  Much
  1032.   prettier.  --Stephen Gildea <gildea at stop.mail-abuse.org>
  1033.  
  1034.   However, Tony Landells <ahl at technix.oz.au> replies: "Yes;
  1035.   very pretty.  How unfortunate that timezone names are so ambiguous,
  1036.   so that EST can be interpreted, at a minimum, as (American) Eastern
  1037.   Standard Time, (Australian) Eastern Standard Time, or (Australian)
  1038.   Eastern Summer Time (and yes, I think it's dumb having the same
  1039.   acronym for both normal and Summer time, but that's a different
  1040.   problem).  While the numeric timezones may not look as nice, they
  1041.   are, at least, reasonably unambiguous.  I would urge anyone who ever
  1042.   intends/hopes/expects to use email outside the U.S. to NOT use ATZ
  1043.   (sorry Stephen)."
  1044.  
  1045.   At any rate, the conf/examples directory has been updated and
  1046.   contains many examples show you which options are required on your
  1047.   platform and which are optional (in the upcoming version MH 6.8).  At
  1048.   any rate, it is recommended that you examine the options in the
  1049.   example configuration files, and read about them in READ-ME.
  1050.  
  1051.   RPATHS: a side-effect is that slocal writes messages to your system
  1052.   maildrop without the MMDF C-A's that separate messages, so your BSD
  1053.   tools like from work.
  1054.  
  1055. ------------------------------
  1056.   
  1057. Subject: 02.04 What do I need to do to use POP?
  1058. From: Bill Wohler <wohler at newt.com>
  1059. Date: Sun, 8 Sep 1996 23:31:01 -0700
  1060.  
  1061.   MH6.7 (and earlier versions too) include a server for version 3 of POP.
  1062.  
  1063. From: Morgan Fletcher <morgan at tupelo.best.com>
  1064. Date: 14 Mar 1996 19:24:23 -0800
  1065.  
  1066.   Ensure that /etc/services contains the following:
  1067.  
  1068.       pop2    109/tcp        postoffice    # POP version 2
  1069.       pop2    109/udp
  1070.     ->pop    110/tcp        # POP version 3 (MH's inc thinks it's "pop")
  1071.     ->pop    110/udp
  1072.       pop3    110/tcp        # POP version 3
  1073.       pop3    110/udp
  1074.  
  1075.   Also compile with the POP options: POP, DPOP, RPOP, etc.
  1076.  
  1077. From: Richard Coleman <coleman at math.gatech.edu>
  1078. Date: 06 Feb 1997 03:43:17 -0500
  1079.  
  1080.   To get MH to use the pop3 service, add POPSERVICE=pop3 to your MH
  1081.   configuration and recompile:
  1082.  
  1083. ------------------------------
  1084.   
  1085. Subject: 02.05 Does MH support IMAP?
  1086. From: Lyndon Nerenberg <lyndon at MessagingDirect.COM>
  1087. Date: 27 Jul 1999 11:33:39 -0600
  1088.  
  1089.   Run exmh on the laptop, and modify your .mh_profile to inc using
  1090.   APOP. This is how I run mh-e and it works fine. (I did have to
  1091.   modify mh-e a wee bit to allow it to prompt for the password. You
  1092.   would likely have to do something similar with exmh.)
  1093.  
  1094.   As a spare time project I'm adding enough IMAP support to MH (6.8.3)
  1095.   to allow you to 'inc -imap [-imapfolder foo]'. If I ever get this
  1096.   done I'll stick the diffs up somewhere. (It's not a big priority as
  1097.   I can get at my IMAP INBOX using APOP.)
  1098.  
  1099. From: Tim Showalter <tjs at andrew.cmu.edu>, John Prevost <visigoth at cs.cmu.edu>
  1100. Date: Wed, 25 Sep 1996 21:34:56 -0400
  1101.  
  1102.   We are developing fmh and intend to support as much of MH as is
  1103.   feasible.  However, MH and IMAP don't necessarily agree as to what
  1104.   things are going to look like.  MH has static message numbers until
  1105.   you pack a folder; IMAP keeps two numbers on a message, one which is
  1106.   absolutely static and one which is relative to the top of a mailbox.
  1107.   Messages in IMAP are essentially immutable.  IMAP doesn't
  1108.   (currently) allow message annotations.  fmh will keep state with a
  1109.   background daemon instead of writing it to disk, and will probably
  1110.   try and keep as little on disk as possible.
  1111.  
  1112.   fmh doesn't understand MH folders at the moment, and probably won't
  1113.   for a really long time, if ever.  As I said before, we're mostly
  1114.   interested in the IMAP aspects as we're using a networked file
  1115.   system and saving stuff on the local disk just isn't an option.
  1116.  
  1117.   fmh is not MH at a very fundamental level.  It is very unlikely that
  1118.   it will be merged, as we're not quite as interested in creating
  1119.   something that is MH and IMAP as we are in writing a good IMAP
  1120.   client.  Also, the MH code isn't going to take the introduction of
  1121.   IMAP without a near complete rewrite.
  1122.  
  1123.   It is not available yet.  Inquiries are welcome at
  1124.   <tjs+fmh at andrew.cmu.edu>.
  1125.  
  1126. From: Rahul Dhesi <dhesi at rahul.net>
  1127. Date: 23 Sep 1996 08:39:52 GMT
  1128.  
  1129.   What prevents people from doing a telnet to their mail server,
  1130.   logging in, and firing up MH directly?  Site policy?  An operating
  1131.   system that does not let MH compile or run?  Overloaded machine with
  1132.   insufficient processing power for MH?  All these are site-specific
  1133.   problems and the solution lies in solving them locally, not in
  1134.   forcing MH to go over IMAP.
  1135.  
  1136.   IMAP was never designed to emulate a filesytem.  MH was designed to
  1137.   make direct advantage of the filesytem structure.  There is no
  1138.   compatibility between the two.  By the time IMAP is revised enough
  1139.   to support MH you will have reinvented NFS.
  1140.  
  1141.   There *is* scope for redesign here, though.  It would be nice to
  1142.   have a single-user filesystem.  Create a binary telnet session to
  1143.   the filesystem server, log in as yourself, and then over that
  1144.   session run a filesystem protocol.  Normal filesystem protections at
  1145.   the other end will be sufficient for all permissions checking, so
  1146.   the filesystem protocol would need to do no other permissions
  1147.   checking.  The question of whom to export directories to would go
  1148.   away: They are exported to whoever completes a successful login, and
  1149.   accessible to the user if he would be able to access them on the
  1150.   server as his login id.  You could even use challenge-response for
  1151.   the initial login, coupled with ssh-based encryption, so you
  1152.   automatically have a secure filesystem without even trying.
  1153.  
  1154.   IMAP is too restricted in its scope to be easily modifiable to
  1155.   emulate such a filesystem.  It would have to be a redesign from
  1156.   scratch.
  1157.  
  1158. From: John Romine <jromine at ics.uci.edu>
  1159. Date: Sun, 8 Sep 1996 15:45:27 -0700
  1160.  
  1161.   No.  MH only supports retrieving mail using POP3.  POP3 is on the
  1162.   "standards track"--it is now an elective Internet Draft Standard
  1163.   (see RFC 1938 for more details).  At this point, IMAP[23] are
  1164.   "experimental, limited use" protocols; it is unlikely that MH will
  1165.   support them.
  1166.  
  1167. From: Bill Wohler <wohler at newt.com>
  1168. Date: Sun, 8 Sep 1996 15:45:32 -0700
  1169.  
  1170.   Since John posted the message above, IMAP has progressed from an
  1171.   "experiemental, limited use" protocol.  While IMAP is not universal,
  1172.   many vendors now have implementations.
  1173.  
  1174.   I've found several things which might help.  First, a definition
  1175.   lifted from the Pine FAQ:
  1176.  
  1177.   What is IMAP?
  1178.  
  1179.   IMAP stands for "Internet Message Access Protocol".  An IMAP client
  1180.   program on any platform at any location on the Internet can access
  1181.   email folders on an IMAP server.  While the messages appear to be
  1182.   local, they reside on the server until the client explicitly moves
  1183.   or deletes them.  The IMAP protocol is a superset of POP, containing
  1184.   all POP commands plus more.  For a comparison of IMAP and POP, see
  1185.   the paper Comparing Two Approaches to Remote Mailbox Access: IMAP
  1186.   vs. POP (in ftp.cac.washington.edu:/mail/imap.vs.pop).  IMAP is what
  1187.   allows Pine (or any other IMAP client) to get to email on a central
  1188.   campus email server.  There are current IETF working groups revising
  1189.   IMAP and readying it to become an Internet standard. A copy of the
  1190.   latest IMAP draft may be obtained from:
  1191.   
  1192.     ftp://ftp.cac.washington.edu/mail/latest-imap-draft
  1193.  
  1194.   For a list of IMAP clients, see the file imap.software, in the same
  1195.   directory.
  1196.  
  1197. From: David L Miller <dlm at cac.washington.edu>
  1198. Date: Mon, 1 Aug 1994 00:00:00 -0800
  1199.  
  1200.   ipop3d from the UW IMAP toolkit can operate in a couple modes.  As a
  1201.   straight POP3 server, it uses the same C-client library as imapd, so
  1202.   it co-exists comfortably with imapd.  It can also operate as a
  1203.   POP-to-IMAP gateway so that your POP-only clients can access IMAP
  1204.   services.
  1205.  
  1206.     ftp://ftp.cac.washington.edu/mail/imap.tar.Z            1.0M
  1207.  
  1208. From: Mark Crispin <MRC at Panda.COM>
  1209. Date: Mon, 1 Aug 1994 00:00:00 -0800
  1210.  
  1211.   The only answer I can give for [how MH users can use IMAP] is that
  1212.   Pine can read mailboxes in MH format; and that someone might in the
  1213.   future develop a version of MH that can use IMAP.
  1214.  
  1215. ------------------------------
  1216.   
  1217. Subject: 02.06 Why does "mailgroup mail" only affect inc but not slocal?
  1218. From: John Romine <jromine at ics.uci.edu>
  1219. Date: Fri, 1 Jan 1993 00:00:00 -0800
  1220.  
  1221.   If "mailgroup" is set, inc is made set-group-id to this group name.
  1222.   Some SYS5 systems want this to be set to "mail".  Set this if
  1223.   /usr/spool/mail (or /usr/mail) is not world-writable.  These
  1224.   changes were contributed by Peter Marvit, and "inc" is very careful
  1225.   about its use of the set-gid privilege.
  1226.  
  1227.   Note that slocal doesn't know how to deal with this, and will not
  1228.   work under these systems; just making it set-group-id will open a
  1229.   security hole (since it doesn't know when to drop the set-gid
  1230.   privileges).  If you're using "mailgroup", you should remove slocal
  1231.   (and its man page) from your system.
  1232.  
  1233.   Alternatives to slocal include deliver, procmail, and mailagent.
  1234.   (See "What mail filters are available?")
  1235.  
  1236. ------------------------------
  1237.   
  1238. Subject: 02.07 How can I build MH on Solaris 2?
  1239. From: Richard Coleman <coleman at math.gatech.edu>
  1240. Date: Tue, 20 Jan 1998 02:19:58 -0500
  1241.   
  1242.   nmh builds out of the box on Solaris.
  1243.  
  1244. From: Bill Wohler <wohler at newt.com>
  1245. Date: Sun, 8 Sep 1996 15:56:31 -0700
  1246.  
  1247.   See http://www.gw.com/mail/mh/patches/solaris/ for patches you may need.
  1248.  
  1249. From: Neil Rickert <rickert at cs.niu.edu>,
  1250.     Scott K. Hutton <shutton at habanero.ucs.indiana.edu>,
  1251.     Casper H.S. Dik <casper at fwi.uva.nl>
  1252. Date: Sun, 8 Sep 1996 15:57:25 -0700
  1253.  
  1254.   First, don't use the BSD compatible stuff.  Make sure that the Sun
  1255.   or GNU compiler appear before the BSD compiler in your PATH (e.g.,
  1256.   /usr/ccs/bin).
  1257.  
  1258.   Second, don't use GNU make.  Make sure that the Sun make appears
  1259.   before the GNU make in your PATH.
  1260.  
  1261.   Use conf/examples/solaris2.sun.com and fix the paths, if necessary.
  1262.   Optionally change the following to use the GNU compiler, to perform
  1263.   optimization, and to create shared libraries.
  1264.  
  1265.     cc              gcc
  1266.     ccoptions       -O -g -msupersparc
  1267.     slflags         -shared
  1268.  
  1269.   Fix mhn.c with the diff in
  1270.  
  1271.     http://www.gw.com/mail/mh/patches/solaris/si_value_2.3.
  1272.  
  1273.   Optionally incorporate the Content-Length header fix.  (See "How can
  1274.   I get MH to interpret the Content-Length field?")
  1275.  
  1276.   Linking with /usr/ucblib/libucb.so is incompatible with including
  1277.   <dirent.h>.
  1278.  
  1279.   When compiling, you can ignore the following warning:
  1280.  
  1281.     fmtcompile.c", line 238: warning: semantics of "/" change in ANSI C;
  1282.     use explicit cast
  1283.  
  1284.   If you're using AFS, you'll have to replace any occurrence of "ln"
  1285.   with "ln -s" wherever the make dies when it tries to make a link
  1286.   "on a different file system."
  1287.  
  1288.   See also ftp://ftp.fwi.uva.nl/pub/solaris/solaris2.faq.
  1289.  
  1290. Date: Thu, 1 Dec 1994 00:00:00 -0800
  1291.  
  1292.   Unset LD_LIBRARY_PATH.
  1293.  
  1294. From: Gary Strand <strandwg at ncar.ucar.edu>
  1295. Date: Mon, 1 May 1995 00:00:00 -0800
  1296.  
  1297.   To cure slocal's Segmentation Fault problems, I decided to try 'cc'
  1298.   instead of 'gcc' (an alleged no-no under Solaris) and MH built just
  1299.   fine, and it's working perfectly.
  1300.  
  1301. From: "Jason R. Mastaler" <jason at Mastaler.COM>
  1302. Date: Mon, 25 Sep 1995 17:35:13 -0400
  1303.  
  1304.   Don't use "ldoptions -s" with gcc.  It may cause the compile to fail
  1305.   with:
  1306.  
  1307.     gcc: Internal compiler error: program ld got fatal signal 11
  1308.     *** Error code 1
  1309.  
  1310. From: "Jeffrey T. Eaton" <jeaton at galt.com>
  1311. Date: Fri, 04 Apr 1997 15:30:36 GMT
  1312.  
  1313.   Fixed [DBM_PAGFNO_NOT_AVAILABLE error] by getting the latest gdbm
  1314.   package, compiling and installing it and the dbm/ndbm compatability
  1315.   stuff, and moving Sun's broken ndbm.h out of /usr/include.
  1316.  
  1317.   To fix "../sbr/libmh.so: undefined reference to
  1318.   `__builtin_va_arg_incr'", add "option __BUILTIN_VA_ARG_INCR" to your
  1319.   MH configuration.
  1320.  
  1321. ------------------------------
  1322.   
  1323. Subject: 02.08 How can I build MH on Linux?
  1324. From: Richard Coleman <coleman at math.gatech.edu>
  1325. Date: Tue, 20 Jan 1998 02:19:58 -0500
  1326.  
  1327.   nmh should build out of the box for most Linux systems.
  1328.  
  1329. From: Bill Wohler <wohler at newt.com>
  1330. Date: Tue, 9 Feb 1999 23:04:53 -0800
  1331.  
  1332.   The Debian distribution of Linux comes with an MH and nmh packages.  See
  1333.  
  1334.     http://www.debian.org/.
  1335.  
  1336.   See also http://www.gw.com/mail/mh/patches/linux/.
  1337.  
  1338. From: "James A. Robinson" <jimr at simons-rock.edu>
  1339. Date: 17 Apr 96 20:39:02 GMT
  1340.  
  1341.   Somebody on Debian ported it to Linux ELF.  Look on
  1342.   ftp://ftp.debian.org/debian/stable/binary/mail/mh_6.8.4-13.deb for
  1343.   the .deb package of MH (it's a compressed tar file).  The source is
  1344.   in ftp://ftp.debian.org/debian/stable/source/mail/mh_6.8.4-orig.tar.gz
  1345.   and mh_6.8.4-13.diff.gz.
  1346.  
  1347. From: Brian Kirouac <bri at psa.pencom.com>
  1348. Date: 18 Apr 96 14:00:20 GMT
  1349.  
  1350.   If you are running Redhat and have rpm available you can also use
  1351.   ftp://???/pub/redhat-3.0.3/i386/RedHat/RPMS/mh-6.8.3-5.i386.rpm.
  1352.   The source code is in
  1353.   ftp://???/pub/redhat-3.0.3/i386/SRPMS/mh-6.8.3-5.i386.rpm
  1354.  
  1355. From: "Brandon S. Allbery" <bsa at kf8nh.wariat.org>
  1356. Date: Sun, 26 Nov 1995 16:18:50 -0800
  1357.  
  1358.   The current patch is the first one listed below.  The old patch only
  1359.   works with libc-4.4, which is no longer used.  The current patch is
  1360.   split into two pieces, as with the previous patch, but now the
  1361.   divisions are purely functional: the first diff enables MH to
  1362.   compile, the second allows creation of a shared library. [Ed: The
  1363.   paths are up to date, but I think the info in this paragraph is
  1364.   old.]
  1365.  
  1366.   Recent versions of GNU make choke on MH's makefiles.  Unfortunately,
  1367.   the shared library patches depend on "export".  If you have problems
  1368.   building MH, remove the "export" lines from all of the makefiles (if
  1369.   you applied the shared library patches) and try using BSD pmake
  1370.   instead.
  1371.  
  1372.   If you don't want to compile MH, the second file contains
  1373.   pre-compiled ready-to-run binaries which can simply be extracted in
  1374.   the root directory.
  1375.  
  1376.     ftp://sunsite.unc.edu/pub/Linux/system/Mail/readers/mh-6.8.3-diffs.tar.gz
  1377.     ftp://sunsite.unc.edu/pub/Linux/system/Mail/readers/mh-6.8.3-bin.tar.gz
  1378.  
  1379.   The sizes are 650k and 22k respectively.
  1380.  
  1381.   Note that these files are occasionally "cleaned up" by accident so
  1382.   please let me know if they are missing.
  1383.  
  1384. ------------------------------
  1385.   
  1386. Subject: 02.09 How can I build MH on IRIX?
  1387. From: Richard Coleman <coleman at math.gatech.edu>
  1388. Date: Tue, 20 Jan 1998 02:19:58 -0500
  1389.  
  1390.   nmh should build out of the box for Irix.
  1391.  
  1392. From: Bill Wohler <wohler at newt.com>
  1393. Date: Sun, 8 Sep 1996 15:33:22 -0700
  1394.  
  1395.   See http://www.gw.com/mail/mh/patches/sgi/ for patches you may need.
  1396.  
  1397. From: Arne K. Frick <frick at info.uni-karlsruhe.de>
  1398. Date: 06 Jun 1995 18:30:01 GMT
  1399.  
  1400.   There is a file at viz.tamu.edu:/pub/sgi (see FAQ) containing a diff
  1401.   and sample configuration.  If you cannot locate it, I can mail it to
  1402.   you.  Note, however, that I had tremendous difficulties with them
  1403.   under 5.3:
  1404.  
  1405.   1. Be sure to use /bin/make, NOT GNU make.
  1406.   2. patch vomits over the diff.  You can get around this by increasing the
  1407.      "fuzz factor" to 4.
  1408.   3. The Makefile target for the shared library doesn't work.  I had to do it
  1409.      by hand.
  1410.  
  1411.   But I'm stuck compiling mhn.c.
  1412.  
  1413. From: Shankar Unni <shankar at sgi.com>
  1414. Date: 9 Jun 1995 01:53:48 GMT
  1415.  
  1416.   The fix for compiling mhn.c is in
  1417.  
  1418.     http://www.gw.com/mail/mh/patches/solaris/si_value_2.3.
  1419.  
  1420. From: Jack Repenning <jackr at informix.com>
  1421. Date: 25 Jul 1995 02:35:41 GMT
  1422.  
  1423.   (See "IRIX config file") below.
  1424.  
  1425. ------------------------------
  1426.   
  1427. Subject: 02.10 How can I get MH to interpret the Content-Length field?
  1428. From: Casper H.S. Dik <Casper.Dik at Holland.Sun.COM>
  1429. Date: Sun, 8 Sep 1996 15:38:30 -0700
  1430.  
  1431.   Apply http://www.gw.com/mail/mh/patches/solaris/content_length to
  1432.   your MH distribution and add the configuration option
  1433.   "CONTENT_LENGTH".  It also includes the si_ fix in
  1434.  
  1435.     http://www.gw.com/mail/mh/patches/solaris/si_value_2.3
  1436.  
  1437. ------------------------------
  1438.   
  1439. Subject: 02.11 How can I build MH on HP-UX?
  1440. From: Bill Wohler <wohler at newt.com>
  1441. Date: Sun, 8 Sep 1996 15:50:54 -0700
  1442.  
  1443.   If you find that your zotnet/tws directory isn't compiling, upgrade
  1444.   your MH (see "What is the current version/status of MH?") which
  1445.   includes fixes to lexedit.sed.
  1446.  
  1447.   See http://www.gw.com/mail/mh/patches/hp/ for for patches you may need.
  1448.  
  1449. ------------------------------
  1450.   
  1451. Subject: 02.12 Can I prevent adding the local hostname to addresses behind firewalls?
  1452.  
  1453. From: Ted Remillard <tedr at hood.sd.com>
  1454. Date: 24 Jun 1996 08:53:42 -0700
  1455.  
  1456.   You can get MH to stop managing the headers and let the email server
  1457.   to do it. To do this, build MH with the options DUMB and REALLYDUMB.
  1458.   In the $MHLIB/mts.conf (mtstailor) file, set the server option to
  1459.   the IP address of the email server. After this is done, MH sends
  1460.   email directly to the email server and Local email To: and From:
  1461.   fields just have the user's simple email address, e.g., <fred>, and
  1462.   the remote email From: header will contain user@domainname, e.g.,
  1463.   <fred@sd.com>.
  1464.  
  1465.   Don't forget to define the REALLYDUMB option in the file
  1466.   sbr/addrsbr.c described below.
  1467.  
  1468. From: Bret Rothenberg <bretr at endeavour.exar.com>
  1469. Date: Tue, 23 Jan 1996 12:25:24 -0800 (PST)
  1470.  
  1471.   Yes, use the "localname" parameter in "$MHLIB/mts.conf" (mtstailor)
  1472.   to specify the desired hostname.
  1473.  
  1474. From: Ken Hornstein <kenh at cmf.nrl.navy.mil>
  1475. Date: 18 Aug 1995 23:51:48 -0400
  1476.  
  1477.   If you're behind a firewall and sendmail gives you fits because MH
  1478.   adds the node name or site name to each address in the To: and CC:
  1479.   fields, you'll need to modify the MH source.
  1480.  
  1481.   The relevant source has to do with the REALLYDUMB option in
  1482.   sbr/addrsbr.c.  Essentially what you need to do is set it up so
  1483.   REALLYDUMB is turned on (normally, it's turned off if you have MMDF
  1484.   or SMTP turned on).  This will do what you want.  I did this at our
  1485.   site, and it's been working great.  The stuff for REALLYDUMB starts
  1486.   around line 613.
  1487.  
  1488. ------------------------------
  1489.   
  1490. Subject: 02.13 Is there a patch to fix this or that?
  1491. From: Kimmo Suominen <kim at tac.nyc.ny.us>
  1492. Date: Sat, 3 Mar 2001 13:40:35 -0800
  1493.  
  1494.   The MH Patch Archive has been opened at
  1495.  
  1496.     http://www.gw.com/mail/mh/patches/
  1497.     ftp://ftp.gw.com/mail/mh/patches/
  1498.  
  1499.   It is a collection of patches to MH (the RAND MH Message Handling
  1500.   System), a set of electronic mail programs in the public domain.
  1501.   Since the last complete release of MH (version 6.8.3) UNIX systems
  1502.   have evolved making changes in the MH code necessary.  Several new
  1503.   UNIX systems have emerged requiring new configuration templates and
  1504.   examples.  This archive tries to collect all these fixes and
  1505.   enhancements that in the past have been available only through
  1506.   word-of-mouth and occasional reposts to newsgroups or mailing lists.
  1507.  
  1508.   The initial archive layout and the very time consuming collecting
  1509.   and categorizing of patches has been done by Jerry Peek.
  1510.  
  1511.   I will be the primary maintainer of the archive. Even though I will
  1512.   be monitoring several sources for new material (mainly the
  1513.   comp.mail.mh newsgroup but also the mailing lists
  1514.   <mh-workers at ics.uci.edu>, <mh-e-users at lists.sourceforge.net> and
  1515.   <exmh-workers at redhat.com>), I'd like to encourage everyone to submit
  1516.   patches also directly to the archive at <mh-archive at gw.com>.
  1517.  
  1518. ------------------------------
  1519.   
  1520. Subject: 02.14 How can I build MH on OS/2?
  1521. From: Sanjay Aiyagari <sanjay at sandbox.snetnsa.com>
  1522. Date: 21 Nov 1996 19:37:10 GMT
  1523.  
  1524.     ftp://ftp.jaist.ac.jp/pub/os/os2/network/MH/
  1525.  
  1526. ------------------------------
  1527.   
  1528. Subject: 02.15 Do any POP/IMAP servers handle MH format?
  1529. From: "Carl S. Gutekunst" <csg at eng.sun.com>
  1530. Date: 27 May 1997 07:24:34 GMT
  1531.  
  1532.   The University of Washington POP3 and IMAP servers can be backended
  1533.   by a variety of stores, including MH.  This is the basis for
  1534.   Netscape's store, curiously enough. I haven't looked closely at how
  1535.   Mark Crispin implemented support for the new IMAP4 features when
  1536.   using an MH backend; it seems like there is a lot of computation
  1537.   when opening a folder for the first time, writing in the UID fields
  1538.   and such.  But it basically appears to work.
  1539.  
  1540. From: Lyndon Nerenberg <lyndon at MessagingDirect.COM>
  1541. Date: 27 Jul 1999 11:36:25 -0600
  1542.  
  1543.   But [the UW IMAP server] can't delete/expunge from MH folders. (At
  1544.   least I've never been able to get it to work, and I've tried just
  1545.   about everything.) #mh in UW imapd isn't something I'd recommend to
  1546.   any serious MH user.
  1547.  
  1548. From: Mark Crispin <mrc at CAC.Washington.EDU>
  1549. Date: Tue, 27 Jul 1999 14:43:25 -0700
  1550.  
  1551.   > But it can't delete/expunge from MH folders.
  1552.  
  1553.   That's a very old version. delete/expunge has been in imap-4.x for a
  1554.   long while. However, there's no sticky flags.
  1555.  
  1556.   > #mh in UW imapd isn't something I'd recommend to any serious MH user.
  1557.  
  1558.   The converse is also true. The two don't play ball very well.
  1559.  
  1560. ------------------------------
  1561.  
  1562. Subject: 03.00 ***** Scanning & Reading *****
  1563. From: Bill Wohler <wohler at newt.com>
  1564. Date: Fri, 1 Mar 1991 13:03:15 -0800
  1565.  
  1566. ------------------------------
  1567.  
  1568. Subject: 03.01 What do I do if scan shows the wrong date?
  1569. From: Bill Wohler <wohler at newt.com>
  1570. Date: Fri, 1 Jan 1993 00:00:00 -0800
  1571.  
  1572.   Upgrade to MH 6.8 or nmh.
  1573.  
  1574. From: Darryl Okahata <darrylo at sr.hp.com>
  1575. Date: 19 Jan 2000 23:01:10 -0800
  1576.  
  1577.   MH 6.8.3 and nmh 1.0 still have a minor buglet where sortm doesn't
  1578.   always sort messages properly. If a (questionable) mail client sends
  1579.   messages with 2-digit years, like:
  1580.  
  1581.     Date: Sat, 23 Oct 09 22:02:01 EST
  1582.  
  1583.   or sends out buggy dates like (as buggy versions of Elm do):
  1584.  
  1585.     Date: Sat, 23 Oct 100 22:02:01 EST
  1586.  
  1587.   then sortm will not sort these messages properly.
  1588.  
  1589.   I have submitted patches to nmh-workers.
  1590.  
  1591. ------------------------------
  1592.   
  1593. Subject: 03.02 How would one go about reading Usenet with MH?
  1594. From: Bill Wohler <wohler at newt.com>
  1595. Date: Sun, 26 Nov 1995 12:32:09 -0800
  1596.  
  1597.   You can post via mail.  Send your article to
  1598.   <mail2news at news.demon.co.uk> with a legitimate Newsgroups
  1599.   field.
  1600.  
  1601. From: Jerry Peek <jpeek at jpeek.com>
  1602. Date: Tue, 1 Nov 1994 00:00:00 -0800
  1603.  
  1604.   You can save articles in the news readers for later perusal with MH.
  1605.  
  1606.   First, create a symbolic link from your mail directory (e.g., usenet) to
  1607.   your news directory (e.g., "ln -s ~/News ~/Mail/usenet").  You can then
  1608.   treat your news directory as a mail folder.  Thus, to select a news
  1609.   group, use "folder +usenet/comp/mail/mh".
  1610.  
  1611.   To set the default save location correctly in rn, use:
  1612.  
  1613.     rn -M -/
  1614.  
  1615.   or in your nn presentation sequence:
  1616.  
  1617.     news.announce.        +$F/$N
  1618.     comp.mail.mh        +
  1619.     .
  1620.     .
  1621.  
  1622.   If there's news spooled on your machine (that is, not via NNTP) then
  1623.   you can read a newsgroup with commands like:
  1624.  
  1625.     show first +/usr/spool/news/comp/mail/mh
  1626.     next
  1627.     ...
  1628.  
  1629.   You can also use sequences to keep track of what you've read.  MH
  1630.   will automatically set a "cur" sequence in each newsgroup you read
  1631.   that way.  So, to continue reading the newsgroup sometime later,
  1632.   after you've read some other folder, you can do:
  1633.  
  1634.     next +/usr/spool/news/comp/mail/mh
  1635.  
  1636.   and you'll read the next (new) article (if any) in that newsgroup.
  1637.  
  1638.   Note that this can eventually make your private context file pretty
  1639.   huge; if there's a group you don't read often, you can remove its
  1640.   context entries with a command like:
  1641.  
  1642.     rmf +/usr/spool/news/comp/mail/mh
  1643.  
  1644.   Don't try that on a folder full of mail (a folder that isn't
  1645.   read-only), though... in that case, it'll remove all the messages!
  1646.  
  1647.   I haven't looked into posting.  It seems like it shouldn't be hard.
  1648.   You could set up a "sendproc" that would look at outgoing email
  1649.   messages.  If the message had a Newsgroups: header field, your
  1650.   sendproc could call inews(1) instead of post(8).  I haven't seen
  1651.   much in the MH manpages or documentation about sendprocs (though I
  1652.   haven't looked for a couple of years...).  See the "mysend"
  1653.   script in the MH book section 7.1.4 (13.13), or the URL:
  1654.  
  1655.     http://www.ics.uci.edu/~mh/book/mh/senove.htm#ASAtDm
  1656.  
  1657.   A threaded news reader like trn or tin is so much nicer, though,
  1658.   that reading news with MH may not be worth the hassle.
  1659.  
  1660.   See also MH book section 9.9 (8.7), or the URL:
  1661.  
  1662.     http://www.ics.uci.edu/~mh/book/mh/shafol.htm
  1663.  
  1664. From: Stephen Gildea <gildea at stop.mail-abuse.org>
  1665. Date: Fri, 1 Mar 1991 13:03:15 -0800
  1666.  
  1667.   Although news readers are better, if one really wants to use
  1668.   MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this
  1669.   newsgroup.  To enable bbc, you have to specify "bboards" when you
  1670.   build MH.
  1671.  
  1672. From: Kimmo Suominen <kim at tac.nyc.ny.us>
  1673. Date: 15 Aug 1996 18:18:10 GMT
  1674.  
  1675.   Sendmail v8 comes with MAILER(pop) which was written for the MH
  1676.   spop.  Since I use bboards with NNTP, I never looked at the bboards
  1677.   setup.
  1678.  
  1679. Date: Tue, 1 Nov 1994 00:00:00 -0800
  1680.  
  1681.   See mhunify in (see also "What other MH software is
  1682.   available?").
  1683.  
  1684. ------------------------------
  1685.   
  1686. Subject: 03.03 How can I search through multiple folders?
  1687. From: Jerry Peek <jpeek at jpeek.com>
  1688. Date: Mon, 1 Mar 1993 00:00:00 -0800
  1689.  
  1690.   Recurse through the folders (in csh and sh):
  1691.  
  1692.   % foreach f (`folders -f`)        $ for f in `folders -f`
  1693.   ? pick [switches] +$f            > pick [switches] +$f
  1694.   ? end                    > done
  1695.  
  1696.   Or create a folder that contains links to all messages (in csh and sh):
  1697.  
  1698.     % foreach f (`folders -f | grep -v -x ln`)
  1699.     ? refile -src +$f -link all +ln
  1700.     ? end
  1701.  
  1702.     $ for f in `folders -f | grep -v -x ln`
  1703.     > do refile -src +$f -link all +ln
  1704.     > done
  1705.  
  1706.   and in the future, refile messages with "refile +folder +ln".  To
  1707.   find something, use:
  1708.  
  1709.     % pick [switches] +ln
  1710.  
  1711.   See MH book sections 8.2.9 (7.2.9), 8.9.3 (7.8.3), or the URLs:
  1712.  
  1713.     http://www.ics.uci.edu/~mh/book/mh/finpic.htm#SeMTOnFo
  1714.     http://www.ics.uci.edu/~mh/book/mh/usilin.htm#AFoFuoLi
  1715.  
  1716. ------------------------------
  1717.   
  1718. Subject: 03.04 Why don't MH format commands such as %(friendly) work?
  1719. From: Anthony Baxter <anthony at aaii.oz.au>
  1720. Date: Sun, 1 May 1994 00:00:00 -0800
  1721.  
  1722.   The BERK option disables address parsing and therefore functions
  1723.   such as %(friendly).  Recompile MH without the BERK option.
  1724.  
  1725. ------------------------------
  1726.   
  1727. Subject: 03.05 Why doesn't "show" display all of a MIME message?
  1728. From: Jerry Peek <jpeek at jpeek.com>
  1729. Date: Mon, 1 Aug 1994 00:00:00 -0800
  1730.  
  1731.   It's not the fault of the "show" command or of MH in general. It's
  1732.   your system's configuration. Check the $MHLIB/mhn.defaults
  1733.   (mhn_defaults) file; if it doesn't have defaults for all content
  1734.   types, add them. Or, if you can't (or shouldn't) change mhn.defaults
  1735.   (mhn_defaults), you can put default entries in your MH profile file
  1736.   for those content types.
  1737.  
  1738.   Here's the part of the mhshow(1) (mhn(1)) manpage that explains how
  1739.   content types are handled. The example is for mhshow, but if you're
  1740.   using mhn, you'd replace mhshow with mhn:
  1741.  
  1742.     First, mhshow will look for an entry of the form:
  1743.  
  1744.       mhshow-show-<type>/<subtype>
  1745.  
  1746.     to determine the command to use to display the content.  If this
  1747.     isn't found, mhshow will look for an entry of the form:
  1748.  
  1749.       mhshow-show-<type>
  1750.  
  1751.     to determine the display command.  If this isn't found, mhshow has
  1752.     two default values:
  1753.  
  1754.       mhshow-show-text/plain: %pmoreproc '%F'
  1755.       mhshow-show-message/rfc822: %pshow -file '%F'
  1756.  
  1757.     If neither apply, mhshow will check to see if the message has a
  1758.     application/octet-stream content with parameter "type=tar". If so,
  1759.     mhshow will use an appropriate command. If not, mhshow will
  1760.     complain.
  1761.  
  1762.   So, add defaults that cover the types MH doesn't handle right now
  1763.   (or doesn't handle the way you want it to). Your defaults will
  1764.   override corresponding defaults in the $MHLIB/mhn.defaults
  1765.   (mhn_defaults) file. For example, if you don't have an HTML
  1766.   editor/browser on your system, you could tell MH to use the "less"
  1767.   paginator for HTML message parts:
  1768.  
  1769.     mhshow-show-text/x-html: less %F
  1770.  
  1771.   You can put that line in your MH profile.
  1772.  
  1773.   You can even set different defaults for different terminal types
  1774.   (say, your VT100 at home and your X setup at work). Make a file in
  1775.   the same format as mhn.defaults (mhn_defaults); store its pathname
  1776.   in the MHSHOW (MHN) environment variable. Add a test to your shell
  1777.   setup file (.bash_profile, .profile, .login) that tests the value of
  1778.   the TERM variable -- and, if you have an mhshow (mhn) setup file for
  1779.   that terminal type, store its pathname in the MHSHOW (MHN) variable.
  1780.  
  1781.   See also MH book sections 6.2.3, 9.4.4, 9.4.5, or the URLs:
  1782.  
  1783.     http://www.ics.uci.edu/~mh/book/mh/remime.htm#HomhShMe
  1784.     http://www.ics.uci.edu/~mh/book/mh/confmhn.htm#ShComhsh
  1785.     http://www.ics.uci.edu/~mh/book/mh/confmhn.htm#DiOChSmc
  1786.  
  1787. From: Michael K. Neylon <mneylon at engin.umich.edu>
  1788. Date: Tue, 1 Nov 1994 00:00:00 -0800
  1789.  
  1790.   If you are not using the X Window System, you may have to add this
  1791.   line to your MH profile:
  1792.  
  1793.     mhshow-charset-iso-8859-1: /bin/sh -c '%s'            # nmh
  1794.     mhn-charset-iso-8859-1: /bin/sh -c '%s'            # MH
  1795.  
  1796. ------------------------------
  1797.   
  1798. Subject: 03.06 Can I get show not to run "less" so much on MIME messages?
  1799. From: Richard Coleman <coleman at math.gatech.edu>
  1800. Date: Tue, 20 Jan 1998 02:19:58 -0500
  1801.  
  1802.   On nmh, you can do this just by "show -nocheckmime".  This will disable
  1803.   the detection of MIME messages.
  1804.  
  1805. From: Bill Wohler <wohler at newt.com>
  1806. Date: Tue, 1 Nov 1994 00:00:00 -0800
  1807.  
  1808.   If you say, "show all," and one of the messages was a MIME message,
  1809.   your pager will be run several times on each message, rather than
  1810.   once on all the messages as a whole.  If you find this annoying, set
  1811.   the environment variable NOMHNPROC:
  1812.  
  1813.     % setenv NOMHNPROC ""            # csh
  1814.     $ NOMHNPROC=                # sh and bash
  1815.     $ export NOMHNPROC
  1816.  
  1817.   See also MH book sections 6.2.3, 6.2.10, or the URLs:
  1818.  
  1819.     http://www.ics.uci.edu/~mh/book/mh/remime.htm#HomhShMe
  1820.     http://www.ics.uci.edu/~mh/book/mh/remime.htm#Alttomhn
  1821.  
  1822. ------------------------------
  1823.   
  1824. Subject: 03.07 Why do I get "mhn: don't know how to display content"?
  1825. From: Richard Coleman <coleman at math.gatech.edu>
  1826. Date: Tue, 20 Jan 1998 02:19:58 -0500
  1827.  
  1828.   This has already been fixed in nmh.
  1829.  
  1830. From: Keith Moore <moore at cs.utk.edu>
  1831. Date: Sun, 8 Sep 1996 15:49:50 -0700
  1832.  
  1833.   MH 6.8.3 has a bug where it will not handle multipart/foo correctly
  1834.   if it doesn't know about foo. The patch:
  1835.  
  1836.     http://www.gw.com/mail/mh/patches/all/mhn_multipart
  1837.  
  1838.   tells it to treat such things as if they were multipart/mixed.
  1839.  
  1840.   (See also "Why doesn't "show" display all of a MIME message?").
  1841.  
  1842. ------------------------------
  1843.   
  1844. Subject: 03.08 How can I automatically delete MH backup files?
  1845. From: mccammaa at expt05.stp.xfi.bp.com (Andy McCammont)
  1846. Date: 22 May 1995 06:27:36 -0400
  1847.  
  1848.   On System V system, add this to your crontab.  If you don't have
  1849.   one, put this in a file, and run "crontab file".  If your system
  1850.   does not support personal crontab files, get your system
  1851.   administrator to add an equivalent line to the system crontab file
  1852.   or daily clean-up script.  Note that some administrators set the
  1853.   prefix character to '#'.
  1854.  
  1855.     # Remove old MH files
  1856.     5 5 * * * find /PATH/TO/HOME/Mail -name ",*" -mtime +5 -exec rm {} \;
  1857.  
  1858. ------------------------------
  1859.   
  1860. Subject: 03.09 Fixing "cannot fopen and lock /var/spool/mail/(user)".
  1861. From: Patrick.Wambacq at esat.kuleuven.ac.be
  1862. Date: Mon, 30 Sep 96 15:00:16 +0200
  1863.  
  1864.   One should put the following lines in the $MHLIB/mts.conf
  1865.   (mtstailor) file:
  1866.  
  1867.     lockldir:
  1868.     lockstyle: 1
  1869.  
  1870.   This prevents MH from using kernel level locking, and uses lock
  1871.   files instead.  It solved the problem for me on two different
  1872.   architectures.  When the lockldir entry is left empty as above, the
  1873.   lock file is put in the same directory as the file to be locked. If
  1874.   another directory is wanted, its name should be put here.
  1875.  
  1876. From: alhy at MAILBOX.SLAC.Stanford.EDU
  1877. Date: Mon, 9 Sep 1996 01:01:16 -0700
  1878.  
  1879.   Often, this is caused by an NFS file lock.  Don't ask me how it got
  1880.   there in the first place.  To remove the file lock, do the following:
  1881.  
  1882.     # cd /var/spool/mail
  1883.     # cp user /tmp/user.tmp; rm user    # save mail; remove locked file
  1884.     # chown user /tmp/user.tmp        # allow user to inc old mail
  1885.     # su - user
  1886.     user% inc -file user.tmp        # incorporate user's old mail
  1887.  
  1888.   Any mail that you receive in the fraction of a second that the second
  1889.   set of commands takes will be lost.
  1890.  
  1891.   (See also "Why does inc hang (on Sun)?")
  1892.  
  1893. ------------------------------
  1894.   
  1895. Subject: 03.10 Can I read my mail with a Web browser?
  1896. Date: Mon, 05 Oct 1998 11:02:52 -0500
  1897. From: Kent Landfield <kent at nfr.net>
  1898.  
  1899.   Hypermail now supports MIME and alternate mailbox formats and sorts
  1900.   by author, date, and thread and can be read by a WWW reader.
  1901.  
  1902.     http://www.landfield.com/hypermail/
  1903.  
  1904. From: "Patrick A. Coronato" <coronato at me216.teb.allied.com>
  1905. Date: 8 Sep 1995 16:36:03 GMT
  1906.  
  1907.   MHonArc, by Earl Hood from Convex, will read MH mailboxes as well as
  1908.   Unix mailboxes, create HTML "archives" and will also sort by date,
  1909.   thread and author and has support for MIME.  Also, MHonArc is
  1910.   written in the Perl (version 4) language.  (You should go to this
  1911.   site if nothing more than to see the cool logo!)
  1912.  
  1913.     http://www.oac.uci.edu/indiv/ehood/mhonarc.html
  1914.  
  1915. ------------------------------
  1916.   
  1917. Subject: 03.11 How can I run inc automatically with POP?
  1918. From: Bill Wohler <wohler at newt.com>
  1919. Date: Mon, 27 Nov 1995 12:23:51 -0800
  1920.  
  1921.   If MH has been compiled with RPOP, then the POP server host either
  1922.   needs to have your host in /etc/hosts.equiv or in your .rhosts file.
  1923.   Then add to your MH profile:
  1924.  
  1925.     inc: -host cuckoo
  1926.  
  1927.   given that "cuckoo" is the name of the your POP server.
  1928.  
  1929. From: Andy Norman <ange at hplb.hpl.hp.com>
  1930. Date: Mon, 1 May 1995 00:00:00 -0800
  1931.  
  1932.   Assuming your POP server is called cuckoo, add an entry to your MH
  1933.   profile for 'inc' like so:
  1934.  
  1935.     inc: -noaudit -norpop -noapop -host cuckoo
  1936.  
  1937.   Add the following to ~/.netrc and ensure it is readable only by you
  1938.   (e.g., chmod 600 .netrc):
  1939.  
  1940.     machine cuckoo.domain.name login joeuser password secret
  1941.  
  1942.   Replace the hostname, login and password with your own, of course.
  1943.   The hostname probably has to be fully qualified (i.e., include the
  1944.   full domain name).  This example assumes that you can send mail by
  1945.   other means (e.g., with SMTP).
  1946.  
  1947. ------------------------------
  1948.   
  1949. Subject: 03.12 Why does inc hang (on Sun)?
  1950. From: ericding at mit.edu (Eric J. Ding)
  1951. Date: 30 Apr 1996 00:22:01 -0400
  1952.  
  1953.   This may be due to a non-robust implementation of lockf() over NFS.
  1954.   Try setting lockstyle to 1 in the $MHLIB/mts.conf (mtstailor) file
  1955.   so that MH uses dotfile locking rather than FLOCK or LOCKF.
  1956.  
  1957. ------------------------------
  1958.   
  1959. Subject: 03.12 How can I get POP to work?
  1960. From: Jonathan George <jmg at hpopd.pwd.hp.com>
  1961. Date: Tue, 23 Apr 1996 10:23:16 GMT
  1962.  
  1963.   If you get the error:
  1964.  
  1965.     inc: -ERR Unknown command: "rpop"
  1966.  
  1967.   you're trying to use "rpop" as the mechanism to authenticate the
  1968.   user. This mechanism is specified in RFC 1225 and then removed by
  1969.   RFC 1460.
  1970.  
  1971.   Your POP server is (rightly) rejecting this.
  1972.  
  1973.   The POP specification (RFC 1938) states that authentication is done
  1974.   either via a USER/PASS pair or via the APOP command.
  1975.  
  1976.   Try running inc with -noapop -norpop flags.
  1977.  
  1978. ------------------------------
  1979.   
  1980. Subject: 03.13 How do I persuade mhshow (mhn) not to bring up a new window?
  1981. From: Larry Daffner <ldaffner at convex.com>
  1982. Date: 27 Mar 1996 16:53:39 -0600
  1983.  
  1984.   Add one of the following to your .mh_profile:
  1985.  
  1986.      mhshow-charset-iso-8859-1: %s                # nmh
  1987.      mhn-charset-iso-8859-1: %s                    # MH
  1988.  
  1989. ------------------------------
  1990.   
  1991. Subject: 03.14 How do I turn off of all the mhshow (mhn) prompts?
  1992. From: Bill Wohler <wohler at newt.com>
  1993. Date: Sun, 11 Mar 2001 11:33:10 -0800
  1994.  
  1995.   In nmh, use mhshow -nopause.
  1996.   
  1997. From: Larry Daffner <ldaffner at convex.com>
  1998. Date: 27 Mar 1996 16:53:39 -0600
  1999.  
  2000.   The "part xxx" message is controlled by the -list switch to mhn so
  2001.   add "mhn: -nolist" to your .mh_profile.  To remove the pause, add an
  2002.   entry for "mhn-show-text/plain: more '%F'" to override the default
  2003.   which includes the "%p" escape.  All of this is covered in the mhn
  2004.   man page (sort of--you need to add 2+2).  It's a bit long, but well
  2005.   worth reading.
  2006.  
  2007. ------------------------------
  2008.   
  2009. Subject: 03.15 Why is inc splitting messages improperly?
  2010. From:    Mayank Choudhary <micky at eng.sun.com>
  2011. Date:    Mon, 29 Apr 1996 09:39:29 -0700
  2012.  
  2013.   MH considers "From " lines as message separators, so if this string
  2014.   is found within the body, inc splits the message.
  2015.  
  2016.   Add the following line to your .forward
  2017.   
  2018.     "|/usr/bin/mailcompat <user-name>"
  2019.   
  2020.   where user-name is your login-id.
  2021.  
  2022.   See mailcompat(1) for more information.
  2023.  
  2024. ------------------------------
  2025.   
  2026. Subject: 03.16 Can MH thread messages?
  2027. From: "John W. Coomes" <jcoomes at delirius.cs.uiuc.edu>
  2028. Date: 30 Apr 1997 13:02:10 -0500
  2029.  
  2030.   Sort of.  You can resort your folders by Subject with:
  2031.  
  2032.     sortm -textfield subject
  2033.  
  2034. ------------------------------
  2035.   
  2036. Subject: 03.17 How can I avoid reading the HTML version of the message?
  2037. From: Bill Wohler <wohler at gbr.newt.com>
  2038. Date: 23 Jun 2000 10:19:34 -0700
  2039.  
  2040.   You might find that you have two versions of the same message within
  2041.   the message. For example, one part might have a content type of
  2042.   text/plain and the other might be text/html.
  2043.  
  2044.   You may find that mhshow (mhn -show) wants to show the HTML version
  2045.   This is a feature of the multipart/alternative content type. If you
  2046.   prefer reading the the plain text version over the HTML version,
  2047.   you'd have to remove the line in $MHLIB/mhn.defaults or
  2048.   ~/.mh_profile that starts with mhshow-show-text/html
  2049.   (mhn-show-text/html). Of course, the tradeoff is that you'd never be
  2050.   able to view text/html at all, but you probably wouldn't care.
  2051.  
  2052. ------------------------------
  2053.   
  2054. Subject: 03.18 How do I view or save attachments?
  2055. From: Bill Wohler <wohler at gbr.newt.com>
  2056. Date: Mon, 5 Mar 2001 09:12:15 -0800
  2057.  
  2058.   Use mhshow (mhn -show) and mhstore (mhn -store) respectively. See
  2059.   the man pages for more details.
  2060.  
  2061. ------------------------------
  2062.   
  2063. Subject: 03.19 How do I view HTML attachments with Netscape?
  2064. From: Bill Wohler <wohler at gbr.newt.com>
  2065. Date: Mon, 5 Mar 2001 09:58:05 -0800
  2066.  
  2067.   Add one of the following to ~/.mh_profile:
  2068.  
  2069.     mhshow-show-text/html: %lnetscape -remote 'openURL(file:%f, new-window)'
  2070.     mhn-show-text/html: %lnetscape -remote 'openURL(file:%f, new-window)'
  2071.  
  2072.   The % escapes are described in the mhshow (mhn) man page. The
  2073.   ", new-window" argument in the netscape invocation is optional, but
  2074.   handy. After reading the message, you can dismiss the window with
  2075.   M-w and go back to reading mail.
  2076.  
  2077. ------------------------------
  2078.  
  2079. Subject: 04.00 ***** Filing *****
  2080. From: Bill Wohler <wohler at newt.com>
  2081. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2082.  
  2083. ------------------------------
  2084.  
  2085. Subject: 04.01 Can I append MH messages to a Unix mailbox format file?
  2086. From: Richard Coleman <coleman at math.gatech.edu>
  2087. Date: Tue, 20 Jan 1998 02:19:58 -0500
  2088.  
  2089.   In nmh, use packf instead.
  2090.  
  2091. From: Bill Wohler <wohler at newt.com>
  2092. Date: Fri, 1 Jan 1993 00:00:00 -0800
  2093.  
  2094.   Yes, see $MHLIB/packmbox.
  2095.  
  2096. ------------------------------
  2097.   
  2098. Subject: 04.02 Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  2099. From: Bill Wohler <wohler at newt.com>
  2100. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2101.  
  2102.   To convert your MH folders to BABYL folders, first run the following script
  2103.   on your Mail directory.
  2104.  
  2105.     #!/bin/sh
  2106.  
  2107.     for f in Mail/*; do
  2108.     if [ -d $f ]; then
  2109.         touch msgbox
  2110.         folder=`basename $f`
  2111.         echo -n packing $folder ...
  2112.         packf +$folder
  2113.         echo done
  2114.         mv msgbox Mail-rmail/$folder
  2115.     fi
  2116.     done
  2117.  
  2118.   This assumes you don't have nested folders.  Your rmail folders will be
  2119.   left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run
  2120.   rmail-input for each folder, which converts each folder into BABYL format.
  2121.  
  2122.   Be sure not to append any messages before they are converted from MMDF
  2123.   to BABYL, since there may be really strange results.
  2124.  
  2125. ------------------------------
  2126.   
  2127. Subject: 04.03 Why do I get ".../.mh_sequences is poorly formatted?"
  2128. From: Richard Coleman <coleman at math.gatech.edu>
  2129. Date: Tue, 20 Jan 1998 02:19:58 -0500
  2130.  
  2131.   This bug has been fixed in nmh (as of version 0.20).  There are no
  2132.   limitations on the length of an entry in the .mh_sequences file.
  2133.  
  2134. From: Jerry Peek <jpeek at jpeek.com>
  2135. Date: Mon, 1 Aug 1994 00:00:00 -0800
  2136.  
  2137.   There is a line length limit in this file.  When sequences are
  2138.   unbroken (without gaps in numbering), that makes short entries in
  2139.   the .mh_sequences file, like this:
  2140.  
  2141.     inftex: 72-8000
  2142.  
  2143.   But when there are lots of numbering gaps, the entry gets long:
  2144.  
  2145.     inftex: 76 79-81 87 95-96 105 109 120 124 135 141 158 163...
  2146.  
  2147.   That's when you run into problems, and why it's good to keep the
  2148.   folder packed when you can.  Simply run "folder -pack +folder".
  2149.  
  2150.   If you're refiling a lot of messages in a large folder, you might
  2151.   not be able to use sequences.  Use backquotes to give the message
  2152.   numbers directly to "refile".  For example:
  2153.  
  2154.     refile +tex/info-tex `pick -to info-tex`
  2155.  
  2156.   That can still generate a long list of arguments to the "refile" command,
  2157.   and some Unixes can't handle that.  In that case, use xargs(1):
  2158.  
  2159.     pick -to info-tex | xargs refile +tex/info-tex
  2160.  
  2161.   If worse comes to worst, fire up a Bourne shell and use a "while" loop:
  2162.  
  2163.     pick -to info-tex | fmt | while read nums; do
  2164.     refile +tex/info-tex $nums
  2165.     done
  2166.  
  2167.   The fmt(1) command breaks long lines into manageable chunks of 72
  2168.   characters or so, splitting arguments at whitespace.  When you redirect
  2169.   the input of a while loop, a "read" command will read the incoming text
  2170.   and store it in a shell variable line by line.  This is a quick-&-dirty
  2171.   way to write xargs(1) if you don't have it.
  2172.  
  2173. ------------------------------
  2174.   
  2175. Subject: 04.04 How can you save News articles into an MH folder?
  2176. From: Jerry Peek <jpeek at jpeek.com>
  2177. Date: Mon, 1 May 1995 00:00:00 -0800
  2178.  
  2179.   If your newsreader handles backquotes on its command line, you can use
  2180.   the mhpath command.  For instance, if your "save" command is "s":
  2181.  
  2182.     s `mhpath new +somefolder`
  2183.  
  2184.   Or if your newsreader lets you define your own commands, as in shell
  2185.   aliases, you could define that as a command.
  2186.  
  2187.   If your newsreader can pipe an article to the standard input of a
  2188.   program, use the "rcvstore" command (in the MH library).  For instance,
  2189.   if your "pipe" command is "|":
  2190.  
  2191.     | $MHLIB/rcvstore +somefolder
  2192.  
  2193.   Of course, you can also put that in a little shell script.
  2194.  
  2195. ------------------------------
  2196.   
  2197. Subject: 04.05 Are there any good tools to archive MH messages?
  2198. From: glimpse at cs.arizona.edu
  2199. Date: Sun, 4 Mar 2001 10:26:24 -0800
  2200.  
  2201.   Glimpse is a very powerful indexing and query system that allows you
  2202.   to search through all your files very quickly. It can be used by
  2203.   individuals for their personal file systems as well as by
  2204.   organizations for large data collections.
  2205.  
  2206.     http://www.webglimpse.org/
  2207.  
  2208. From: Bill Wohler <wohler at newt.com>
  2209. Date: Sun, 26 Nov 1995 17:10:59 -0800
  2210.  
  2211.   For those of lesser means, I have three shell scripts for archiving,
  2212.   seeking, and extracting MH messages that I have been using for
  2213.   almost 10 years.  Send mail if interested.  Note that I intend to
  2214.   switch to Glimpse if I get a moment.
  2215.  
  2216. ------------------------------
  2217.   
  2218. Subject: 04.06 How can I remove duplicate messages?
  2219. From: Jerry Peek <jpeek at jpeek.com>
  2220. Date: 20 Nov 1995 18:51:24 GMT
  2221.  
  2222.   The easiest way I know of is to sort the folder by the Message-ID
  2223.   field using the sortm(1) command.
  2224.  
  2225.   After the sort, each message should be next to its duplicates in the
  2226.   folder.  Use a script (shell, Perl, etc.) to weed out the
  2227.   duplicates.  (See "Removing duplicate messages (Bourne)").
  2228.  
  2229.   The Perl script in (see "Removing dupicate messages (Perl)) does not
  2230.   require that you first sort the folder.
  2231.  
  2232. ------------------------------
  2233.   
  2234. Subject: 04.07 How can I remove holes in numbering?
  2235. From: Bill Wohler <wohler at newt.com>
  2236.  
  2237.   folder -pack
  2238.  
  2239. ------------------------------
  2240.  
  2241. Subject: 05.00 ***** Composing & Replying *****
  2242. From: Bill Wohler <wohler at newt.com>
  2243. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2244.  
  2245. ------------------------------
  2246.  
  2247. Subject: 05.01 Why does repl add a "Re:" to a message that already has one?
  2248. From: Larry McVoy <lm at slovax.Eng.Sun.COM>
  2249. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2250.  
  2251.   I carefully reconfigured and rebuilt MH from scratch and the problem
  2252.   went away.
  2253.  
  2254. ------------------------------
  2255.   
  2256. Subject: 05.02 How do I include messages in repl with or without ">"?
  2257. From: Richard Coleman <coleman at math.gatech.edu>
  2258. Date: Tue, 20 Jan 1998 02:19:58 -0500
  2259.  
  2260.   In nmh, to include a message in a reply with a leading ">", just
  2261.   use "repl -format".
  2262.  
  2263. From: Alan Thew <qq11 at liv.ac.uk>, Mike Schwager <schwager at cs.uiuc.edu>,
  2264.     James T Perkins <jamesp at sp-eug.com>
  2265. Date: Fri, 1 Jan 1993 00:00:00 -0800
  2266.  
  2267.   When making a reply, specify a filter file on the command line:
  2268.  
  2269.     repl -filter repl.format
  2270.  
  2271.   This filter file must be in your MH mail directory (usually "Mail",
  2272.   in your home directory).  Here are a couple of example repl.format
  2273.   files:
  2274.  
  2275.     overflowtext="",overflowoffset=0
  2276.     message-id:nocomponent,formatfield=\
  2277.     "In message %{text}you write:"
  2278.     body:component=">",overflowtext=">",overflowoffset=0
  2279.  
  2280.   or
  2281.  
  2282.     overflowtext="",overflowoffset=0
  2283.     date:component="Your message dated",formatfield=\
  2284.     "%<(nodate{text})%{text}%|%(pretty{text})%>"
  2285.     body:component=">",overflowtext=">",overflowoffset=0
  2286.  
  2287.   Setting overflowoffset to 0 keeps MH from doing anything to
  2288.   extra-long lines in the headers.  In the body, however, this
  2289.   behavior is overridden so that long lines are automatically broken
  2290.   and a ">" is inserted before every line.  You could put almost
  2291.   whatever you want between those quotes, although the "standard" ">"
  2292.   makes it easier to read notes that have been included several times.
  2293.   The examples differ with the descriptive text that is inserted
  2294.   before the included body.
  2295.  
  2296.   It is suggested not to use the "prompter" editor in this case, since
  2297.   it is likely that you'll not want to use all of the included
  2298.   message.  Indeed, it is proper etiquette to edit out all unnecessary
  2299.   include verbiage so readers don't have to wade through the morass to
  2300.   read your pearls of wisdom.
  2301.  
  2302.   WARNING: the '>' appears on the first line ONLY in versions prior
  2303.   to 6.7.2.  Upgrade to MH 6.8.
  2304.  
  2305.   See also MH book sections 7.8.4 (6.7.4), 7.8.5 (6.7.5), 10.4.1 (9.4.1),
  2306.   or the URLs:
  2307.  
  2308.     http://www.ics.uci.edu/~mh/book/mh/reprep-2.htm#ReaEdi
  2309.     http://www.ics.uci.edu/~mh/book/mh/reprep-2.htm#Inc
  2310.     http://www.ics.uci.edu/~mh/book/mh/verrep.htm#IncRep
  2311.  
  2312. ------------------------------
  2313.   
  2314. Subject: 05.03 How can I eliminate duplicate copies of letters to myself?
  2315. From: Bill Wohler <wohler at newt.com>
  2316. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2317.  
  2318.   Add these two lines to your MH profile file:
  2319.  
  2320.     Alternate-Mailboxes: user@host1, user@host2, ...
  2321.     repl: -nocc me
  2322.  
  2323.   The Alternate-Mailboxes also tells scan which messages are really
  2324.   from you so that it can place the recipient in the scan line instead
  2325.   of the sender.
  2326.  
  2327. From: Jerry Peek <jpeek at jpeek.com>
  2328. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2329.  
  2330.   To get one copy, you can either:
  2331.  
  2332.   - Take out the "-nocc me"... then you'll get exactly one copy of
  2333.     your replies (assuming all your addresses are listed in
  2334.     Alternate-Mailboxes), or
  2335.  
  2336.   - (See also "How can I save a copy of all messages I send?").
  2337.  
  2338.     For more info, see the man pages comp(1),
  2339.     repl(1), forw(1), dist(1) and mh-mail(5).
  2340.  
  2341.   See also MH book sections 7.8.2 (6.7.2), 9.8 (8.6), or the URLs:
  2342.  
  2343.     http://www.ics.uci.edu/~mh/book/mh/reprep-2.htm#Sel
  2344.     http://www.ics.uci.edu/~mh/book/mh/defmai.htm
  2345.  
  2346. From: Alec Wolman <wolman at crl.dec.com>
  2347. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2348.  
  2349.   Listing the name of a mailing list in Alternate-Mailboxes is also a
  2350.   convenient way to AVOID automatically cc-ing a mailing list when
  2351.   replying to a person who sent the message to the mailing-list.
  2352.  
  2353. From: Andre Srinivasan <asriniva at us.oracle.com>
  2354. Date: Fri, 24 Jan 1997 09:33:19 -0800
  2355.  
  2356.   Rather than specify the hostname as part of the mailbox, you can
  2357.   simply specify the username and it will match on any host:
  2358.  
  2359.     Alternate-Mailboxes: asriniva
  2360.  
  2361. ------------------------------
  2362.   
  2363. Subject: 05.04 How can I include my signature?
  2364. From: Eric W. Ziegast <ziegast at uunet.uu.net>,
  2365.     Hardy Mayer <hardy at golem.ps.uci.edu>
  2366. Date: Tue, 1 Nov 1994 00:00:00 -0800
  2367.  
  2368.   There are several ways.
  2369.  
  2370.   1) The MH way.
  2371.  
  2372.   1a) In your Mail directory, create files that
  2373.       include your signature into the format of the message.
  2374.  
  2375.       ~/Mail/components:
  2376.     To:
  2377.     cc:
  2378.     Subject:
  2379.     --------
  2380.  
  2381.     --
  2382.     Eric Ziegast        ziegast at uunet.uu.net
  2383.     UUNET Technologies    uunet!ziegast
  2384.  
  2385.       ~/Mail/replfmt
  2386.     body:component="> ",compwidth=2
  2387.     :--
  2388.     :Eric Ziegast          ziegast at uunet.uu.net
  2389.     :UUNET Technologies    uunet!ziegast
  2390.  
  2391.      To use the replfmt file, add the following to your ~/.mh_profile:
  2392.  
  2393.        repl: -filter replfmt
  2394.  
  2395.      When comp is used, your signature is already there along with my
  2396.      headers.  When repl is used, the mhl program takes the body of
  2397.      the letter you're replying to, prepends '> ' to each line and
  2398.      then adds your signature at the end (available after version
  2399.      6.7).
  2400.  
  2401.   1b) Create an "editor" which can be called from whatnow to add the
  2402.       signature when desired or create a frontend to post (use the
  2403.       .mh_profile line "postproc: postproc" to call it) that always
  2404.       appends the .signature file before calling post to mail the
  2405.       message.  David J. Fiander <david at golem.uucp>, David A.
  2406.       Truesdell <truesdel at nas.nasa.gov> and Tom Wilmore
  2407.       <sastjw at unx.sas.com> have sample scripts to do these.
  2408.  
  2409. From: Jerry Peek <jpeek at jpeek.com>
  2410. Date: Tue, 1 Sep 1992 00:00:00 -0800
  2411.  
  2412.   1c) mysend, a sendproc script, processes a message after
  2413.       "What now? send".  See "What references exist for MH" to see
  2414.       where the MH book scripts can be ftped from.  The script is
  2415.       explained in MH book Section 7.1.4 (13.13), or the URL:
  2416.       http://www.ics.uci.edu/~mh/book/mh/senove.htm#ASAtDm
  2417.  
  2418.   2) Using your editor.  If you use vi, you can use something like:
  2419.  
  2420.        map S :r ~/.signature
  2421.  
  2422.      to load your signature out of .signature every time you
  2423.      hit 'S'.
  2424.  
  2425.   3) Use your windowing system.  xterm, for example, can provide key
  2426.      and button mappings for the utterly lazy.
  2427.  
  2428.   4) If you use Emacs with mh-e:
  2429.  
  2430.   4a) C-c C-s will append the signature.
  2431.  
  2432. From: Andre Srinivasan <andre at neuronet.pitt.edu>
  2433. Date: Mon, 1 May 1995 00:00:00 -0800
  2434.  
  2435.   4b) Add the following to your .emacs file:
  2436.  
  2437.     (add-hook 'mh-compose-letter-function
  2438.         (function
  2439.          (lambda(a b c)
  2440.            (save-excursion
  2441.          (goto-char (point-max))
  2442.          (beginning-of-line)
  2443.          (mh-insert-signature)))))
  2444.  
  2445.       This hook is called after the draft buffer has been initialized,
  2446.       but before you have a chance to type anything.
  2447.  
  2448. From: Tom Christiansen <tchrist at perl.com>
  2449. Date: Tue, 1 Nov 1994 00:00:00 -0800
  2450.  
  2451.   Tired of the same old signature?  Want different signatures for
  2452.   different newsgroups?  Here's a program to help you out.
  2453.  
  2454.   The way it works is to have .signature be a named pipe, so if you
  2455.   don't have named pipes, just say 'n'.
  2456.  
  2457.   The sigrand program then feeds stuff down the pipe every time someone
  2458.   wants to read it.  That way it works for more than just news, but
  2459.   for anything that wants to read your .signature, like a mailer.
  2460.  
  2461.   You have your choice of three kinds of signatures:
  2462.  
  2463.       1) random (short) fortune from "fortune -s"; you get these if
  2464.      you don't have a global sig file.
  2465.       2) random fortune from ~/News/SIGNATURES [global sig file]
  2466.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  2467.  
  2468.   Send mail if interested.
  2469.  
  2470. Date: Tue, 1 Nov 1994 00:00:00 -0800
  2471.  
  2472.   See also the Signature FAQ (see "What references exist for MH?").
  2473.  
  2474. ------------------------------
  2475.   
  2476. Subject: 05.05 How do I call my editor with arguments?
  2477. From: John Romine <jromine at ics.uci.edu>
  2478. Date: Mon, 1 May 1995 00:00:00 -0800
  2479.  
  2480.   Set your editor (in .mh_profile) to the following shellscript.
  2481.  
  2482.     #/bin/sh
  2483.     <youreditor> <yourargs> "$@"
  2484.     exit 0
  2485.  
  2486. From: Ray Nickson <Ray.Nickson at comp.vuw.ac.nz>
  2487. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2488.  
  2489.   You might find it useful to make <youreditor> $EDITOR, or to use
  2490.   different arguments depending on your EDITOR environment variable.
  2491.  
  2492. ------------------------------
  2493.   
  2494. Subject: 05.06 How can I digestify messages in a folder for mail to another user?
  2495. From: Jerry Peek <jpeek at jpeek.com>, Bill Wohler <wohler at newt.com>
  2496. Date: Fri, 1 Mar 1991 13:03:15 -0800
  2497.  
  2498.   How about:
  2499.  
  2500.     forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]
  2501.      messages +folder
  2502.  
  2503.   These messages can be un-digestified :-) by the MH burst(1) program.
  2504.  
  2505.   See also MH book sections 7.9.7 (6.8.7), 8.10 (7.9), or the URLs:
  2506.  
  2507.     http://www.ics.uci.edu/~mh/book/mh/forfor-2.htm#CreDig
  2508.     http://www.ics.uci.edu/~mh/book/mh/burdig.htm
  2509.  
  2510. From: Glenn Vanderburg <glv at utdallas.edu>
  2511. Date: Tue, 1 Nov 1994 00:00:00 -0800
  2512.  
  2513.   There's another way, which is better if the recipient understands MIME.
  2514.  
  2515.     forw -mime messages +folder
  2516.  
  2517.   (Make sure that you either have "automhnproc: mhn" in your mh
  2518.   profile, or type "edit mhn" to whatnow before you send it.)
  2519.  
  2520.   This bundles each message in a MIME message/rfc822 part, and then
  2521.   bundles the whole mess up in a multipart/digest part.  You can still
  2522.   add your own text at the beginning.  The MH burst program can also
  2523.   understand these messages and split them apart with no problem.
  2524.   This works beautifully with MIME-capable mail readers, especially
  2525.   exmh.
  2526.  
  2527. ------------------------------
  2528.   
  2529. Subject: 05.07 How can I change my return address?
  2530. From: Bill Wohler <wohler at newt.com>
  2531. Date: Tue, 1 Dec 1992 00:00:00 -0800
  2532.  
  2533.   If you find that your mailer creates a From header that others have
  2534.   trouble replying to, you can add a Reply-To header to override the
  2535.   From header in replies.
  2536.  
  2537.   Copy the components and replcomps files which are normally found in
  2538.   $MHLIB into your Mail directory and add a line like the following
  2539.   after the Subject header replacing my address with your address:
  2540.  
  2541.     Reply-To: jack@newt.com
  2542.  
  2543. ------------------------------
  2544.   
  2545. Subject: 05.08 How can I change my From header?
  2546. From: Bill Wohler <wohler at newt.com>
  2547. Date: Mon, 27 Nov 1995 11:40:50 -0800
  2548.  
  2549.   With either of the following solutions, you'll need to add an
  2550.   Alternate-Mailboxes entry in your MH profile so that scan prints
  2551.   "To: recipient" rather than your faked address.  For example, if
  2552.   your real address is user@somedomain.com and you've added a From
  2553.   field of:
  2554.  
  2555.     From: Joe Bob <joe.bob@somedomain.com>
  2556.  
  2557.   you'll add the following to .mh_profile:
  2558.  
  2559.     Alternate-Mailboxes: joe.bob@somedomain.com
  2560.  
  2561. From: Bill Wisner <wisner at netcom.com>
  2562. Date: Tue, 1 Dec 1992 00:00:00 -0800
  2563.  
  2564.   If you're just interested in changing the hostname, add a line to
  2565.   $MHLIB/mts.conf (mtstailor):
  2566.  
  2567.     localname: desired_host_name
  2568.  
  2569. From: Jerry Peek <jpeek at jpeek.com>
  2570. Date: Tue, 1 Dec 1992 00:00:00 -0800
  2571.  
  2572.   Just put a "From:" header in your "components", "replcomps" and
  2573.   "forwcomps" files.  MH will add a "Sender:" header with what it thinks
  2574.   is your real address.
  2575.  
  2576. ------------------------------
  2577.   
  2578. Subject: 05.09 How can I save a copy of all messages I send?
  2579. From: Ping Huang <pshuang at sgihub.corp.sgi.com>
  2580. Date: Mon, 18 Dec 1995 17:51:33 -0800
  2581.  
  2582.   I suggest the use of the Dcc: field (See "What is the Dcc header?"),
  2583.   since the use of "Dcc:" solves the issue of having the same
  2584.   Message-Id.  The warning about using Dcc: in general contexts
  2585.   doesn't apply to self-blind-carbon copies, and if "Dcc:" is used and
  2586.   you are automatically sorting messages into folders based on mailing
  2587.   lists, messages which you send will get refiled in the same way.
  2588.   Some may prefer all outgoing messages to be segregated; others
  2589.   (including myself) prefer not to segregate outgoing messages.
  2590.  
  2591. From: Bill Wohler <wohler at newt.com>, Jerry Peek <jpeek at jpeek.com>
  2592. Date: Mon, 1 Aug 1994 00:00:00 -0800
  2593.  
  2594.   Copy the components and replcomps files which are normally found in
  2595.   $MHLIB into your Mail directory and add a line like the following
  2596.   after the cc header:
  2597.  
  2598.     Fcc: +out
  2599.  
  2600.   All outgoing messages will then be saved in the +out folder.  If you
  2601.   make a distcomps file, it needs "Resent-Fcc:".
  2602.  
  2603. From: Jeppe Sigbrandt <jay at elec.gla.ac.uk>
  2604. Date: Sat, 5 Apr 1997 02:04:53 +0100
  2605.  
  2606.   You can also use @ in the Fcc field to file the outgoing message in
  2607.   the current folder.
  2608.  
  2609.     Fcc: @
  2610.  
  2611.   This is useful if you filter your mail (e.g., with procmail) and you
  2612.   read your mail in folders other than +inbox.
  2613.  
  2614. From: David S. Goldberg <dsg at linus.mitre.org>
  2615. Date: 30 Oct 1995 10:23:55 -0500
  2616.  
  2617.   You can get the Message-ID field by placing the folder in the "Fcc"
  2618.   field and adding:
  2619.  
  2620.     send: -msgid
  2621.  
  2622.   to your .mh_profile.  Unfortunately, this Message-ID isn't as useful
  2623.   as sendmail's--it doesn't include the date.
  2624.  
  2625. ------------------------------
  2626.   
  2627. Subject: 05.10 Can the folder in Fcc: be dynamically specified?
  2628. From: Andy Rabagliati <andyr at wizzy.com>
  2629. Date: Mon, 1 Aug 1994 00:00:00 -0800
  2630.  
  2631.   My suggestion would be to run Tom Christiansen's rfi script.  If you
  2632.   cannot find it on *.sources archive sites (please try first), I can
  2633.   mail it to you.
  2634.  
  2635.   One good idea would be to write a whatnowproc that files the mail
  2636.   based on a procmail or deliver file.  Then you can use the same file
  2637.   for incoming and outgoing mail.
  2638.  
  2639. ------------------------------
  2640.   
  2641. Subject: 05.11 Can I post secure/encryped mail?
  2642. From: Stephen Gildea <gildea at stop.mail-abuse.org>
  2643. Date: Mon, 5 Mar 2001 05:32:31 -0800
  2644.  
  2645.   There are several packages that support PGP in mh-e:
  2646.  
  2647.     mailcrypt by Patrick LoPresti <patl at lcs.mit.edu>
  2648.     and Jin Choi <jsc at mit.edu>.  See
  2649.     http://mailcrypt.sourceforge.net/ for more info.
  2650.  
  2651.     pgp.el by Jack Repenning <jackr at informix.com>
  2652.     ftp://sgigate.sgi.com/pub/pgp-aux/pgp-el.tar.gz
  2653.  
  2654.   Jack and I have been in communication, so I know that pgp.el will work
  2655.   with mh-e 5.0.
  2656.  
  2657. From: Bill Wohler <wohler at newt.com>
  2658. Date: Mon, 5 Mar 2001 05:30:43 -0800
  2659.  
  2660.   PGP keys can be obtained via mail from <pgp-public-keys at pgp.mit.edu>,
  2661.   and via the Web at http://www.pgp.net/pgpnet/pks-commands.html.
  2662.   Many PGP front-ends (e.g., mailcrypt) automatically obtain keys for
  2663.   you.
  2664.  
  2665.   See http://www.pgp.net/ for more info.
  2666.  
  2667.   Note that I use mailcrypt. It is also comes as a Debian GNU/Linux
  2668.   package.
  2669.  
  2670. From: Vivek Khera <khera at kciLink.com>
  2671. Date: 19 Jun 1995 22:06:37 GMT
  2672.  
  2673.   A much more robust Perl script I wrote is appended below [Ed: Send a
  2674.   note to Vivek for the script].  It works its way through aliases,
  2675.   and avoids problems with full names in the headers.
  2676.  
  2677.   Here is my mhn profile entry to display the messages.
  2678.  
  2679.     mhshow-show-application/x-pgp: %l pgp -m '%F'    # nmh
  2680.     mhn-show-application/x-pgp: %l pgp -m '%F'        # MH
  2681.  
  2682.   to use the script, after you edit the message, at the What now?
  2683.   prompt, type "edit pgpmail" for plain ascii encryption or "pgpmail
  2684.   -m" for a MIME formatted encryption.  If you want to add a digital
  2685.   signature, give the script the -s flag also.
  2686.  
  2687. From: Jeffrey C. Ollie <jeff at ollie.clive.ia.us>
  2688. Date: Mon, 1 May 1995 00:00:00 -0800
  2689.  
  2690.   TIS has a free, draft-standard compliant public key system that
  2691.   works with MH (PEM).  Check it out on ftp.tis.com.
  2692.  
  2693. From: Kimmo Suominen <kim at tac.nyc.ny.us>
  2694. Date: Mon, 1 May 1995 00:00:00 -0800
  2695.  
  2696.   You could try looking at the URL http://www.tac.nyc.ny.us/ and
  2697.   following the link from the cover page.  Everything you need for
  2698.   PGP to work with MH is there (scripts and mhn entries).
  2699.  
  2700. From: mathew at mantis.co.uk
  2701. Date: Mon, 1 May 1995 00:00:00 -0800
  2702.  
  2703.   Excellent stuff.  I've tried altering it to conform to
  2704.   draft-borenstein-pgp-mime-00.txt.
  2705.  
  2706.   Unfortunately, I can't get mhn to tag PGP-armoured text as
  2707.   application/pgp; format=text without it insisting on base64 encoding
  2708.   it.  So I can't quite manage to implement the standard.  *sigh*
  2709.  
  2710.   Presumably mhn thinks that anything which isn't text/* must be
  2711.   encoded.
  2712.  
  2713. From: Jason L Tibbitts III <tibbs at sina.tcamc.uh.edu>
  2714. Date: Mon, 1 May 1995 00:00:00 -0800
  2715.  
  2716.   There is an Emacs and MH based mail interface called Mew which,
  2717.   while still beta, is quite stable and works well.  It fully handles
  2718.   MIME and PGP.  Grab it from:
  2719.  
  2720.     ftp://ftp.aist-nara.ac.jp/pub/elisp/Mew/mew-current.tar.gz
  2721.  
  2722. From: John R MacMillan <john at interlog.com>
  2723. Date: Wed, 16 Apr 1997 00:06:59 -0700
  2724.  
  2725.   Premail, in conjunction with MH, can display and compose security
  2726.   multiparts (e.g., multipart/signed and multipart/encrypted PGP mail,
  2727.   non-MIME PGP, and some S/MIME).  Check out
  2728.  
  2729.     http://www.c2.org/~raph/premail/
  2730.  
  2731.   for details.
  2732.  
  2733. ------------------------------
  2734.   
  2735. Subject: 05.12 How can I send multi-media (MIME) attachments?
  2736. From: Brian Exelbierd <bex at ncsu.edu>
  2737. Date: Mon, 09 Oct 1995 08:05:55 -0400
  2738.  
  2739.   The short guide:
  2740.  
  2741.   1. Compose a letter using comp.
  2742.  
  2743.   2. When you get to a point where you want to include a MIME attachment, type
  2744.      the following to include a GIF image (note: the '#' must be in
  2745.      the first column):
  2746.  
  2747.     #image/gif [Pictures at an Exhibition] /usr/lib/pictures/exhibition.gif
  2748.  
  2749.   3. Finish your letter, adding more text or attachments as needed.
  2750.  
  2751.   4. Save your letter and exit the editor.  At the Whatnow prompt
  2752.      type "edit mhn".  mhn will automatically format your letter with
  2753.      the MIME attachments leaving the original letter in ,##,orig
  2754.      where ## is the letter number.
  2755.  
  2756.   5. Type "send" at the Whatnow prompt, and poof, you have just sent
  2757.      MIME mail.  I strongly recommend you practice sending yourself
  2758.      MIME mail first.
  2759.  
  2760.   For more information, see the mhn(1) man page,
  2761.   ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types
  2762.   for a list of allowed media types in addition to image/gif, and
  2763.   Chapter 3 in the MH book or the URL:
  2764.  
  2765.     http://www.ics.uci.edu/~mh/book/overall/tocs/intmime.htm
  2766.  
  2767. ------------------------------
  2768.   
  2769. Subject: 05.13 What's the best way to send mail to a long list of people?
  2770. From: Bill Wohler <wohler at newt.com>
  2771. Date: Thu, 12 Oct 1995 07:53:53 -0700
  2772.  
  2773.   There are three ways to keep the list of members from appearing in
  2774.   everyone's header.
  2775.  
  2776.   If you're planning on mailing to these people regularly, the best
  2777.   way is to create an alias in /etc/aliases (/usr/lib/aliases).  That
  2778.   way, recipients can send and reply to the list as well.
  2779.  
  2780.   The other two ways allow you to manage the list privately, but the
  2781.   recipients cannot send to the list (unless you set something up with
  2782.   your deliver or procmail script).  One is with a group list.  It
  2783.   looks like this:
  2784.  
  2785.     To: All-members: member1, member2, member3, ..., membern;
  2786.  
  2787.   The recipients see this:
  2788.  
  2789.     To: All-members:;
  2790.  
  2791.   You can make this an MH alias as well.
  2792.  
  2793.   The second way is to use a blind carbon copy (see "How do I send
  2794.   blind carbon copies?").
  2795.  
  2796.   Or you could also use the undocumented Dcc field which is used like
  2797.   the Bcc field, but doesn't inject the "Blind-Carbon-Copy."  Warning:
  2798.   (See "What is the Dcc header?")
  2799.  
  2800. ------------------------------
  2801.   
  2802. Subject: 05.14 What is the Dcc header?
  2803. From: jpeek at jpeek.com (Jerry Peek)
  2804. Date: 14 Sep 96 05:51:13 GMT
  2805.  
  2806.   If you put the alias in the Dcc field and leave the To: field empty,
  2807.   there's a good chance that the recipients will get a message with
  2808.   the header field:
  2809.  
  2810.     Apparently-to: <someaddress>
  2811.  
  2812.   and it might even list several addresses.  To avoid that, use a To:
  2813.   field with some address (like yours) in it.  I use a comment that
  2814.   tells people what's really happening--like this, more or less:
  2815.  
  2816.     To: "Faculty members, c/o" <super@wierdlmpc.msci.memphis.edu>
  2817.     dcc: faculty
  2818.  
  2819.   There are some other choices, like using an un-replyable group list
  2820.   in the To: field, but I think they tend to confuse non-techies.
  2821.  
  2822. Date: Wed, 27 Sep 1995 09:46:37 -0700
  2823. From: John Romine <jromine at yoyodyne.ICS.UCI.EDU>
  2824.  
  2825.   The Dcc (Distribution Carbon Copy) field behaves much like the Bcc
  2826.   field, but does not add the "Blind-Carbon-Copy" notice.  This header
  2827.   is removed before posting the message,and a copy of the message is
  2828.   distributed to each listed address.  This could be considered a form
  2829.   of Blind Carbon Copy which is best used for sending to an address
  2830.   which would never reply (such as an auto-archiver).
  2831.  
  2832.   People should not be using Dcc as a substitute-Bcc to send to other
  2833.   people.  When users use Dcc as a substitute for Bcc, there is *no*
  2834.   indication to the "blind" recipients that they have received a blind
  2835.   copy.  If those recipients should reply (and they have no indication
  2836.   why they shouldn't), the original author could be very embarassed
  2837.   (or worse).
  2838.  
  2839. ------------------------------
  2840.   
  2841. Subject: 05.15 How can I make sense of the replcomps file?
  2842. From: Bill Wohler <wohler at newt.com>
  2843. Date: Sun, 26 Nov 1995 19:25:14 -0800
  2844.  
  2845.   The best thing to do is curl up with the mh-format(5) man page, or
  2846.   Section 11.2 of the MH book, or the URL:
  2847.  
  2848.     http://www.ics.uci.edu/~mh/book/mh/mhstr.htm
  2849.  
  2850.   These will explain the following replcomps file.  Don't start with the
  2851.   first four lines--the latter group of lines are much easier to understand.
  2852.  
  2853.     %(lit)%(formataddr %<{reply-to}%?{from}%?{sender}%?{return-path}%>)\
  2854.     %<(nonnull)%(void(width))%(putaddr To: )\n%>\
  2855.     %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
  2856.     %<(nonnull)%(void(width))%(putaddr cc: )\n%>\
  2857.     Organization: Newt Software
  2858.     %<{fcc}Fcc: %{fcc}\n%>\
  2859.     %<{subject}Subject: Re: %{subject}\n%>\
  2860.     %<{date}In-reply-to: Your message of "\
  2861.     %<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}
  2862.          %{message-id}%>\n%>\
  2863.     --------
  2864.  
  2865.   In particular, note the following:
  2866.  
  2867.     \    consider the following line to be part of the current line
  2868.     \n    inject an actual newline into the reply.  Note that inserting
  2869.         a field without a trailing backslash (\) will cause
  2870.         that field to be emitted in the reply as well.
  2871.     %<{field}, %?{field}, %|, %>    if field exists, else if field exists,
  2872.                     else, endif
  2873.     %(command)    mh-format commands
  2874.     %{field}    value of the header field inserted at this point
  2875.  
  2876.   To add new fields, you can either add fields based on whether
  2877.   certain fields exist in the original message (e.g.,
  2878.   %<{message-id}...), or hard-code them, as in the Organization field
  2879.   above.  Note that you can either use a "\n\" pair, or nothing at the
  2880.   end of a line to insert a newline in the reply.
  2881.  
  2882. ------------------------------
  2883.   
  2884. Subject: 05.16 How can I convert quoted-printable to 8bit in quoted text in replies?
  2885. From: Jarle F. Greipsland <jarle at idt.unit.no>
  2886. Date: 22 Aug 1995 10:42:07 +0200
  2887.  
  2888.   The idea behind the solution is that I need mhn to store the
  2889.   contents of the mail in the native iso8859-1 format somewhere.  I
  2890.   did this by creating a custom editor that is invoked when I reply to
  2891.   a message.  This editor extracts the body of the message (sorry, no
  2892.   multipart stuff), indents it with '> ', appends it to the draft
  2893.   message and invokes the ordinary editor on it.  Here are the details:
  2894.  
  2895.   `isorepl' is a symbolic link from my $HOME/bin-directory to `repl'.
  2896.  
  2897.   In my .mh_profile I added the following two lines:
  2898.  
  2899.     isorepl: -form isoreplcomps -editor isoextract
  2900.     isoextract-next: vi
  2901.  
  2902.   The isoreplcomps file in my Mail-directory contains:
  2903.  
  2904.     %(lit)%(formataddr %<{reply-to}%?{from}%?{sender}%?{return-path}%>)\
  2905.     %<(nonnull)%(void(width))%(putaddr To: )\n%>\
  2906.     %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
  2907.     %<(nonnull)%(void(width))%(putaddr cc: )\n%>\
  2908.     %<{fcc}Fcc: %{fcc}\n%>\
  2909.     %<{subject}Subject: Re: %{subject}\n%>\
  2910.     %<{date}In-reply-to: Your message of "\
  2911.     %<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}
  2912.          %{message-id}%>\n%>\
  2913.     --------
  2914.     #<text/plain; charset=iso-8859-1
  2915.     %<{message-id}In message %{message-id} %>\
  2916.     %<{from}%(friendly{from}) writes%|You write%>:
  2917.  
  2918.   This is a "Usenet-like" quoting style.  Modify to suit your own
  2919.   taste.  This form will setup the proper header, as well as the first
  2920.   line of the new message (In <mmmmbbbb> nnnn writes etc.).
  2921.  
  2922.   The first editor, `isoextract', looks like this:
  2923.  
  2924.     #!/bin/sh
  2925.     #
  2926.     # Called from within repl where the "editalt" variable is valid
  2927.     #
  2928.     # Point to a special MHN configuration file (save old one)
  2929.     OLDMHN="$MHN"
  2930.     MHN=$HOME/`mhparam Path`/isoquotemsg
  2931.     export MHN
  2932.  
  2933.     # Extract message body to "native" format (should be iso-8859-1)
  2934.     # > More bla bla.
  2935.     mhn -file "$editalt" -store >> $1 2>/dev/null
  2936.  
  2937.     MHN="$OLDMHN"
  2938.     myname=`basename $0`
  2939.     next=`mhparam ${myname}-next`
  2940.     if [ "x$next" != "x" ]; then
  2941.         exec $next "$@"
  2942.     fi
  2943.  
  2944.   `isoquotemsg' has just one rule; how mhn should store a text message.
  2945.  
  2946.     mhn-store-text: |sed -e 's/^[    ]*$//' \
  2947.              -e 's/^\([>|]\)\(.*\)$/>\1\2/' \
  2948.              -e 's/^\([^>|].*\)$/> \1/'
  2949.  
  2950.   This tells mhn to pipe the message to stdout, where the sed commands will
  2951.   do the reformatting/quoting. (Note: the first pair of square brackets
  2952.   contains a space and a tab.)
  2953.  
  2954.   So, when I do a `isorepl' to a message, `repl' will create the draft
  2955.   message with the proper headers (based on the `isoreplcomps' format file),
  2956.   fire off its first editor, `isoextract', with the name of the draft file as
  2957.   its parameter. `isoextract' then invokes mhn in a suitable environment,
  2958.   tells it that it is to use the file $editalt as its source, and orders it
  2959.   to store the contents.  The store-text rule in the custom MHN-file tells it
  2960.   to just pipe the message (in native iso8859-1 form) through a small set of
  2961.   sed commands, and `isoextract' uses the normal shell construct to append
  2962.   the result to the draft file.  Then, if there's defined a `isoextract-next'
  2963.   entry in the .mh_profile, isoextract exec's this editor.
  2964.  
  2965. ------------------------------
  2966.   
  2967. Subject: 05.17 Can I have aliases include aliases?
  2968. From: Bruce Cox <bruce at maths.su.oz.au>
  2969. Date: Fri, 16 Aug 1996 14:26:12 +1000
  2970.  
  2971.   Indeed, you can.
  2972.  
  2973.   You just need to remember the way MH expands aliases.  In
  2974.   particular, the right hand sides are only expanded by the aliases
  2975.   below them in your aliases file.  So, if you put in:
  2976.  
  2977.     dead-men: presidents, authors
  2978.     presidents: washington, lincoln, jefferson, roosevelt
  2979.     authors: thoreau, irving, london
  2980.  
  2981.   and type:
  2982.  
  2983.     ali dead-men
  2984.  
  2985.   then you would get the response:
  2986.  
  2987.     washington, lincoln, jefferson, roosevelt, thoreau, irving, london
  2988.  
  2989.   If you had the dead-men line after the presidents and authors aliases, the
  2990.   response would be:
  2991.  
  2992.     presidents, authors
  2993.  
  2994. ------------------------------
  2995.   
  2996. Subject: 05.18 Why doesn't mhmail understand aliases?
  2997. From: "John L. Romine" <jromine at yoyodyne.ics.uci.edu>
  2998. Date: 25 Apr 1996 16:34:10 GMT
  2999.  
  3000.   One way that mhmail might be run is from a shell script.  This means
  3001.   that the user running it might not use MH, and would not have a
  3002.   .mh_profile, etc.  If you want to use aliases with mhmail, expand
  3003.   them before passing them as arguments (e.g., "mhmail `ali joe`").
  3004.  
  3005. ------------------------------
  3006.   
  3007. Subject: 05.19 How do I send blind carbon copies?
  3008. From: Bill Wohler <wohler at newt.com>
  3009. Date: Mon, 9 Sep 1996 00:32:14 -0700
  3010.  
  3011.   Use the Bcc header field:
  3012.  
  3013.     To: your-address-here
  3014.     Bcc: member1, member2, member3, ..., membern
  3015.  
  3016.   The recipients see this:
  3017.  
  3018.     To: your-address-here
  3019.  
  3020.     ------- Blind-Carbon-Copy
  3021.  
  3022.     Content of message, with headers
  3023.  
  3024.   If you don't want the "Blind-Carbon-Copy" message, use the Dcc
  3025.   field, but this is discouraged in true blind carbon copies since the
  3026.   warning may prevent the recipient from embarrassing someone
  3027.   inadvertently.  Read the warning in (see "What is the Dcc header?").
  3028.  
  3029. ------------------------------
  3030.   
  3031. Subject: 05.20 When I forward a message, can I use its Subject?
  3032. From: Jerry Peek <jpeek at jpeek.com>
  3033. Date: Sun, 17 Nov 1996 20:16:31 -0800
  3034.  
  3035.   Obtain forwedit.
  3036.  
  3037.     ftp://ftp.ics.uci.edu/pub/mh/contrib/jpeek/forwedit
  3038.  
  3039. ------------------------------
  3040.   
  3041. Subject: 05.21 Why is the timezone field in my 'Date:' field wrong?
  3042. From: Alex Tomlinson <tomlinson at acm.com>
  3043. Date: Wed, 11 Jun 1997 09:16:41 -0500
  3044.  
  3045.   If the date field in your mail header looks like this:
  3046.  
  3047.     Date: Tue, 10 Jun 1997 15:59:03 +2228904
  3048.  
  3049.   remove -lbsd from your MH configuration, add "curses -lcurses", and
  3050.   rebuild.
  3051.  
  3052. ------------------------------
  3053.   
  3054. Subject: 05.22 Can I automate the comp -editor mhn process?
  3055. From: Soren Dayton <csdayton at gargoyle164.cs.uchicago.edu>
  3056. Date: Tue, 21 Jan 1997 17:23:32 GMT
  3057.  
  3058.   Add
  3059.  
  3060.     automhnproc: mhn
  3061.  
  3062.   to your MH profile.
  3063.  
  3064. ------------------------------
  3065.   
  3066. Subject: 05.23 How can I remove those "=20" characters when forwarding?
  3067. From: Dave Marquardt <marquard at Austin.IBM.Com>
  3068. Date: 12 Oct 2000 10:27:38 -0500
  3069.  
  3070.   Use `forw -mime'.
  3071.  
  3072. ------------------------------
  3073.   
  3074. Subject: 05.24 Can I use mh-format substitution with forw?
  3075. From: Dave Marquardt <marquard at Austin.IBM.Com>
  3076. Date: Tue, 3 Aug 1999 13:28:30 -0500 (EST)
  3077.  
  3078.   The answer is no, and the real question is why not?
  3079.  
  3080. ------------------------------
  3081.  
  3082. Subject: 06.00 ***** Posting *****
  3083. From: Bill Wohler <wohler at newt.com>
  3084. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3085.  
  3086. ------------------------------
  3087.  
  3088. Subject: 06.01 What to do with "Problems with edit - draft removed".
  3089. From: John Romine <jromine at ics.uci.edu>
  3090. Date: Mon, 1 May 1995 00:00:00 -0800
  3091.  
  3092.   If your users are using an AT&T version of "vi", it's exiting with
  3093.   non-zero status (supposedly a count of the "errors" during the edit).
  3094.   Move "vi" to "broken_vi" and put it its place :
  3095.  
  3096.     #! /bin/sh
  3097.     /usr/ucb/broken_vi "$@"
  3098.     exit 0
  3099.  
  3100.   Alternatively, compile MH with the ATTVIBUG option.
  3101.  
  3102.   Then complain to your vendor that "vi" is broken, and they should
  3103.   fix it.
  3104.  
  3105. ------------------------------
  3106.   
  3107. Subject: 06.02 Can I run my message through a program (e.g., ispell) before sending?
  3108. From: Jerry Peek <jpeek at jpeek.com>
  3109. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3110.  
  3111.   It's pretty simple.  If your speller is called myspell, use:
  3112.  
  3113.     What now? edit myspell
  3114.  
  3115.   MH will actually execute:
  3116.  
  3117.     myspell /your-mail-draft-directory/draftfile
  3118.  
  3119.   and give the entire draft message to your speller.  The header will
  3120.   probably be "misspelled," of course, though you might be able to
  3121.   tell the speller to ignore it--or you could hack up a little shell
  3122.   script to run the speller on just the message body, then tack the
  3123.   corrected body back onto the header before sending.
  3124.  
  3125.   You can automate this some more.  For example, if you want your
  3126.   speller to run after your first edit with "prompter" and also after
  3127.   you leave the "vi" editor, add these lines to your MH profile:
  3128.  
  3129.       prompter-next: myspell
  3130.       vi-next: myspell
  3131.  
  3132.   Then, at the "What now?" prompt:
  3133.  
  3134.       What now? e
  3135.  
  3136.   your speller will run.  For more info, see the mh-profile(5) man
  3137.   page or section 7.2.1 (6.2.1) of the MH book, or the URL:
  3138.  
  3139.     http://www.ics.uci.edu/~mh/book/mh/chaedi.htm#Edi
  3140.  
  3141. ------------------------------
  3142.   
  3143. Subject: 06.03 What to do with "bad address 'xxx' - no at-sign after local-part".
  3144. From: Owen Rees <rtor at ansa.co.uk>
  3145. Date: Fri, 1 Jan 1993 00:00:00 -0800
  3146.  
  3147.   You may find that post returns the following message:
  3148.  
  3149.     post: bad address 'Mr. Foo Bar <fb@somewhere.edu>' - no at-sign
  3150.     after local-part (Bar), continuing...
  3151.  
  3152.   The unquoted dot causes "Mr. Foo" to be parsed as the local part of
  3153.   the address.  Either remove the dot, or rewrite the address as
  3154.   follows:
  3155.  
  3156.     "Mr. Foo Bar" <fb@somewhere.edu>
  3157.     (Mr. Foo Bar) <fb@somewhere.edu>
  3158.     (Mr. Foo Bar) fb@somewhere.edu
  3159.  
  3160. ------------------------------
  3161.   
  3162. Subject: 06.04 Fixing "post: problem initializing server; [BHST] no servers available"
  3163. From: Peter Marvit <marvit at hplabs.hpl.hp.com>,
  3164.     Eric Bracken <bracken at bacon.performance.com>
  3165. Date: Tue, 1 Nov 1994 00:00:00 -0800
  3166.  
  3167.   The error message itself is essentially correct.  However, what this
  3168.   really means is: MH's post cannot connect to a running sendmail over
  3169.   an SMTP port (MH configured with SMTP and SENDMTS).
  3170.  
  3171.   The potential problems:
  3172.  
  3173.   1. Your local sendmail daemon is dying or not running for some
  3174.      reason.
  3175.  
  3176.   2. You use BIND and your local nameserver is not responding.
  3177.      Solution: Delete "/etc/resolv.conf."
  3178.  
  3179.   3. Your $MHLIB/mts.conf (mtstailor) has its "servers:" pointing to a
  3180.      non-existent machine or a machine which is a) not reachable or b)
  3181.      not running the sendmail daemon.
  3182.  
  3183. From: Bdale Garbee <bdale at col.hp.com>,
  3184.     Eric Bracken <bracken at bacon.performance.com>
  3185. Date: Sun, 1 May 1994 00:00:00 -0800
  3186.  
  3187.   4. The hostname localhost [127.0.0.1] is missing from /etc/hosts.
  3188.  
  3189.      Solution: add an entry for "localhost" to /etc/hosts or your DNS
  3190.      database or add the following to $MHLIB/mts.conf (mtstailor):
  3191.  
  3192.        servers: 127.0.0.1 \01localnet
  3193.  
  3194. From: Larry Daffner <ldaffner at convex.com>
  3195. Date: 3 Mar 1996 14:39:54 -0600
  3196.  
  3197.   5. Your load average is so high that sendmail is refusing connections.
  3198.  
  3199.      Solution: Change your configuration from "mta: sendmail/smtp" to
  3200.      "mta: sendmail" so that a sendmail processes is spawned to
  3201.      deliver the message.  This is a double-edged sword since the
  3202.      extra process only makes the load worse.
  3203.  
  3204. ------------------------------
  3205.   
  3206. Subject: 06.05 Fixing "post: problem initializing server; [RPLY] 503 Sender already specified"
  3207. From: Paul Pomes <ppomes at Qualcomm.com>
  3208. Date: Mon, 1 Mar 1993 00:00:00 -0800
  3209.  
  3210.   The problem in sendmail is that the RSET after the ONEX does not
  3211.   reset all the state information.  Normally sendmail fork()s after
  3212.   the Mail from: statement and a RSET causes that child to exit. This
  3213.   automatically cleans up.  If the fork() is suppressed by ONEX, then
  3214.   the source must be modified to do the cleanup.  See "srvrsmtp.c
  3215.   patch" in the Appendix.  If you don't have the sources, modify your
  3216.   MH sources to not use the ONEX verb.
  3217.  
  3218. ------------------------------
  3219.   
  3220. Subject: 06.06 Fixing "post: unexpected response; [BHST] no socket opened"
  3221. From: Steve Lembark <lembark at wrkhors.la.ca.us>, Bill Wohler <wohler at newt.com>
  3222. Date: Mon, 1 Aug 1994 00:00:00 -0800
  3223.  
  3224.   This problem happens when there is no interface defined within the
  3225.   tcp system.  A couple of workarounds include:
  3226.  
  3227.   o Use a hostname (other than the local host) instead of localhost in
  3228.     the "servers" entry of the $MHLIB/mts.conf (mtstailor) file.
  3229.   o Recompile MH with sendmail instead of sendmail/smtp (not very elegant).
  3230.  
  3231.   A better fix would be to define your tcp interface.
  3232.  
  3233.   Here, you run ifconfig and route (as root) to define the loopback
  3234.   device and route.  You should add them to rc.local so they are
  3235.   effected at every boot.
  3236.  
  3237.     # ifconfig lo 127.0.0.1            # Linux
  3238.     # ifconfig lo0 127.0.0.1        # Sun
  3239.  
  3240.     # route 127.0.0.1
  3241.  
  3242.   If all is well, "ifconfig lo" (or lo0), will show something like this
  3243.   (on my Linux system):
  3244.  
  3245.     lo        Link encap Local Loopback
  3246.           inet addr 127.0.0.1  Bcast 127.255.255.255  Mask 255.0.0.0
  3247.           UP LOOPBACK RUNNING  MTU 2000  Metric 0
  3248.           RX packets 0 errors 0 dropped 0 overrun 0
  3249.           TX packets 519 errors 0 dropped 0 overrun 0
  3250.  
  3251.   and "netstat -r" will show:
  3252.  
  3253.     # netstat -r
  3254.     Destination net/address   Gateway address    Flags RefCnt    Use Iface
  3255.     127.0.0.0                 *                  UN         0    519 lo
  3256.  
  3257.   If you're not on a network and running DNS, your /etc/hosts will
  3258.   need at least:
  3259.  
  3260.     127.0.0.1    your_host_name localhost     # loopback address
  3261.  
  3262.   Note: put your name FIRST on the localhost line.  This official name
  3263.   is used by sendmail to determine your return address.
  3264.  
  3265.   If you are on a network and running DNS, you might find that putting
  3266.   your host name in the localhost entry might gum up other things, in
  3267.   which case you'll want your hostname to have its own proper address.
  3268.  
  3269.   This might not do it though.  David Youatt <dpy at sgi.com> says that
  3270.   his network was happy but he still had the problem until he upgraded
  3271.   his system and got the latest revision of sendmail as well.  He
  3272.   says: "Turns out that that the problem I was having seems to be
  3273.   caused (at least partly, maybe entirely) by the version of sendmail
  3274.   that is shipped with IRIX 5.2 (sendmail 5.65, I think).  The version
  3275.   shipped w/IRIX 5.3 (in beta) is sendmail 8.6.9 and works fine."
  3276.  
  3277.   I'm not entirely happy with this section, so please give me some
  3278.   feedback.  If you have this problem, please send me
  3279.   <wohler at newt.com> a brief description so I'll know which problems
  3280.   and solutions seem to be the most prevalent.
  3281.  
  3282. ------------------------------
  3283.   
  3284. Subject: 06.07 How do I fix the "X-Authentication-Warning" header?
  3285. From: Bill Wohler <wohler at newt.com>
  3286. Date: Mon, 9 Sep 1996 01:32:15 -0700
  3287.  
  3288.   (See "Fixing "Sender didn't use the HELO protocol"".)
  3289.  
  3290. ------------------------------
  3291.   
  3292. Subject: 06.08 Fixing "post: unexpected response; [RPLY] 503 Need MAIL before RCPT"
  3293. From: Bjoern Stabell <bjoerns at acm.org>
  3294. Date: Mon, 1 May 1995 00:00:00 -0800
  3295.  
  3296.   I inserted:
  3297.  
  3298.     clientname: localhost
  3299.  
  3300.   in the $MHLIB/mts.conf (mtstailor) file, and that fixed the problem.
  3301.  
  3302. ------------------------------
  3303.   
  3304. Subject: 06.09 Fixing "post: problem initializing server; [BHST] premature end-of-file on socket"
  3305. From: Stefan Huebner <sh at muc.de>
  3306. Date: Wed, 11 Sep 1996 20:06:49 +0200
  3307.  
  3308.   Use spost instead of post.  To do this:
  3309.  
  3310.     % mv post post.orig
  3311.     % ln -s spost post
  3312.  
  3313. From: Chuck Mattern <cmattern at mindspring.com>
  3314. Date: Mon, 1 May 1995 00:00:00 -0800
  3315.  
  3316.   If you are running sendmail instead of smail, make sure that all
  3317.   smtp entries in /etc/inetd.conf are commented out.  If you do edit
  3318.   /etc/inetd.conf, don't forget to run to restart inetd with "kill -1
  3319.   <inetd PID>".
  3320.  
  3321. ------------------------------
  3322.   
  3323. Subject: 06.10 Fixing "Sender didn't use the HELO protocol"
  3324. From: rickert at cs.niu.edu (Neil Rickert)
  3325. Date: Tue, 20 Mar 2001 22:01:16 -0800
  3326.  
  3327.   If you are sharing your $MHLIB/mts.conf (mtstailor) file among
  3328.   several machines, and you are connecting to the local sendmail, then
  3329.   use 'localhost' as the hostname argument to the clientname parameter
  3330.   (described below).
  3331.  
  3332.   Otherwise, place mts.conf somewhere under /etc on each system, and
  3333.   install a symlink to it on the shared file system.
  3334.  
  3335. From: labrown at dg-rtp.dg.com (Lance A. Brown)
  3336. Date: 23 Apr 1996 14:43:04 -0400
  3337.  
  3338.   You can solve this by putting
  3339.  
  3340.     localname:      localhostname
  3341.     localdomain:    local.domain.name
  3342.  
  3343.   in your $MHLIB/mts.conf (mtstailor) file. This will make MH send a
  3344.   HELO string in the SMTP transaction.
  3345.  
  3346. From: Terry Manderson <terry at azure.dstc.edu.au>
  3347. Date: Mon, 1 May 1995 00:00:00 -0800
  3348.  
  3349.   Add
  3350.  
  3351.     clientname sender
  3352.  
  3353.   to $MHLIB/mts.conf (mtstailor) where sender is the name of the
  3354.   machine sending the message. The error message occurs because newer
  3355.   MTA's require SMTP's "HELO" command which MH omits in some
  3356.   configurations. When you add the above line, it forces MH to use the
  3357.   HELO command.
  3358.  
  3359. From: Bill Wohler <wohler at newt.com>
  3360. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3361.  
  3362.   You get a header like:
  3363.  
  3364.     X-Authentication-Warning: screamer.rtp.ericsson.se: Host
  3365.     rcur7.rtp.ericsson.se didn't use HELO protocol
  3366.  
  3367.   Easy possibilities are:  apply the patch to MH that comes with Sendmail
  3368.   8.X.X and makes it use HELO, or comment out the line that says
  3369.  
  3370.     Opauthwarnings
  3371.  
  3372.   in your sendmail.cf.
  3373.  
  3374. ------------------------------
  3375.   
  3376. Subject: 06.11 Fixing "post: problem initializing server; [RPLY] 553 Local configuration error, hostname not recognized as local
  3377. From: "Matthew V. J. Whalen" <whalenm at aol.net>
  3378. Date: Mon, 1 May 1995 00:00:00 -0800
  3379.  
  3380.   Change your "mts" in "conf/MH" from "sendmail/smtp" to just
  3381.   "sendmail."
  3382.  
  3383. From: Bill Wohler <wohler at newt.com>
  3384. Date: Mon, 1 May 1995 00:00:00 -0800
  3385.  
  3386.   The solution above will keep MH from using any SMTP server on your
  3387.   network. require sendmail to be installed on all machines. You could
  3388.   take advantage of the "sendmail/smtp" option to have MH talk to a
  3389.   non-local sendmail. In $MHLIB/mts.conf (mtstailor) add:
  3390.  
  3391.     servers <SMTP-server>
  3392.  
  3393.   It may also be caused by old versions of sendmail.
  3394.  
  3395. ------------------------------
  3396.  
  3397. Subject: 07.00 ***** Mail Filters *****
  3398. From: Bill Wohler <wohler at newt.com>
  3399. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3400.  
  3401. ------------------------------
  3402.  
  3403. Subject: 07.01 What mail filters are available?
  3404. From: Bill Wohler <wohler at newt.com>
  3405. Date: Sun, 11 Mar 2001 10:27:24 -0800
  3406.  
  3407.   The list currently includes slocal (included with MH), deliver,
  3408.   procmail and mailagent.  They are briefly described here.  Slocal is
  3409.   probably the most popular by virtue of being included in the
  3410.   distribution.  The next most popular entry is procmail, followed by
  3411.   deliver.
  3412.  
  3413.   Slocal comes with MH.  It can be used to process incoming mail based
  3414.   on the contents of any of the headers.  Actions include filing
  3415.   messages, running commands, printing messages on your terminal and
  3416.   so on.  The configuration is made in ~/.maildelivery.  People seem to
  3417.   have trouble with slocal bugs, and you can't use it if you don't
  3418.   have write permission on your system maildrop so a lot of people
  3419.   have opted for the alternatives, but it's easy to use and comes with
  3420.   MH.
  3421.  
  3422.   procmail is quite popular and has a very powerful configuration
  3423.   file.  However, the syntax is its own, but it is easy to learn given
  3424.   a couple of good examples.  Its advantages are its small size and
  3425.   speed.  Like deliver, procmail may be installed as a delivery agent
  3426.   so you would not even have to have a .forward file.
  3427.  
  3428.   Deliver can run any script or program (called ~/.deliver), so you
  3429.   really can do anything you want to incoming mail.  One feature that
  3430.   it sports that no other does is that you can install it as a local
  3431.   mailer in place of /bin/mail.  If it's the local mailer, you don't
  3432.   need to have a .forward--~/.deliver is run anyway.  In addition, it
  3433.   allows the system administrator to write some programs to filter
  3434.   everybody's mail.  It came with my Linux system, so installation was
  3435.   non-existent.
  3436.  
  3437.   I started with slocal, and then moved to deliver. I switched to
  3438.   procmail because of a bug in deliver (which I think has since been
  3439.   fixed) whereby a blank line would be inserted into the header before
  3440.   header fields with numbers in them.
  3441.  
  3442.   I am still using procmail and probably will do so indefinitely since
  3443.   it is powerful, there are many spam filters written in it, and it
  3444.   coexists with MH and gnus so well.
  3445.  
  3446.   My recommendation is to use the one that is installed on your system
  3447.   or get procmail. Here are the URLs for the filters mentioned in this
  3448.   document:
  3449.  
  3450.     http://www.procmail.org/
  3451.  
  3452. From: "Eric D. Friedman" <friedman at hydra.acs.uci.edu>
  3453. Date: 28 Aug 1996 08:28:46 GMT
  3454.  
  3455.   See http://www.faqs.org/faqs/mail/filtering-faq/index.html.
  3456.  
  3457. From: Stephen R. van den Berg <berg at pool.informatik.rwth-aachen.de>
  3458. Date: Mon, 1 Aug 1994 00:00:00 -0800
  3459.  
  3460.   Procmail can be used to create mail-servers, mailing lists, sort
  3461.   your incoming mail into separate folders/files (real convenient when
  3462.   subscribing to one or more mailing lists or for prioritizing your
  3463.   mail), preprocess your mail, start any programs upon mail arrival
  3464.   (e.g. to generate different chimes on your workstation for different
  3465.   types of mail) or selectively forward certain incoming mail
  3466.   automatically to someone.
  3467.  
  3468. From: Raphael Manfredi <Raphael_Manfredi at grenoble.hp.com>
  3469. Date: Tue, 28 Jul 1998 13:22:07 +0200
  3470.  
  3471.   "mailagent" is yet another mail filter, written in perl, which will
  3472.   let you do anything with your mail. It has all the features you may
  3473.   expect from a filter: mailing lists sorting, forwarding to MTA or to
  3474.   inews, pre-processing of message before saving into folder, vacation
  3475.   mode, etc.  It was initially written as an Elm-filter replacement,
  3476.   but has now enough power to also supplant MMDF's
  3477.   .maildelivery. There is also a support for @SH mail hooks, which
  3478.   allows you to automatically distribute patches or software via
  3479.   command mails.
  3480.  
  3481.   The mailagent was designed to make mail filtering as easy as it can
  3482.   be. It is highly configurable and fairly complete. Rules are
  3483.   specified in a lex-like style, with the full power of perl's regular
  3484.   expressions. The automaton supports the notion of mode, and header
  3485.   selection has many magic features built-in, to ease the rule writing
  3486.   process.
  3487.  
  3488.   The distribution comes with a set of examples, an exhaustive test
  3489.   suite, and naturally a detailed manual page. It should be noted that
  3490.   the mailagent will work even if your system administrator forbids "|
  3491.   programs" hooks in the ~/.forward, provided you have access to some
  3492.   sort of cron daemon.
  3493.  
  3494.   You can get a full email distribution of the latest release by
  3495.   sending an appropriate command to my own mailagent, such as:
  3496.  
  3497.     Subject: Command
  3498.  
  3499.     @SH maildist PATH mailagent -
  3500.  
  3501.   where PATH stands for YOUR email address, i.e. a path from me to
  3502.   you.
  3503.  
  3504.     http://www.cpan.org/authors/Raphael_Manfredi/
  3505.  
  3506. ------------------------------
  3507.   
  3508. Subject: 07.02 Why slocal writes messages to system mailbox that from(1) can't read.
  3509. From: Bill Wohler <wohler at newt.com>
  3510. Date: Mon, 1 May 1995 00:00:00 -0800
  3511.  
  3512.   Upgrade to MH 6.8 and set the RPATHS option.  Better yet, use a more
  3513.   MH-like command instead of from: "scan -file $MAIL".
  3514.  
  3515. ------------------------------
  3516.   
  3517. Subject: 07.03 Where can I read about slocal and the format of .maildelivery?
  3518. From: Bill Wohler <wohler at newt.com>
  3519. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3520.  
  3521.   See the slocal man page.
  3522.  
  3523.   Here is brief example of a .maildelivery file that stores messages
  3524.   to babble in a folder and the system mailbox, stores mh-users in a
  3525.   folder but not the system mailbox, and puts the rest in the system
  3526.   mailbox.
  3527.  
  3528.     to  mh-users  | A "$MHLIB/rcvstore -create +lists/mh-users"
  3529.     cc  mh-users  | A "$MHLIB/rcvstore -create +lists/mh-users"
  3530.     to  babble    | R "$MHLIB/rcvstore -create +lists/babble"
  3531.     cc  babble    | R "$MHLIB/rcvstore -create +lists/babble"
  3532.     default -     > ? /usr/spool/mail/wohler
  3533.  
  3534.   Your .forward file may look like (quotes necessary):
  3535.  
  3536.     "| $MHLIB/slocal -user your_login"
  3537.  
  3538.   In some implementations, the "-user your_login" is not needed.  If
  3539.   not, manually running slocal with the flag will produce an error.
  3540.  
  3541.   See also chapter 12 (11) in the MH book, or the URL:
  3542.  
  3543.     http://www.ics.uci.edu/~mh/book/mh/tocs/prmaau.htm
  3544.  
  3545.   Alternatives to slocal include deliver, procmail, and mailagent.
  3546.   (See "What mail filters are available?")
  3547.  
  3548. ------------------------------
  3549.   
  3550. Subject: 07.04 How do I debug my .maildelivery file?
  3551. From: Bill Wohler <wohler at newt.com>
  3552. Date: Mon, 1 Mar 1993 00:00:00 -0800
  3553.  
  3554.   Use as many of the following as necessary.
  3555.  
  3556.   Put a message into a file and call slocal directly on it.
  3557.  
  3558.     $MHLIB/slocal -user $USER -verbose -debug < test-msg
  3559.  
  3560.   Modify your .forward to look like:
  3561.  
  3562.     "|/bin/sh -c 'exec >> /tmp/out 2>&1;
  3563.     $MHLIB/slocal -user $USER -verbose -debug'"
  3564.  
  3565.   Or modify a rule in .maildelivery to look like this:
  3566.  
  3567.     to foo | R "set -xv; exec >/tmp/out 2>&1; $MHLIB/rcvstore +foo"
  3568.  
  3569.   The previous examples are broken up for readability; the text must
  3570.   appear on one line.
  3571.  
  3572.   See also MH book section 12.11 (11.11), or the URL:
  3573.  
  3574.     http://www.ics.uci.edu/~mh/book/mh/debugti.htm
  3575.  
  3576. ------------------------------
  3577.   
  3578. Subject: 07.05 Why isn't slocal working?
  3579. From: Bill Wohler <wohler at newt.com>
  3580. Date: Mon, 1 Mar 1993 00:00:00 -0800
  3581.  
  3582.   If slocal doesn't appear to be doing anything, run the following
  3583.  
  3584.     $MHLIB/slocal -user your_login -verbose < file
  3585.  
  3586.   where "file" is some message in a mail folder.  If you get something
  3587.   like:
  3588.  
  3589.     .maildelivery: ownership/modes bad (0, 154,154,0100666)
  3590.  
  3591.   your .maildelivery is writable by too many people.  Make it writable
  3592.   only by you by running "chmod 644 .maildelivery".
  3593.  
  3594.   See also "How do I debug my .maildelivery file?"
  3595.  
  3596. ------------------------------
  3597.   
  3598. Subject: 07.06 Are there any good biff applications for MH?
  3599. From: Richard Coleman <coleman at math.gatech.edu>
  3600. Date: 07 Jul 1997 03:31:42 -0400
  3601.  
  3602.   nmh (new MH) has an additional command (flist) that will tell you
  3603.   which folders have unseen messages.  I can't imagine using MH
  3604.   without it.
  3605.  
  3606. From: crow at tivoli.com (David L. Crow)
  3607. Date: 7 Jul 97 09:36:32 GMT
  3608.  
  3609.   I have used the following X resource with xbiff before:
  3610.  
  3611.     xbiff*checkCommand: grep -q '^unread' `mhpath +inbox`/.mh_sequences \
  3612.                         && exit 0 || exit 2
  3613.  
  3614.   This should be all one line, but I split it with a line continuation
  3615.   character for readability.
  3616.  
  3617. ------------------------------
  3618.  
  3619. Subject: 08.00 ***** mh-e *****
  3620. From: Bill Wohler <wohler at newt.com>
  3621. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3622.  
  3623. ------------------------------
  3624.  
  3625. Subject: 08.01 I have a question about mh-e
  3626. From: Bill Wohler <wohler at newt.com>
  3627. Date: Sat, 3 Mar 2001 13:51:29 -0800
  3628.  
  3629.   Let me send you over to:
  3630.  
  3631.     http://mh-e.sourceforge.net/
  3632.  
  3633.   This is the SourceForge mh-e project. It has mailing lists and files
  3634.   to download, and will let you submit patches or support requests.
  3635.  
  3636.   The Support Requests section may already contain an answer to your
  3637.   question. If not, you can post your question:
  3638.  
  3639.     http://sourceforge.net/tracker/?group_id=13357&atid=213357
  3640.  
  3641. ------------------------------
  3642.  
  3643. Subject: 09.00 ***** Xmh *****
  3644. From: Bill Wohler <wohler at newt.com>
  3645. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3646.  
  3647. ------------------------------
  3648.  
  3649. Subject: 09.01 How can I get xmh to use Emacs as the editor?
  3650. From: Bob Ellison <ellison at sei.cmu.edu>
  3651. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3652.  
  3653.   The modifications to xmh to support an external editor, annotations,
  3654.   and an append command can be found in the these places.
  3655.  
  3656.     ftp://ftp.x.org/R5contrib/xmh-mods-R5-1.7.Z                37k
  3657.     ftp://ftp.sei.cmu.edu/pub/xmh/xmh-mods-R5-1.7.Z            37k
  3658.     ftp://ftp.sei.cmu.edu/pub/xmh/xmh-mods-R6-1.0.Z            37k
  3659.  
  3660. From: Andrew Wason <aw at bae.bellcore.com>
  3661. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3662.  
  3663.   As of R5, xmh has a new action proc called XmhShellCommand.  A
  3664.   string parameter will be executed as a shell command with the
  3665.   currently selected messages as parameters (or the current message if
  3666.   there are no selected messages).
  3667.  
  3668.   Using this new action, a couple of shell scripts, a window version
  3669.   of emacs (e.g. xemacs) and some elisp code, xmh can use emacs as its
  3670.   editor instead of the built in Athena text widget editor.  This
  3671.   doesn't require any source code changes to xmh.  These are included
  3672.   in the Appendix "Switching xmh's editor".
  3673.  
  3674. ------------------------------
  3675.   
  3676. Subject: 09.02 Does xmh support subfolders?
  3677. From: Steve Malowany <malowany at cenparmi.concordia.ca>
  3678. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3679.  
  3680.   Yes. Create one by invoking "Create Folder" as usual, and enter
  3681.   something like: existing-folder/new-sub-folder. You can then access
  3682.   the subfolder by popping up a menu over the "existing-folder" button
  3683.   item.
  3684.  
  3685.   But:
  3686.  
  3687. From: John Cooper <jsc at saxon.Eng.Sun.COM>
  3688. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3689.  
  3690.   The R5 version of xmh does *not* handle nested sub-folders.  If you
  3691.   create a folder as 'grab/some/bandwidth', xmh displays this
  3692.   folder name for the remainder of the session where it was created,
  3693.   BUT if you later re-run xmh, the folder is no longer visible to xmh.
  3694.  
  3695.   See also MH book section 15.6.2 (15.6.2), or the URL:
  3696.  
  3697.     http://www.ics.uci.edu/~mh/book/xmh/orgfol.htm#FolaSub
  3698.  
  3699. ------------------------------
  3700.   
  3701. Subject: 09.03 How do I precede included messages with ">" when replying in xmh?
  3702. From: Len Makin <len at mel.dit.csiro.au>
  3703. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3704.  
  3705.   Include the following line in your ~/app-defaults/XMh file:
  3706.  
  3707.     Xmh*replyInsertFilter: "sed 's/^/> /'"
  3708.  
  3709.   or,
  3710.  
  3711.     Xmh.ReplyInsertFilter: $MHLIB/mhl -form repl.filter
  3712.  
  3713. From: Andy Linton <andy.linton at comp.vuw.ac.nz>
  3714. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3715.  
  3716.   Using this means that you can chose to insert the original by use of
  3717.   the "Insert" button in the Draft message pane.  See "How do I
  3718.   include messages in repl with or without ">"?" to find examples of
  3719.   repl.filter.
  3720.  
  3721.   See also MH book sections 15.1.4 (15.1.4), 16.3.3 (16.3.3), or the URLs:
  3722.  
  3723.     http://www.ics.uci.edu/~mh/book/xmh/senmai.htm#MorRep
  3724.     http://www.ics.uci.edu/~mh/book/xmh/resfun.htm#Rep
  3725.  
  3726. ------------------------------
  3727.  
  3728. Subject: Glossary
  3729. From: Bill Wohler <wohler at newt.com>
  3730. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3731.  
  3732.   MH    Mail Handler
  3733.   MHLIB    Where MH support routines and files are kept; usually /usr/lib/mh
  3734.     or /usr/local/lib/mh.
  3735.   POP3    Post Office Protocol, RFC 1938
  3736.   MMDF    Multi-channel Memo Distribution Facility
  3737.   MIME    Multipurpose Internet Mail Extensions, RFC 1521
  3738.   IMAP    Internet Message Access Protocol, RFC 1064, 1176
  3739.   TIS    Trusted Information Systems
  3740.   PEM    Privacy Enhanced Mail
  3741.   PGP    Pretty Good Privacy
  3742.   SMTP    Simple Mail Transport Protocol (STD 10; RFC 821)
  3743.  
  3744. ------------------------------
  3745.   
  3746. Subject: Acknowledgments
  3747. From: Bill Wohler <wohler at newt.com>
  3748. Date: Mon, 9 Sep 1996 01:37:27 -0700
  3749.  
  3750. I'd like to thank the following people for providing ideas on the
  3751. layout of this article:
  3752.  
  3753. Joe Wells <jbw at bigbird.bu.edu>        Richard M. Stallman <rms at gnu.org>
  3754. David Elliott <dce at smsc.sony.com>     Tom Christiansen <tchrist at perl.com>
  3755. Eugene N. Miya <eugene at nas.nasa.gov>
  3756.  
  3757. We are also grateful to Kim F. Storm <storm at olicom.dk> and Edward
  3758. Vielmetti <emv at ox.com> and the folks mentioned in the text of this
  3759. document who have provided answers or other information to make this a
  3760. better document.  I regret that it is possible that some names have
  3761. been accidently omitted.  I would also like to thank all the readers
  3762. of comp.mail.mh.
  3763.  
  3764. I'd also like to thank John Romine <jromine at yoyodyne.ICS.UCI.EDU> for
  3765. maintaining MH and the MH Web page, Jerry Peek <jpeek at jpeek.com> for
  3766. writing the MH bible and for all his hard work with the entire MH
  3767. project, Stephen Gildea <gildea at stop.mail-abuse.org> for maintaining mh-e
  3768. in years past and always sending me lots of great comments, Kimmo
  3769. Suominen <kim at tac.nyc.ny.us> for maintaining the MH patch page, and
  3770. Richard Coleman <coleman at math.gatech.edu> for taking MH to nmh.
  3771.  
  3772. ------------------------------
  3773.   
  3774. Subject: Switching xmh's editor
  3775. From: Andrew Wason <aw at bae.bellcore.com>
  3776. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3777.  
  3778. #! /bin/sh
  3779. # This is a shell archive.  Remove anything before this line, then unpack
  3780. # it by saving it into a file and typing "sh file".  To overwrite existing
  3781. # files, type "sh file -c".  You can also feed this as standard input via
  3782. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  3783. # will see the following message at the end:
  3784. #        "End of shell archive."
  3785. # Contents:  README Xmh.ad xmh-command.el xmhcommand xmhemacs
  3786. # Wrapped by aw@jello on Fri Nov 15 17:10:34 1991
  3787. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  3788. if test -f 'README' -a "${1}" != "-c" ; then
  3789.   echo shar: Will not clobber existing file \"'README'\"
  3790. else
  3791. echo shar: Extracting \"'README'\" \(1269 characters\)
  3792. sed "s/^X//" >'README' <<'END_OF_FILE'
  3793. XThis is a short description of what to do with each of the enclosed files.
  3794. X
  3795. XXmh.ad
  3796. X  Merge this in with your xmh resources.  If you already have
  3797. X  user defined buttons, then you may need to renumber the
  3798. X  buttons in this resource file.
  3799. X
  3800. Xxmh-command.el
  3801. X  Byte compile this file and put it in your GNU emacs load-path.
  3802. X
  3803. Xxmhcommand
  3804. Xxmhemacs
  3805. X  Put these somewhere in your path.
  3806. X
  3807. X
  3808. XOnce you have installed these, restart the R5 xmh with the new
  3809. Xresources.  When you press the repl, forw or comp buttons
  3810. Xan xemacs window will come up with your draft message.
  3811. X
  3812. XOnce you have written your mail, save it and exit GNU emacs (C-xC-c).
  3813. XYou will be prompted if you want to send the current message.
  3814. XIf you enter 'y', the message will be sent and the output will
  3815. Xbe displayed in an emacs window (in case you use -verbose or -snoop).
  3816. XThen you will be prompted to exit emacs.  Enter 'y' when you are ready.
  3817. X
  3818. XIf you answered 'n' when prompted to send the message,
  3819. Xthen the draft message will be deleted and emacs will exit.
  3820. X
  3821. XYou can modify the Xmh.ad resources to add more buttons.
  3822. XAny MH command which accepts "+folder msg" can be used
  3823. X(e.g. a replx shell script which includes the body of the
  3824. Xmessage being replied to can be bound to a replx button)
  3825. X
  3826. X
  3827. XAndrew Wason
  3828. Xaw at bae.bellcore.com
  3829. END_OF_FILE
  3830. if test 1269 -ne `wc -c <'README'`; then
  3831.     echo shar: \"'README'\" unpacked with wrong size!
  3832. fi
  3833. # end of 'README'
  3834. fi
  3835. if test -f 'Xmh.ad' -a "${1}" != "-c" ; then
  3836.   echo shar: Will not clobber existing file \"'Xmh.ad'\"
  3837. else
  3838. echo shar: Extracting \"'Xmh.ad'\" \(457 characters\)
  3839. sed "s/^X//" >'Xmh.ad' <<'END_OF_FILE'
  3840. XXmh*CommandButtonCount:            3
  3841. X
  3842. XXmh*commandBox.button1.label:        repl
  3843. XXmh*commandBox.button1.translations:\
  3844. X    #override\n\
  3845. X    <Btn1Up>:    XmhShellCommand(xmhcommand y repl) unset()
  3846. X
  3847. XXmh*commandBox.button2.label:        forw
  3848. XXmh*commandBox.button2.translations:\
  3849. X    #override\n\
  3850. X    <Btn1Up>:    XmhShellCommand(xmhcommand y forw) unset()
  3851. X
  3852. XXmh*commandBox.button3.label:        comp
  3853. XXmh*commandBox.button3.translations:\
  3854. X    #override\n\
  3855. X    <Btn1Up>:    XmhShellCommand(xmhcommand n comp) unset()
  3856. END_OF_FILE
  3857. if test 457 -ne `wc -c <'Xmh.ad'`; then
  3858.     echo shar: \"'Xmh.ad'\" unpacked with wrong size!
  3859. fi
  3860. # end of 'Xmh.ad'
  3861. fi
  3862. if test -f 'xmh-command.el' -a "${1}" != "-c" ; then
  3863.   echo shar: Will not clobber existing file \"'xmh-command.el'\"
  3864. else
  3865. echo shar: Extracting \"'xmh-command.el'\" \(1294 characters\)
  3866. sed "s/^X//" >'xmh-command.el' <<'END_OF_FILE'
  3867. X;;; These functions are for use with xemacs and xmh.
  3868. X;;; The R5 xmh has a new action - XmhShellCommand which executes
  3869. X;;; a shell command with the current msg as an arg.
  3870. X;;; By executing something like:
  3871. X;;;    XmhShellCommand(xmhcommand repl)
  3872. X;;; you can use xemacs as your editor with xmh.
  3873. X;;;
  3874. X;;; The following elisp functions perform the basic whatnowproc functionality
  3875. X;;; (quitting and deleting, sending)
  3876. X;;;
  3877. X;;; Andrew Wason  aw at bae.bellcore.com
  3878. X
  3879. X
  3880. X;;; Override C-xC-c
  3881. X(define-key indented-text-mode-map "\C-x\C-c" 'xmh-command-send-or-delete)
  3882. X
  3883. X
  3884. X(setq mhdraft (getenv "mhdraft"))    ; save the filename of the draft
  3885. X
  3886. X
  3887. X(find-file mhdraft)            ; load the draft letter
  3888. X(indented-text-mode)
  3889. X(setq draft-buffer (current-buffer))    ; save the buffer the draft is in
  3890. X
  3891. X
  3892. X(defun xmh-command-send-or-delete ()
  3893. X  "Prompt to send or delete letter, then quit."
  3894. X  (interactive)
  3895. X  (set-buffer draft-buffer)
  3896. X  (if (y-or-n-p "Send message? ")
  3897. X      (progn
  3898. X    (save-buffer)                ; save the draft buffer
  3899. X    (message "Sending...")
  3900. X    (pop-to-buffer "MH mail delivery"); pop to a buffer for "send" output
  3901. X    (erase-buffer)
  3902. X    (call-process "send" nil t t mhdraft)    ; call MH "send"
  3903. X    (if (y-or-n-p "Exit? ")
  3904. X        (kill-emacs)))            ; exit emacs
  3905. X    (delete-file mhdraft)            ; delete the draft letter
  3906. X    (kill-emacs)))                ; exit emacs
  3907. END_OF_FILE
  3908. if test 1294 -ne `wc -c <'xmh-command.el'`; then
  3909.     echo shar: \"'xmh-command.el'\" unpacked with wrong size!
  3910. fi
  3911. # end of 'xmh-command.el'
  3912. fi
  3913. if test -f 'xmhcommand' -a "${1}" != "-c" ; then
  3914.   echo shar: Will not clobber existing file \"'xmhcommand'\"
  3915. else
  3916. echo shar: Extracting \"'xmhcommand'\" \(669 characters\)
  3917. sed "s/^X//" >'xmhcommand' <<'END_OF_FILE'
  3918. X#!/bin/sh
  3919. X# This shell should be invoked by the xmh XmhShellCommand() action as
  3920. X#   XmhShellCommand(xmhcommand y repl)
  3921. X#   XmhShellCommand(xmhcommand n comp) etc.
  3922. X# If the second arg is y, then the message list will be used.
  3923. X
  3924. X# We invoke the passed MH command on the identified message
  3925. X# (we must strip the message number and folder from the pathname)
  3926. X(if [ $1 = "y" ]
  3927. Xthen
  3928. X    $2 -whatnowproc xmhemacs +`dirname \`echo $3 | \
  3929. X        sed "s;\\\`mhpath +\\\`/;;"\`` `basename $3`
  3930. X
  3931. X# You can use this more readable version instead if you have ksh
  3932. X#    $2 -whatnowproc xmhemacs +$(dirname $(echo $3 | \
  3933. X#        sed "s;$(mhpath +)/;;")) $(basename $3)
  3934. X
  3935. Xelse
  3936. X    $2 -whatnowproc xmhemacs
  3937. Xfi)&
  3938. END_OF_FILE
  3939. if test 669 -ne `wc -c <'xmhcommand'`; then
  3940.     echo shar: \"'xmhcommand'\" unpacked with wrong size!
  3941. fi
  3942. chmod +x 'xmhcommand'
  3943. # end of 'xmhcommand'
  3944. fi
  3945. if test -f 'xmhemacs' -a "${1}" != "-c" ; then
  3946.   echo shar: Will not clobber existing file \"'xmhemacs'\"
  3947. else
  3948. echo shar: Extracting \"'xmhemacs'\" \(116 characters\)
  3949. sed "s/^X//" >'xmhemacs' <<'END_OF_FILE'
  3950. X#!/bin/sh
  3951. X# Invoke xemacs and load the xmh-command.el stuff.
  3952. X# xmhemacs is used by xmhcommand
  3953. Xxemacs -l xmh-command
  3954. END_OF_FILE
  3955. if test 116 -ne `wc -c <'xmhemacs'`; then
  3956.     echo shar: \"'xmhemacs'\" unpacked with wrong size!
  3957. fi
  3958. chmod +x 'xmhemacs'
  3959. # end of 'xmhemacs'
  3960. fi
  3961. echo shar: End of shell archive.
  3962. exit 0
  3963.  
  3964. ------------------------------
  3965.   
  3966. Subject: babyl2mh.pl
  3967. From: Vivek Khera <khera at cs.duke.edu>
  3968. Date: Fri, 1 Mar 1991 13:03:15 -0800
  3969.  
  3970. #!/usr/gnu/bin/perl
  3971. # incorporate an RMAIL babyl file into an MH folder
  3972. #
  3973. # usage: babyl2mh +folder babyl-file
  3974. #
  3975. # V. Khera <khera at cs.duke.edu> 17-JUL-1991
  3976.  
  3977. # where to find rcvstore
  3978. $rcvstore = "/usr/local/lib/mh/rcvstore";
  3979.  
  3980. #
  3981. # pull out command line args
  3982. #
  3983. die "usage: babyl2mh +folder babyl-file\n" unless @ARGV == 2;
  3984.  
  3985. $folder = shift;
  3986. # make sure folder name starts with a "+"
  3987. (substr($folder,0,1) eq "+") || (substr($folder,0,0) = "+");
  3988. $bfname = shift;
  3989.  
  3990. print "Incorporating RMAIL file $bfname into MH folder $folder\n";
  3991.  
  3992. #
  3993. # read in babyl file.
  3994. #
  3995. $/ = "\037";    # this separates the records in a babyl file
  3996. $* = 1;        # records are multi-lines
  3997.  
  3998. open(BABYL,$bfname) || die "Couldn't open $bfname\n";
  3999.  
  4000. $_ = <BABYL>;    # discard header.
  4001.  
  4002. $msgnum = 0;
  4003.  
  4004. while (<BABYL>) {
  4005.   chop;        # get rid of delimeter
  4006.   s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//;    # remove duplicate header information
  4007.   open(RCVSTORE,"|" . $rcvstore . " $folder");
  4008.   print RCVSTORE $_;
  4009.   $msgnum++;
  4010.   print "Message $msgnum done.\n";
  4011. }
  4012.  
  4013. ------------------------------
  4014.   
  4015. Subject: inco - babyl to MH converter
  4016. From: Juergen Nickelsen <nickel at cs.tu-berlin.de>
  4017. Date: Fri, 1 Mar 1991 13:03:15 -0800
  4018.  
  4019. #!/bin/sh
  4020. # Usage: inco [from [folder]]
  4021. # "from" defaults to $HOME/Mail/outbound, "folder" to +inbox.
  4022.  
  4023. lispfile=/tmp/inco.$$.el
  4024. input=${1-$HOME/Mail/outbound}
  4025. tmpmbox=/tmp/inc.$$.mbox
  4026. folder=${2-+inbox}
  4027.  
  4028. if [ $# -ge 3 ]; then
  4029.     echo Usage: `basename $0` [ from [ folder ]]
  4030.     exit 2
  4031. fi
  4032.  
  4033. trap "rm -f $lispfile $tmpmbox ; exit 1" 1 2 15
  4034.  
  4035. touch $tmpmbox
  4036. chmod 600 $tmpmbox
  4037.  
  4038. echo '(rmail-input "'$input'")
  4039. (rmail-last-message)
  4040. (setq last (rmail-what-message))
  4041. (rmail-show-message 1)
  4042. (while (not (equal (rmail-what-message) last))
  4043.   (rmail-output "'$tmpmbox'")
  4044.   (rmail-delete-forward nil))
  4045. (rmail-output "'$tmpmbox'")
  4046. (kill-buffer (current-buffer))
  4047. ' > $lispfile
  4048.  
  4049. emacs -batch -l $lispfile
  4050. inc -file $tmpmbox $folder
  4051.  
  4052. > $input
  4053. rm -f $lispfile $tmpmbox
  4054.  
  4055. ------------------------------
  4056.   
  4057. Subject: t2h - add hyperlinks to message viewed
  4058. From: TANAKA Tomoyuki <tanaka at step.mother.com>
  4059. Date: Mon, 13 Sep 1999 11:35:43 -0600
  4060.  
  4061. #! /bin/sed -f
  4062. # "t2h" by TT  news:alt.tanaka-tomoyuki  http://listen.to/TT
  4063. # USE: t2h <file.txt >file.html
  4064. # Or:  show | t2h | lynx -
  4065.  
  4066. s/&/\&/g
  4067. s/</\</g
  4068. s/>/\>/g
  4069.  
  4070. s/http:[^ "&)   ]*/<a href="&">&<\/a>/g
  4071. s/news:[^ "&)   ]*/<a href="&">&<\/a>/g
  4072. s/ftp:[^ "&)    ]*/<a href="&">&<\/a>/g
  4073. s/telnet:[^ "&) ]*/<a href="&">&<\/a>/g
  4074.  
  4075. 1i\
  4076. <PRE>
  4077.  
  4078. $a\
  4079. </PRE>
  4080.  
  4081. ------------------------------
  4082.   
  4083. Subject: srvrsmtp.c patch
  4084. From: Paul Pomes <ppomes at Qualcomm.com>
  4085. Date: Fri, 1 Mar 1991 13:03:15 -0800
  4086.  
  4087. >From the 5.67 sources:
  4088.  
  4089.   *** srvrsmtp.c-    Mon Feb 22 12:25:54 1993
  4090.   --- srvrsmtp.c    Mon Feb 22 12:29:09 1993
  4091.   ***************
  4092.   *** 384,389 ****
  4093.   --- 384,395 ----
  4094.               message("250", "Reset state");
  4095.               if (InChild)
  4096.                   finis();
  4097.   +
  4098.   +              /* clean up a bit if running in parent */
  4099.   +              hasmail = FALSE;
  4100.   +              dropenvelope(CurEnv);
  4101.   +              CurEnv = newenvelope(CurEnv);
  4102.   +              CurEnv->e_flags = BlankEnvelope.e_flags;
  4103.               break;
  4104.  
  4105.             case CMDVRFY:        /* vrfy -- verify address */
  4106.  
  4107. ------------------------------
  4108.   
  4109. Subject: IRIX config file
  4110. From: Jack Repenning <jackr at informix.com>
  4111. Date: 25 Jul 1995 02:35:41 GMT
  4112.  
  4113. # Irix 5.3 (based on examples/sys5r4)
  4114. bboards    on
  4115. bin    /usr/local/bin/mh
  4116. cc    cc
  4117. ccoptions -g
  4118. chown /bin/chown
  4119. curses    -lcurses
  4120. etc    /usr/local/lib/mh
  4121. ldoptions -L/usr/local/lib/mh
  4122. mail    /usr/mail
  4123. mailgroup: mail
  4124. manuals    local
  4125. mts    sendmail/smtp
  4126. pop on
  4127. popdir /usr/local/bin
  4128. ranlib off
  4129. #sharedlib sys5
  4130. #slibdir /usr/local/lib/mh
  4131. signal void
  4132. sprintf    int
  4133. options BIND
  4134. options DBMPWD
  4135. options DUMB
  4136. options FOLDPROT='"0700"'
  4137. options MHE
  4138. options MHRC
  4139. options MIME
  4140. options MORE='"/usr/bsd/more"'
  4141. options MSGPROT='"0600"'
  4142. options RENAME
  4143. options RPATHS
  4144. options SBACKUP='"\\#"'
  4145. #options SENDMTS
  4146. options SGI
  4147. #options SMTP
  4148. options SOCKETS
  4149. options    SVR4
  4150. options    SYS5
  4151. options    SYS5DIR
  4152. options UNISTD
  4153. options _XOPEN_SOURCE
  4154. options VSPRINTF
  4155.  
  4156. From: David Paschich <dpassage at bigbook.com>
  4157. Date: 23 Apr 96 21:27:12 GMT
  4158.  
  4159. # @(#)$Id: mh.faq,v 2001.07.2.1 2001/07/23 06:33:32 wohler Exp $
  4160. # a 4.2BSD VAX system running SendMail
  4161. bin    /usr/local/bin/mh
  4162. bboards    off
  4163. etc    /usr/local/lib/mh
  4164. mail    /var/mail
  4165. manuals    local
  4166. mandir    /usr/local/man
  4167. chown    /sbin/chown
  4168. ranlib    off
  4169. mts    sendmail
  4170. signal    void
  4171. options    BIND LOCKF FOLDPROT='"0700"' MHE MHRC MORE='"/usr/bsd/more"'
  4172. options MSGPROT='"0600"' RPATHS SENDMTS SGI SMTP SOCKETS SYS5
  4173. options TYPESIG="void" ncr MIME VSPRINTF UNISTD SYSVR4 SYS5DIR
  4174.  
  4175. ------------------------------
  4176.   
  4177. Subject: HP-UX 10.20 config file
  4178. From: Marko Heikkinen <hema at iki.fi>
  4179. Date: 06 Jan 1997 17:19:07 +0000
  4180.  
  4181. bin     /opt/mail/bin
  4182. bboards on
  4183. etc     /opt/mail/lib/mh
  4184. editor  prompter
  4185. remove  mv -f
  4186. mail    /var/mail
  4187. mandir  /opt/man
  4188. manuals standard
  4189. chown   /bin/chown
  4190. cc      cc
  4191. ccoptions       +DA1.0 +DS1.0
  4192. curses  -lcurses
  4193. mts     sendmail/smtp
  4194. pop     off
  4195. slibdir: /opt/mail/lib
  4196. options SYS5
  4197. options MHE 
  4198. options MIME
  4199. options ATZ
  4200. options BIND
  4201. options MHE
  4202. options MIME
  4203. options ATZ
  4204. options BIND
  4205. options MHE
  4206. options MHRC
  4207. options MORE='"/opt/gnu/bin/less"'
  4208. options MSGPROT='"0600"'
  4209. options NDIR
  4210. options NTOHLSWAP
  4211. options POPUUMBOX
  4212. options SOCKETS
  4213. options SYS5
  4214. options TZNAME
  4215. options TYPESIG=void
  4216. options VSPRINTF
  4217. options WHATNOW
  4218. options _STRINGS
  4219. signal void
  4220. curses  -lcurses -ltermlib
  4221. sprintf int
  4222.  
  4223. ------------------------------
  4224.  
  4225. Subject: Removing duplicate messages (Bourne)
  4226. From: Jerry Peek <jpeek at jpeek.com>
  4227. Date: 20 Nov 1995 18:51:24 GMT
  4228.  
  4229.   Here's a simple-minded Bourne shell version.  It uses
  4230.   "scan" to get the message number and message-id of each message.  If
  4231.   a message has the same message-id as the previous message, the
  4232.   script adds its message number to the "remove" shell variable.
  4233.  
  4234.  
  4235.     #!/bin/sh
  4236.     lastmsgid=hahahaha
  4237.     remove=
  4238.     scan -width 300 -format '%(msg) %{message-id}' |
  4239.     while read msg msgid; do
  4240.         if [ "$msgid" = "$lastmsgid" ]; then
  4241.         remove="$remove $msg"
  4242.         else
  4243.         lastmsgid="$msgid"
  4244.         fi
  4245.     done
  4246.     rmm $remove
  4247.  
  4248.   That's pretty simple-minded.  For example, if the $remove variable
  4249.   gets too big, your system may complain.  And I'm sure there are some
  4250.   more-efficient ways to find the list of duplicate message-ids.  But
  4251.   that's the idea.
  4252.   
  4253. Subject: Removing duplicate messages (Perl)
  4254. From: rtor at ansa.co.uk (Owen Rees)
  4255. Date: 20 Nov 1995 12:39:47 GMT
  4256.  
  4257.   I wrote a perl script to do this some time ago. All the usual dire
  4258.   warnings about destructive technology apply - take a backup, do it on
  4259.   a copy, try it on a small test case first etc. Don't use this script
  4260.   unless you are prepared to accept the consequences.
  4261.  
  4262. #!/usr/local/bin/perl
  4263.  
  4264. $version = "rmmdup 1";
  4265.  
  4266. if (@ARGV == 0) { $folder = ""; }
  4267. elsif (@ARGV == 1) { $folder = $ARGV[0];
  4268.                      unless ( $folder =~ /^\+.+$/ )
  4269.                       { die "usage $0 [+folder]\n"; };
  4270.                    }
  4271. else { die "usage $0 [+folder]\n"; };
  4272.  
  4273. $rmmlist = "";
  4274.  
  4275. open (scan, "scan $folder -format '%(msg) %{message-id}'|");
  4276. while (<scan>)
  4277.  { if ( ($msg,$msgid) = /^(\d+) (<.*>)$/)
  4278.     { if ($msgs{$msgid})
  4279.        { print "$msg duplicates $msgs{$msgid}\n";
  4280.          $rmmlist .= " $msg";
  4281.        }
  4282.       else { $msgs{$msgid} = $msg; };
  4283.     };
  4284.  };
  4285. if ( $rmmlist ) { exec "rmm $folder $rmmlist"; };
  4286. exit;
  4287.  
  4288. Local Variables:
  4289. mode: outline
  4290. outline-regexp: "^Subject:"
  4291. fill-prefix: "  "
  4292. End:
  4293.