4 # Source debconf library.
5 if [ -e /usr/share/debconf/confmodule ]; then
6 . /usr/share/debconf/confmodule
11 if [ "${DEBCONF_RECONFIGURE}" = "1" ]; then
12 # workaround until reconfigure is really available
16 if [ "$action" != 'configure' ] && [ "$action" != 'reconfigure' ]; then
20 # change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc
21 if [ "$version" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then
22 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
25 # if we got reinstalled after a remove, enable the config snippet again
26 if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then
27 mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true
30 # only on new install or reconfigure
31 if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then
33 if [ -e /usr/share/debconf/confmodule ]; then
34 db_get t-prot/muttrc.d
40 mkdir /etc/Muttrc.d 2> /dev/null || true
41 cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
44 if [ -L /etc/Muttrc.d/t-prot.rc ]; then
45 rm /etc/Muttrc.d/t-prot.rc
46 rmdir /etc/Muttrc.d 2> /dev/null || true