This file is indexed.

postinst is in nmh 1.5-release-5.

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
#!/bin/sh
# offer mhmail as alternative for the mail/mailx/Mail commands
set -e

if [ "$1" = "configure" ] && ! update-alternatives --display mailx |grep -q mhmail; then

    mhm=/usr/bin/mh/mhmail
    bindir=/usr/bin
    mandir=/usr/share/man/man1

    update-alternatives --install $bindir/mailx mailx $mhm 25 \
	--slave $bindir/mail mail $mhm \
	--slave $bindir/Mail Mail $mhm \
	--slave $mandir/mailx.1.gz mailx.1.gz $mandir/mhmail.1.gz \
	--slave $mandir/mail.1.gz mail.1.gz $mandir/mhmail.1.gz \
	--slave $mandir/Mail.1.gz Mail.1.gz $mandir/mhmail.1.gz
fi