From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <27554a6d94230ba1f752fa6009fdd7c2@quanstro.net> To: 9fans@9fans.net From: erik quanstrom Date: Thu, 5 Feb 2009 10:26:39 -0500 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] processing mail bodies Topicbox-Message-UUID: 9722a230-ead4-11e9-9d60-3106f5b1d025 > FWIW I have several sources of mail which have large, unnecessary disclaimers, > adverts, signatures etc on them. I have a serise of test in /mail/box/steve/pipeto > along the lines of: > > if (grep -s 'Forum Subscription New Topic Notification' $D/subject){ > bin/powerboard $D | $BIN/deliver $RECIP $D/from $MBOX > exit 0 > } > > This runs /mail/box/steve/bin/XXX which contains sed scripts to > remove the rubbish. In this case (powerboard), I only receive a link > to the relevant bullitin board message, the script uses hget to pull > down the actual text. might it be better for ned or Mail to do this? - erik