Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!olivea!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.mail.mh Subject: Re: A better way to "comment out" forwarded message headers? Message-ID: <2948@cirrusl.UUCP> Date: 14 Feb 91 01:35:36 GMT References: Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 30 In jerry@ORA.ORA.COM (Jerry Peek) asks about a better way of avoiding seeing lots of old headers in re-re...re-sent messages. Although I don't have a solution, I have a solution to a *differnet* problem :-) that might be adaptable. My strategy for filing bounced mail was to "inc" it into a regular mail message with the script below, which I call "incit". It works with most bounced messages though probably not all. #! /bin/sh # given a bounced message, looks for "Unsent message follows" line # and incorporates rest as a real message. -- Rahul Dhesi tmp=/tmp/$$ trap "/bin/rm -f $tmp; exit" 0 1 2 15 if test $# -lt 1; then echo 'usage: incit msg ...' echo "(bounced messages are inc'd as real messages.)" exit 1 fi for msg in `pick "$@"`; do show "$msg" -noshowproc -noheader | sed -e '1,/----- Unsent message follows -----/d' > $tmp && inc -file $tmp done -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi