Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!eos!amelia!sun217!truesdel From: truesdel@sun217..nas.nasa.gov (David A. Truesdell) Newsgroups: comp.mail.mh Subject: Re: How do I get a signature line at the bottom? Message-ID: <4891@amelia.nas.nasa.gov> Date: 13 Feb 90 06:42:29 GMT References: <25D78BE4.246@paris.ics.uci.edu> Sender: news@amelia.nas.nasa.gov Lines: 38 rfg@paris.ics.uci.edu (Ronald Guilmette) writes: >Please excuse my total ignorance, but how can I get MH to append some set >of say 3-4 lines at the end of every message that I send? > >I used to be able to do this by using a .signature file in BSD mail, but >that doesn't seem to do it for MH. > >// rfg (This line inserted manually - what a pain!) There are three ways that I can think of to do this. 1) Hack sendmail to append a users ".signature" file. (Actually, I thought I remembered seeing some code ifdef'd out, which would do this.) 2) Hack MH to do the same. (Yuck, to much work!) 3) Write a script which will construct various "comp" files for you. Which is what I did. I don't change my ".signature" file very often, so I don't consider having to do this an inconvience. My script: #!/bin/sh sig=${HOME}/.signature lib=${HOME}/.lib mail=${HOME}/Mail cat ${lib}/components ${sig} > ${mail}/components cat ${lib}/forwcomps ${sig} > ${mail}/forwcomps cat ${lib}/replcomps > ${mail}/replcomps cat ${lib}/forwfilter > ${mail}/forwfilter sed 's/^/:/' < ${sig} | cat ${lib}/replfilter - > ${mail}/replfilter T.T.F.N., dave truesdell (truesdel@prandtl.nas.nasa.gov) "Testing can show the presense of bugs, but not their absence." -- Dijkstra "Each new user of a new system uncovers a new class of bugs." -- Kernighan