* Michael Sanders ([EMAIL PROTECTED]) [010817 13:16]:
> Here's an infinitesimal elaboration which takes addresses from
> one file and the message text from a second. Someone else can
> show how to use a multi-word subject.
> 

I'm on it:

./batchmailer ./addr_list ./message "Here's a multi-line subject"

(where ./batchmailer should be replaced by the actual path to the
script)

> 
> #!/bin/sh
> #
> if [ $# -ne 3 ] ;
>   then
>   echo "Usage: `basename $0` AddressFile MessageFile Subject(one word)" ;
>   exit 1;
> fi
> #
> if [ ! -r $1 ]
> then
> echo `basename $0`: File $1 not found!
> exit 2
> fi
> if [ ! -r $2 ]
> then
> echo `basename $0`: File $2 not found!
> exit 3
> fi
> #
> cat $1 | while read LUSER;
> do cat $2 | mutt -s $3 $LUSER
> done
> exit 0
> 
> -- 
> (T.) Michael Sanders         internet: [EMAIL PROTECTED]
> Physics Department           URL: http://www-personal.umich.edu/~sanders
> University of Michigan       phone: 734/936-0799
> Ann Arbor, MI 48109-1120     FAX: 734/764-6843
> 
> 

-- 
Vineet                                   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!                  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

PGP signature

Reply via email to