From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Thu, 5 Feb 2009 15:22:30 +0000 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] processing mail bodies Topicbox-Message-UUID: 971d3796-ead4-11e9-9d60-3106f5b1d025 > i considered adding code to upas to at least > strip pgp nonesense from message bodies. but this > would require upas to know things about what > message bodies look like after mime is done with > them. 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. -Steve