mh for Linux?

mh for Linux?

Post by Andy Peters » Fri, 14 Mar 1997 04:00:00



Does anybody know if mh is ported to Linux?  If so, is there a
site carrying the binaries, and could somebody please point me
to that site?

      / Andy

 
 
 

mh for Linux?

Post by Peter N. M. Hanste » Fri, 14 Mar 1997 04:00:00




>Does anybody know if mh is ported to Linux?  If so, is there a
>site carrying the binaries, and could somebody please point me
>to that site?

mh as in "Message Handler"? here are the first few lines of what
"man mh" produces on my redhat system:

MH(1)                                                       MH(1)  

NAME                                                              
       mh - Message Handler                                        

SYNOPSIS                                                          
       any MH command                                              

DESCRIPTION                                                        
       MH  is  the  name  of  a powerful message handling system.  
       Rather then being a single comprehensive program, MH  con-  
       sists of a collection of fairly simple single-purpose pro-  
       grams to send, receive, save, and retrieve messages.   The  

so if nothing else works, you could get a redhat cd! ;-)

- Peter
--

Datadokumentasjon A/S, Bredsgaarden 2, N-5003 Bergen, Norway
Tel: +47 55 32 08 02                    Fax: +47 55 32 14 95

 
 
 

mh for Linux?

Post by John Got » Fri, 21 Mar 1997 04:00:00



Quote:>Does anybody know if mh is ported to Linux?  If so, is there a
>site carrying the binaries, and could somebody please point me
>to that site?

Grab Debian's port of mh 6.8.4 and compile it yourself:

ftp://ftp.debian.org/pub/linux/distributions/debian/rex/source/mail/m...
ftp://ftp.debian.org/pub/linux/distributions/debian/rex/source/mail/m...

You might need the following patch as well:


Subject: Re: ^Z/fg problem revisited -- SIGCHLD semantics
In-reply-to: Your message of "Sun, 22 Dec 1996 00:04:51 EST."


X-URL: <http://www.arctic.org/>
Date: Sat, 21 Dec 1996 22:02:42 -0800


I doubt it, you can reproduce it with ed, elvis, and vim.  But the
fix for mh is easy -- I'll include it in case you're interested.

Dean

What follows is a patch for pidwait() which removes the WUNTRACED flag
from the waitpid() call.  Given that pidwait is supposed to return when
the child exits, it shouldn't be returning when the child is just suspended.
I'm not sure how that got into the code... and I'm not terribly familiar
with mh's source.  So maybe you should submit this to whomever works on it
since I doubt it's just a linux problem.

To see this bug in action use comp with vi (vim or elvis) or ed.  Then
do ^Z/fg several times and eventually comp will think the editor died
and it will exit for no good reason.

This is based on mh-6.8.4-2 from ftp.debian.org somewhere.

Dean

*** mh-6.8.4/sbr/pidwait.c.dist Tue Nov 30 20:01:26 1993
--- mh-6.8.4/sbr/pidwait.c      Sat Dec 21 17:24:11 1996
***************
*** 33,39 ****
      }

  #ifdef        SVR4
!     pid = waitpid (id, &status, WUNTRACED);
  #else
      while ((pid = wait (&status)) != NOTOK && pid != id)
        continue;
--- 33,39 ----
      }

  #ifdef        SVR4
!     pid = waitpid (id, &status, 0);
  #else
      while ((pid = wait (&status)) != NOTOK && pid != id)
        continue;

--

Senior, EE/Motif Programmer/SysAdmin/Linux Hacker/Amateur Radio Callsign N8QDW

 
 
 

1. Help with XMH and MH (was: Re: MH for Linux, *please*!

I fixed it by logging on as root and doing

    $ chmod o+w /var/spool/mail

--
    If email to me bounces, make sure you deleted the D from the end of my
                     username in my email address.

2. Shared Memory vs. Memory Mapped

3. MH for Linux

4. incoming IP masq/port redirection

5. mh for Linux

6. listserver for this group

7. MH for Linux - How do I install it?

8. New direction for Gentoo?

9. MH for linux

10. Compiling MH on linux

11. MH for Linux

12. MH in linux

13. MH for Linux, *please*!