#!/bin/sh # # sllusub # # This is a sample batch file to call your mail program. You will # need to modify this to work properly with your mail system, or the # unsubscribe feature of sll will not work. # # The following parameters are expected: # $1 is the address to which the subscription cancelation is to be sent # $2 is the official name of the list # $3 (BZS) is the sender's e-mail address # # The idea is to send mail to the subscription address with the # subject line reading "SIGNOFF list-name" and the same thing in the body # of the message. In most cases, the subscription cancelation will # work if either the subject line or the body contains the subscription # cancelation request, but we put it in both places in this example. TMP=/tmp/SLL.$$ trap finish 0 1 2 3 15 finish() { rm -f $TMP exit 0 } echo From: $3 > $TMP echo To: $1 >> $TMP echo Subject: SIGNOFF $2 >> $TMP echo >> $TMP echo SIGNOFF $2 >> $TMP cat $TMP | /usr/lib/sendmail -t