summaryrefslogtreecommitdiff
path: root/regress/simulation/test_newml.sh
blob: 2ace087e32d9f5605eafb204e02b55904be1ac20 (plain)
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
54
55
56
#!/bin/sh
#
# $FML: test_newml.sh,v 1.5 2003/01/04 14:08:54 fukachan Exp $
#

SHOW () {
	echo "";
	echo "******************* show config *******************"; 
	echo "";

	head -30 /tmp/nuinui/*rudo/include* \
		/tmp/nuinui/etc/mail/aliases \
		/tmp/nuinui/etc/postfix/virtual \
		/tmp/nuinui/etc/sendmail/virtusertable \
		/tmp/nuinui/etc/procmail/procmailrc \
		/tmp/nuinui/etc/qmail/virtualdomains 

	echo ""
	head $HOME/.qmail-*nuinui*

	echo "";
	echo "******************* show config end *******************"; 
	echo "";
}


(
	rm -fr /tmp/nuinui 
	sh reset_lib.sh 

	printf "\n*** newml *** \n\n"

	printf "\n\n\n" > /dev/stderr 
	makefml newml rudo@nuinui.net 
	SHOW

	test -d /tmp/nuinui || echo error: /tmp/nuinui not exist
	test -d /tmp/nuinui || exit 1

	ls -lRa /tmp/nuinui

	printf "\n*** rmml *** \n\n"

	printf "\n\n\n" > /dev/stderr 
	makefml rmml rudo@nuinui.net 
	SHOW

) 2>&1 | tee /tmp/rr

echo "";
echo "---";
echo "";
echo See /tmp/rr
echo "";

exit 0