4 if [ "$1" != configure ]; then
8 # Source debconf library.
9 if [ -e /usr/share/debconf/confmodule ]; then
10 . /usr/share/debconf/confmodule
13 if [ -d /usr/doc -a ! -e /usr/doc/t-prot -a -d /usr/share/doc/t-prot ]; then
14 ln -sf ../share/doc/t-prot /usr/doc/t-prot
17 # check for the /etc/Muttrc return value
18 if [ -e /usr/share/debconf/confmodule ]; then
19 db_get t-prot/muttrc_option
23 if [ "$muttrc" = "true" ] ; then
24 # check if it's already added
25 if ! grep /etc/Muttrc.t-prot /etc/Muttrc > /dev/null; then
26 echo 'source "/etc/Muttrc.t-prot" # for the t-prot script' \
29 elif [ "$muttrc" = "false" ] ; then
31 if grep /etc/Muttrc.t-prot /etc/Muttrc > /dev/null; then
32 TMPFILE=`mktemp /tmp/Muttrc.XXXXXX`
33 sed -e '\,/etc/Muttrc.t-prot,d' < /etc/Muttrc > $TMPFILE
34 chmod --reference=/etc/Muttrc $TMPFILE
35 mv -f $TMPFILE /etc/Muttrc