3 # Copyright 2002-2009 by Gerfried Fuchs <rhonda@debian.at>
6 # Source debconf library.
7 if [ -e /usr/share/debconf/confmodule ]; then
8 . /usr/share/debconf/confmodule
13 if [ "${DEBCONF_RECONFIGURE}" = "1" ]; then
14 # workaround until reconfigure is really available
18 if [ "$action" != 'configure' ] && [ "$action" != 'reconfigure' ]; then
22 # change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc
23 if [ "$version" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then
24 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
27 # if we got reinstalled after a remove, enable the config snippet again
28 if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then
29 mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true
32 # only on new install or reconfigure
33 if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then
35 if [ -e /usr/share/debconf/confmodule ]; then
36 db_get t-prot/muttrc.d
42 mkdir /etc/Muttrc.d 2> /dev/null || true
43 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
46 if [ -L /etc/Muttrc.d/t-prot.rc ]; then
47 rm /etc/Muttrc.d/t-prot.rc
48 rmdir /etc/Muttrc.d 2> /dev/null || true