From: matt@ODDJOB.UCHICAGO.EDU (Matt Crawford)
Newsgroups: comp.mail.mh
Subject: Re: local address problems with mh 6.7.2
Date: 1 Sep 92 14:58:22 GMT
Reply-To: crawdad@fncent.fnal.gov
Organization: The Internet

(cc to mh-users because I'm dubious about Chander's return address.)

Here's the fix I contributed when SunOS 4.1.2 ran me into the same
bug that got you.  I hope this will be in the next release.

Move m_whatnow.c from sbr to uip.

Apply these patches to conf/makefiles/{sbr,uip}

*** sbr~        Thu Jan 30 10:36:20 1992
--- sbr Fri Jul 10 13:40:06 1992
***************
*** 40,46 ****
                m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
                m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
                m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
!               m_whatnow.c makedir.c path.c peekc.c pidwait.c pidstatus.c \
                printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
                showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
                uleq.c uprf.c vfgets.c formatdef.c m_msgdef.c
--- 40,46 ----
                m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
                m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
                m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
!               makedir.c path.c peekc.c pidwait.c pidstatus.c \
                printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
                showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
                uleq.c uprf.c vfgets.c formatdef.c m_msgdef.c
***************
*** 56,62 ****
                m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
                m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
                m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
!               m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o \
                printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
                showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
                uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o
--- 56,62 ----
                m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
                m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
                m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
!               makedir.o path.o peekc.o pidwait.o pidstatus.o \
                printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
                showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
                uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o
***************
*** 412,420 ****
  m_update.o: ../h/mh.h
  #m_update.o: /usr/include/stdio.h
  #m_update.o: /usr/include/signal.h
- m_whatnow.o: m_whatnow.c
- m_whatnow.o: ../h/mh.h
- #m_whatnow.o: /usr/include/stdio.h
  makedir.o: makedir.c
  makedir.o: ../h/mh.h
  #makedir.o: /usr/include/stdio.h
--- 412,417 ----



*** uip~        Fri Jan 24 17:19:02 1992
--- uip Fri Jul 10 13:44:27 1992
***************
*** 355,366 ****
  comp:         xcomp
  
  xcomp:                comp.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ comp.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-comp:;      $(LINT) $(LFLAGS) comp.c \
!                       whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-conflict:        $(ETCDIR)/conflict
--- 355,366 ----
  comp:         xcomp
  
  xcomp:                comp.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ comp.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-comp:;      $(LINT) $(LFLAGS) comp.c \
!                       m_whatnow.c whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-conflict:        $(ETCDIR)/conflict
***************
*** 409,420 ****
  dist:         xdist
  
  xdist:                dist.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ dist.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-dist:;      $(LINT) $(LFLAGS) dist.c \
!                       whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-dp:      $(ETCDIR)/dp
--- 409,420 ----
  dist:         xdist
  
  xdist:                dist.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ dist.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-dist:;      $(LINT) $(LFLAGS) dist.c \
!                       m_whatnow.c whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-dp:      $(ETCDIR)/dp
***************
*** 484,495 ****
  forw:         xforw
  
  xforw:                forw.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ forw.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-forw:;      $(LINT) $(LFLAGS) forw.c \
!                       whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-inc:     $(BINDIR)/inc
--- 484,495 ----
  forw:         xforw
  
  xforw:                forw.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES) 
                $(LD) $(LDFLAGS) -o $@ forw.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS) 
  
  l-forw:;      $(LINT) $(LFLAGS) forw.c \
!                       m_whatnow.c whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS)
  
  
  inst-inc:     $(BINDIR)/inc
***************
*** 858,869 ****
  repl:         xrepl
  
  xrepl:                repl.o replsbr.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES)
                $(LD) $(LDFLAGS) -o $@ repl.o replsbr.o \
!                       whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS)
  
  l-repl:;      $(LINT) $(LFLAGS) repl.c replsbr.c \
!                       whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS) 
  
  
  inst-rmail:   /bin/rmail
--- 858,869 ----
  repl:         xrepl
  
  xrepl:                repl.o replsbr.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LIBES)
                $(LD) $(LDFLAGS) -o $@ repl.o replsbr.o \
!                       m_whatnow.o whatnowsbr.o sendsbr.o annosbr.o distsbr.o $(LDLIBS)
  
  l-repl:;      $(LINT) $(LFLAGS) repl.c replsbr.c \
!                       m_whatnow.c whatnowsbr.c sendsbr.c annosbr.c distsbr.c $(LLIBS) 
  
  
  inst-rmail:   /bin/rmail
***************
*** 1460,1465 ****
--- 1460,1468 ----
  kdsc.o: ../h/mh.h
  kdsc.o: ../zotnet/tws.h
  kdsc.o: ../tma/h/kds.h
+ m_whatnow.o: m_whatnow.c
+ m_whatnow.o: ../h/mh.h
+ #m_whatnow.o: /usr/include/stdio.h
  mark.o: mark.c
  mark.o: ../h/mh.h
  #mark.o: /usr/include/stdio.h