?RCS: $Id: MailList.U 1 2006-08-24 12:32:52Z rmanfredi $ ?RCS: ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi ?RCS: ?RCS: You may redistribute only under the terms of the Artistic Licence, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: ?RCS: Original Author: Graham Stoney ?RCS: ?RCS: $Log: MailList.U,v $ ?RCS: Revision 3.0.1.1 1994/01/24 14:01:49 ram ?RCS: patch16: created ?RCS: ?RCS: ?X: ?X: This unit offers the user the option of subscribing to the mailing ?X: list. To force inclusion of this unit, you must add it's name to the ?X: dependancies on the MAKE line in your private copy of End.U. ?X: The address of the mailing list server must be set via a "list_request=..." ?X: entry in the .package file. This is usually done by running packinit and ?X: answering the proper questions. ?X: ?MAKE:MailList: cat mailer package Myread cf_name cf_email ?MAKE: -pick wipe $@ %< ?T:list_request list_sub list_unsub list_name ?X: ?X: The cf_name dependency is used through list_sub when the mailing list ?X: manager happens to be listserv, whereas cf_email is used whith majordomo ?X: or when the mailing list request address is scanned by a human. Since ?X: they do not appear within the unit itself, we need a lint hint. ?X: ?LINT:use cf_name cf_email : offer to join the mailing list list_request='<$list_request>' list_sub="<$list_sub>" list_unsub="<$list_unsub>" list_name="<$list_name>" $cat <&4 $mailer $list_request </dev/null 2>&1 Precedence: junk To: $list_request $list_sub EOM ;; [uU]*) echo "Sending mail to unsubscribe you from the $list_name list..." >&4 $mailer $list_request </dev/null 2>&1 Precedence: junk To: $list_request $list_unsub EOM ;; esac