[comp.mail.mh] Problem with slocal and From line

frechett@spot.Colorado.EDU (-=Runaway Daemon=-) (05/24/91)

We have mh installed on our DEC 5500 ULTRIX4.1 and slocal is broken.. 
But I remembered that at work, we have a DEC 3100 running mh in which
the slocal was fixed.. so I copied it over to the 5500 and it 
runs fine, BUT when I got everthing set up I had it pipe the message
through my own version of biff.   It reads the From (not From:) line
and picks out the address and then prints out 
MAIL from <that address>  and then the cursor backs up to the M in 
mail, thus leaving the screen mostly un-effected. This program needs 
the From line and slocal steals it for some reason.  Is there any 
way to get it to pass the whole damn message instead of just what is 
left over after slocal messes it up?  

This is the version mh running on this machine.. BUT 

version: MH 6.5 #2[UCI] (hunky.zk3.dec.com) of Fri Aug 24 18:52:59 EDT 1990
options: [BANG] [ATZ] [ISI] [MHRC] [WHATNOW] [BSD42] [BERK] [TTYD]
         [DUMB] [MHE] [NETWORK] [BIND] [RPATHS] [SBACKUP='"#"']
         [SENDMTS] [SMTP]

This is the version mh that I stole the working slocal from.
version: MH 6.7 #1[UCI] (newton) of Tue Dec 11 19:16:06 MST 1990
options: [ATZ] [BIND] [BSD42] [BSD43] [DBM] [DUMB] [FOLDPROT='"0700"']
         [MHE] [MHRC] [MSGPROT='"0600"'] [NOMHSEQ] [NTOHLSWAP]
         [OVERHEAD] [RPATHS] [SBACKUP='"#"'] [SUN40] [TYPESIG=void]
         [WHATNOW] [ZONEINFO] [SENDMTS] [SMTP] [BPOP] [NNTP]
	
	ian

-=Runaway Daemon=-

ziegast@ENG.UMD.EDU (Eric Ziegast) (05/24/91)

-=Runaway Daemon=- writes:
>							This program needs 
>the From line and slocal steals it for some reason.  Is there any 
>way to get it to pass the whole damn message instead of just what is 
>left over after slocal messes it up?  

Your versions of slocal are turning the "From " lines to "Return Path"
lines.  This is because it was compiled with the "RPATHS" option.  If
you take out RPATHS, I believe it will preserve "From " lines in some
sort of way.  Some solutions:

	1. Recompile MH without RPATHS.  This is probably too drastic.
	2. Rewrite your program to use "Return-path: <address>".
	3. Reconstruct the from line.  In an earlier example, I showed
	   how to get /usr/ucb/vacation (which uses a From line to
	   work when using RPATHS.  First the program:

		#!/bin/sh
		# /homes/elves/ziegast/mhbin/vacation
		sed -e "s/^Return-Path:/From/" -e "1,1s/$/ `date`/" \
		| /usr/ucb/vacation ziegast

	   Then in slocal:

	   To ziegast	^ ? "/homes/elves/ziegast/mhbin/vacation"
	   cc ziegast	^ ? "/homes/elves/ziegast/mhbin/vacation"

For those who didn't notice, my earlier solution for vacation was flawed.

+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric W. Ziegast     Internet: ziegast@eng.umd.edu |
| Univ. of Merryland  Phonenet: Eric@[301.405.3689] |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+