-if [ "$1" = 'configure' -a -e /usr/share/debconf/confmodule ]; then
- if dpkg --compare-versions "$2" lt "1.47-2" ; then
- . /usr/share/debconf/confmodule
- db_purge
- db_stop
- fi
+# Source debconf library.
+if [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+if [ "$1" != 'configure' ]; then
+ exit 0
+fi
+
+symlink=true
+if [ -e /usr/share/debconf/confmodule ]; then
+ db_get t-prot/muttrc.d
+ symlink="$RET"
+fi
+
+if [ "$symlink" = "true" ]; then
+ mkdir /etc/Muttrc.d || true
+ cd /etc/Muttrc.d && ln -s ../Muttrc.t-prot t-prot.rc || true