Re: Pardon the interruption but a quick Q
"Matthew G. Saroff" <[email protected]> Wed, 21 Dec 2005 16:26:30 -0500 (EST)
| Newsgroups | gmane.mail.smartlist.user |
|---|---|
| Organization | The Dealy Plaza Gun Club |
| Message-ID | <[email protected]> |
On Wed, 21 Dec 2005, Dr Jon Jenkins MLC wrote:
> Hi People
>
> I use Smartlist to maintain a large list for newsletters. However
> because of mail forwarding some recipients cannot get off the list
> automatically and I cannot figure out how they got the email.
>
> How can I customise each email with the original recipient in the email
> so I can remove them manually?
>
> I presume that I have to add a custom footer in rc.local.s20 as per the
> FAQ
>
Here is a solution that does not involve smartlist:
Take the following unix script:
==============================================
#!/bin/sh
ans=1;
zzzzz=1;
while [ $ans != 0 ]; do
TO=`head -1 $HOME/addresses`
tail +2 $HOME/addresses > $HOME/addrtmp
cp $HOME/addrtmp $HOME/addresses
(echo "To: ${TO}";\
echo "From: your email here <[email protected]>";\
cat $HOME/mass.txt;) | sendmail -t -oi
# commented out cat through sendmail has an
# added and sign (&) to end of sendmail to spawn sup processes because
# idiots at charm.net have put in an intertmittent minute+ delay in
# sendmail
ans=`ls -al $HOME/addresses |awk '{print $5}'`
sleep 10
# the delay is to keep the mail spool from filling up. Set it to what you
#want.
zzzzz=`expr $zzzzz + 1`
done
============================================
Then create a file in your home directory called mass.txt with the
following format:
============================================
Subject: Someone on the blblbl list is having subscription problems.
Body of message with a request for the person in question. Tell him to
forward it to you.