Pardon the interruption but a quick Q
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 footer.template file looks like: If you have trouble unsubscribing automatically email me here mailto:me@here.com -S trouble unsubcribing $ORG_TO Then add the following to the rc.local.s20 file # # Appending a recipient address to every outgoing mail for unsub problems: # :0 fbw ORG_TO=`formail -cXTo: | head -1` | sed 's/\$ORG_TO/'"$ORG_TO"/g footer.template >footer.txt | cat - footer.txt Again my apologies for the intrusion jon Prof Jon Jenkins MLC Parliament House Macquarie Street Sydney NSW 2000 Sydney Office Ph/Fax 02-9230-2752/2205 Nth Coast Office Ph/Fax 02-6676-2947/1543 Mob 0429178817 jon@trac.org.au www.trac.org.au
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 <your@email.here>";\ 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.
participants (2)
-
Dr Jon Jenkins MLC
-
Matthew G. Saroff