File: mailreader.config

package info (click to toggle)
mailreader 2.3.36-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,632 kB
  • ctags: 131
  • sloc: perl: 3,496; sh: 405; makefile: 68
file content (78 lines) | stat: -rw-r--r-- 1,644 bytes parent folder | download | duplicates (4)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh -e

set -e

#trap ":" INT QUIT TSTP
package=mailreader

. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup
db_title Mailreader.com configuration

STATE=1
while [ "$STATE" != 0 -a "$STATE" != 11 ]; do
    case $STATE in
	1)
	    db_input medium ${package}/deflang || true
	    db_go
	    db_get ${package}/deflang
	    if [ "$RET" = "Japanese" ]; then
		db_input medium ${package}/japanwarning || true
	    fi
	;;
	2)
	    db_get ${package}/feedback
	    if [ "x"$RET = "x" ]; then
		db_set ${package}/feedback root@`hostname --fqdn`
	    fi
	    db_input low ${package}/feedback || true
	;;
	3)
	    db_get ${package}/smtpserver
	    if [ "x"$RET = "x" ]; then
		db_set ${package}/smtpserver `hostname --fqdn`
	    fi
	    db_input low ${package}/smtpserver || true
	;;
	4)
	    db_get ${package}/pop3
	    if [ "x"$RET = "x" ]; then
		db_set ${package}/pop3 `hostname --fqdn`
	    fi
	    db_input low ${package}/pop3 || true
	;;
	5)
	    db_get ${package}/allowpop3
	    if [ "x"$RET = "x" ]; then
		db_get ${package}/pop3
		db_set ${package}/allowpop3 `echo $RET`
	    fi
	    db_input low ${package}/allowpop3 || true
	;;
	6)
	    db_input low ${package}/allowclients || true
	;;
	7)
	    db_input low ${package}/afterout || true
	;;
	8)
	    db_input low ${package}/ads || true
	;;
	9)
	    db_input high ${package}/securitynote || true
	;;
	10)
	    if [ -s /etc/${package}/main.cfg -o -s /etc/${package}/server.cfg ]; then
		db_input high ${package}/confoverride || true
	    fi
	;;
    esac
    db_go
    if [ $? -eq 0 -o $? -eq 30 ]; then
	STATE=$(($STATE + 1))
    else
	STATE=$(($STATE - 1))
    fi
done
db_stop