[go: up one dir, main page]

File: postinst

package info (click to toggle)
spamfilter 1.3-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 328 kB
  • ctags: 36
  • sloc: perl: 399; sh: 180; ansic: 151; makefile: 90
file content (33 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (2)
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
#! /bin/sh
###############################################################################
#
# $Id: postinst,v 1.4 1998/01/19 22:49:01 bcwhite Exp $
#
# postinst file for spamfilter
#

spamdbconfig=/etc/spamdb/config

convvar="CONVERTER"


if grep -q CONVERTER=spamfilter $spamdbconfig; then
    if grep -q ^CONVERTER=spamfilter $spamdbconfig; then
	other=true
    else
	other=false
    fi
else
    if grep -q ^CONVERTER $spamdbconfig; then
	convvar="#$convvar"
	other=true
    else
	other=false
    fi
    echo "$convvar=spamfilter" >>$spamdbconfig
fi


killall -9 pattern-server >/dev/null 2>&1

echo "- To install a personal spamfilter, type 'spamfilter' on the command line."