File: mailrequest

package info (click to toggle)
zmailer 2.99.51.52pre3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 16,596 kB
  • ctags: 7,422
  • sloc: ansic: 90,470; sh: 3,608; makefile: 2,784; perl: 1,585; python: 115; awk: 22
file content (53 lines) | stat: -rwxr-xr-x 1,304 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /bin/sh
mailer="/usr/lib/sendmail"
grep=/local/bin/egrep
editor=${EDITOR-'/usr/ucb/vi'}

if test $# -lt 2; then
	echo "Usage: `basename $0` listname listrequestaddress"
	exit 1
fi

# Check for Suns running Yellow Pages
#if ypwhich > /dev/null
#then
#	passwd='ypcat passwd'
#else
	passwd='cat /etc/passwd'
#fi

sender=`$passwd | $grep $USER | 
	awk -F: '{print substr($5, 1, index($5, ",")-1)}'`
listname=$1
to=$2
cat << EOHeader
To: $to
Subject: Please add ${listname}-distribution@cs.toronto.edu
From: Mailing List Administrator <list-admin@cs.toronto.edu>
Organization: Department of Computer Science, University of Toronto
Cc: list-admin

EOHeader
cat << EOHeader

Hi.    

Please add ${listname}-distribution@cs.toronto.edu to the
${listname} mailing list.

We will be redistributing it locally both as a newsgroup and by mail,
so please tell eventual subscribers from the University of Toronto, or people
whose mail path goes through any University of Toronto site, that they can
subscribe from our exploder by contacting list-request@cs.toronto.edu.

Please use the address list-admin@cs.toronto.edu as a contact point for
adminstrativia.

Could you please send a test message to 
${listname}-distribution@cs.toronto.edu just to make sure 
everything works?

Thanks,
        ${sender}

EOHeader