3 # Copyright 2002-2010 by Gerfried Fuchs <rhonda@debian.at>
4 # Licenced under WTFPLv2
8 # Source debconf library.
9 if [ -e /usr/share/debconf/confmodule ]; then
10 . /usr/share/debconf/confmodule
15 if [ "${DEBCONF_RECONFIGURE}" = "1" ]; then
16 # workaround until reconfigure is really available
20 if [ "$action" != 'configure' ] && [ "$action" != 'reconfigure' ]; then
24 # change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc
25 if [ "$version" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then
26 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
29 # if we got reinstalled after a remove, enable the config snippet again
30 if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then
31 mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true
34 # only on new install or reconfigure
35 if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then
37 if [ -e /usr/share/debconf/confmodule ]; then
38 db_get t-prot/muttrc.d
44 mkdir /etc/Muttrc.d 2> /dev/null || true
45 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
48 if [ -L /etc/Muttrc.d/t-prot.rc ]; then
49 rm /etc/Muttrc.d/t-prot.rc
50 rmdir /etc/Muttrc.d 2> /dev/null || true