[wplug] disk usage (Out of Office Reply)

Tom Rhodes trhodes at FreeBSD.org
Tue Apr 1 10:55:35 EST 2008


On Tue, 1 Apr 2008 10:10:50 -0400
Neal Sofge <neal_sofge at rand.org> wrote:

> > I don't think there's a way to differentiate between real posts and  
> > auto-responder posts.
> 
> For those on the list with an entrepreneurial bent, I think there's a  
> market opportunity here.  When last I looked (ca. 2003) there weren't  
> any really good solutions to this problem.
> 

Why not just run an sh(1) script to take the text data from -,
[f|e]grep out specific emails you know shouldn't come across the
list, dev-null them, and remail others back to the list.  It's almost
this simple:

DATA=`/bin/cat -`
fgrep "I will be out of the office" $DATA
... with /dev/null etc. etc.

mail -s "original subject" originaladdress at originalserver < real_message

And if you're using Sendmail, the greatest MTA on the planet :P,
just add:

mailinglist:	|"/usr/libexec/sm.bin/mailclean.sh"

Perhaps different mailing list software already allows for
the capture of these emails as well.

-- 
Tom Rhodes


More information about the wplug mailing list