Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!ENG.UMD.EDU!ziegast From: ziegast@ENG.UMD.EDU (Eric Ziegast) Newsgroups: comp.mail.mh Subject: Re: Problem with slocal and From line Message-ID: <9105240133.AA17186@egypt.eng.umd.edu> Date: 24 May 91 01:33:00 GMT References: <1991May23.222139.20313@colorado.edu> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 33 -=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:
". 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] | +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+