3 # Copyright 2002-2016 by Rhonda D'Vine <rhonda@debian.org>
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 # if we got reinstalled after a remove, enable the config snippet again
25 if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then
26 mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true
29 # only on new install or reconfigure
30 if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then
32 if [ -e /usr/share/debconf/confmodule ]; then
33 db_get t-prot/muttrc.d
39 mkdir /etc/Muttrc.d 2> /dev/null || true
40 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
43 if [ -L /etc/Muttrc.d/t-prot.rc ]; then
44 rm /etc/Muttrc.d/t-prot.rc
45 rmdir /etc/Muttrc.d 2> /dev/null || true