Maybe I am missing something here!
when you call that helper-script where is the e-mail you just received?
Let me explain:
I think I do not understand your script ...If someone could translate
that in perl OR explain me the program
What I can see is that you use sendmail sending to all addrss ... but
what is the $(_at_)? the message?
:0
* condition
| $HOME/bin/helper-script
Now helper-script could read something like
#!/bin/sh
tmp=/tmp/`basename $0`.$$; trap "rm -rf $tmp" 0
umask 077; mkdir $tmp || exit 1
cat >$tmp/message
(echo '#!/bin/sh';echo '/usr/lib/sendmail "$@" <'$tmp/message)
$tmp/sender
chmod 755 $tmp/sender
xargs $tmp/sender <addrss.txt
There's lots of ways to do it; that's just the first that leaps to mind.
But
that's not terribly efficient, nor terribly safe; if you are dealing
with a
big enough mailing list to break shell backtick expansion, then you
probably
ought to be using a serious mailing list manager. These include ezmlm,
smartlist, majordomo, and I'm sure many many others.
-Bennett