This file is indexed.

postrm is in courier-base 0.78.0-2ubuntu2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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

set -e

del_override() {
    if dpkg-statoverride --list $4 >/dev/null; then
	dpkg-statoverride --force --remove $4
    fi
}

if [ "$1" = "purge" ]; then
    # Remove files created by maintainer scripts
    rm -f /etc/default/courier
    rm -rf /var/lib/courier/couriersslcache
    rm -f /etc/courier/dhparams.pem

    del_override root courier 0755 /etc/courier
    del_override root courier 0750 /etc/courier/shared
    del_override root courier 0750 /etc/courier/hosteddomains
    del_override root courier 0750 /etc/courier/esmtpacceptmailfor.dir
    del_override root courier 0750 /etc/courier/imapaccess
    del_override courier courier 0750 /var/lib/courier
fi

# Automatically added by dh_installdebconf/11.1.3ubuntu1
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section


exit 0