--- /dev/null
+set display_filter='t-prot -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'
+# set it to '' to turn it off by default
+
+# toggle TOFU protection with ESC-0 (off) and ESC-1 (on)
+macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off"
+macro generic \e1 ":set display_filter='t-prot -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'\n" "Turn TOFU protection on"
+
+# same in pager mode - ugly but what the hell...
+macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off"
+macro pager \e1 ":set display_filter='t-prot -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'; exec exit\n:exec display-message\n" "Turn TOFU protection on"
+
+# highlight TOFU protection:
+color body     brightmagenta           black   "^\\[---.*"
+color body     green                   black   "^#v[-+]"
 
+++ /dev/null
-set display_filter='t-prot -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers'
-# set it to '' to turn it off by default
-
-# toggle TOFU protection with ESC-0 (off) and ESC-1 (on)
-macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off"
-macro generic \e1 ":set display_filter='t-prot -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers'\n" "Turn TOFU protection on"
-
-# same in pager mode - ugly but what the hell...
-macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off"
-macro pager \e1 ":set display_filter='t-prot -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers'; exec exit\n:exec display-message\n" "Turn TOFU protection on"
-
-# highlight TOFU protection:
-color body     brightmagenta           default "^\\[---.*"
-color body     green                   default "^#v[-+]"
 
-t-prot (1.47-2) unstable; urgency=medium
+t-prot (2.1-2) unstable; urgency=low
 
-  * The automatic addition to /etc/Muttrc was removed due to a policy
-    violation.  To not make things worse I don't try to remove the line if it
-    is in there.  I'll try to convince the mutt maintainers of the benefit of
-    a conf.d directory again.
+  * t-prot moved its muttrc snippet to /etc/t-prot/Muttrc.  You might need to
+    check /etc/Muttrc.t-prot* for changes and incorporate them appropriately.
 
- -- Gerfried Fuchs <alfie@debian.org>  Thu, 09 Dec 2004 12:25:17 +0100
+  * Furthermore t-prot now offers you two directories: /etc/t-prot/footers for
+    mailinglist footers and /etc/t-prot/ads for ad footers.  Please notice
+    that many files in these directories have a serious impact on the speed
+    of t-prot and thus it is suggested to create by mail folder directories
+    and use mutt's folder-hook feature to use them.
+
+ -- Gerfried Fuchs <alfie@debian.org>  Mon, 26 Jun 2006 03:30:47 -0500
 
 t-prot for Debian
------------------
+=================
 
  This nice script was done by a dear friend of mine and is quite useful to
 not lose temper when receiving mails that are TOFU (see the manual page for
 an explanation of that abbreviation). I personally think it's really helpful.
 
- Unfortunately mutt doesn't offer a way to "plug in" config snippets so you
-have to do it yourself by hand.  To do it systemwide for all users add the
-following line to your /etc/Muttrc file:
-
-source /etc/Muttrc.t-prot
+ debconf asks for systemwide inclusion, you can always revert that change with
+"dpkg-reconfigure t-prot" or simly remove the symlink /etc/Muttrc.d/t-prot.rc
 
  A user who doesn't like it can turn it off in his own ~/.muttrc file with this
 line:
 the other slang macros in /usr/share/slrn/macros/t-prot.sl and can be sourced
 from there.
 
- -- Gerfried Fuchs <alfie@debian.org>  Thu, 09 Dec 2004 12:42:34 +0100
+ You can dump your list footers and ad footers into /etc/t-prot/footers and
+/etc/t-prot/ads respectively, just be aware that many files in these
+directories have a serious impact on the speed of t-prot.  It is advices to use
+folder-hook and enable the list footer and ad footers for the appropriate list
+only instead.
+
+ -- Gerfried Fuchs <alfie@debian.org>  Mon, 26 Jun 2006 03:19:06 -0500
 
+++ /dev/null
- In the footers directory you find some files that are examples of how the
-footers are handled by t-prot. Those are the footers for most of the debian
-mailing lists. Notice that the debian- footer is a stripped one which matches
-most of the lists. t-prot checks for start of line matches.
-
- You can directly use them if you add the options
--l -L /usr/share/doc/t-prot/examples/footers
-to your call to t-prot.
 
+t-prot (2.1-2) unstable; urgency=low
+
+  * The "t-prot for the masses" release.
+  * After looking into /etc/Muttrc I reverted the background change (#339898)
+    from default to black to match with default mutt colouring.
+  * Move listfooter examples to /etc/t-prot/footers and add empty adfooter
+    directory /etc/t-prot/ads (closes: #374671)
+  * Enable hiding both list and ad footers in the Muttrc file.
+  * Move the mutt configuration snippet to /etc/t-prot/Muttrc and update the
+    symlink if already available.
+  * Add NEWS.Debian item about these new configuration setup.
+  * Updated README.Debian, too.
+  * Simplified the footers, having a generalized mailman footer.
+  * Added French debconf translation by Christian Perrier (closes: #375944)
+
+ -- Gerfried Fuchs <alfie@debian.org>  Thu, 06 Jul 2006 03:03:23 -0500
+
 t-prot (2.1-1) unstable; urgency=low
 
   * New upstream release, which fixes:
 
-/etc/Muttrc.t-prot
+/etc/t-prot/Muttrc
+/etc/t-prot/footers/debian-
+/etc/t-prot/footers/debian-private
+/etc/t-prot/footers/mailman
 
 db_input medium t-prot/muttrc.d || true
 db_go
 
+# XXX - reconfigure check?
+
 exit 0
 
+++ /dev/null
-_______________________________________________
-Debian-at mailing list
-Debian-at@mail.gibraltar.at
-http://www.gibraltar.at/mailman/listinfo/debian-at
 
--- /dev/null
+_______________________________________________
+
+
+http
 
+++ /dev/null
-_______________________________________________
-Spi-private mailing list
-Spi-private@lists.spi-inc.org
-http://lists.spi-inc.org/cgi-bin/listinfo/spi-private
 
+++ /dev/null
-_______________________________________________
-Spi-www mailing list
-Spi-www@lists.spi-inc.org
-http://lists.spi-inc.org/cgi-bin/listinfo/spi-www
 
--- /dev/null
+# This file is distributed under the same license as the t-prot package.
+#
+# Christian Perrier <bubulle@debian.org>, 2006.
+msgid ""
+msgstr ""
+"Project-Id-Version: t-prot\n"
+"Report-Msgid-Bugs-To: t-prot@packages.debian.org\n"
+"POT-Creation-Date: 2006-03-27 12:44+0200\n"
+"PO-Revision-Date: 2006-06-28 01:10+0200\n"
+"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.2\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:4
+msgid "Do you want to enable t-prot system wide for mutt?"
+msgstr "Faut-il activer t-prot pour l'ensemble des utilisateurs de mutt ?"
+
+#. Type: boolean
+#. Description
+#: ../templates:4
+msgid ""
+"The t-prot package provides a config file /etc/Muttrc.t-prot -- to use the "
+"script from mutt you have to enable it.  You can do this either by creating "
+"a symlink in /etc/Muttrc.d/ for systemwide usage (rather, this can be done "
+"automatically for you), or let the users decide to add a \"source\" line for "
+"it in their ~/.muttrc or ~/.mutt/muttrc.  If you acknowledge this question "
+"the systemwide usage will be enabled."
+msgstr ""
+"Le paquet t-prot fournit un fichier de configuration /etc/Muttrc.t-prot. "
+"L'utilisation de t-prot avec mutt nécessite une activation spéficique qui "
+"peut se faire en choisissant cette option. Elle créera un lien symbolique "
+"dans /etc/Muttrc.d afin d'offrir cette possibilité à tous les utilisateurs "
+"du système. Alternativement, si vous ne choisissez pas cette option, chaque "
+"utilisateur pourra ajouter une instruction « source » vers ce fichier "
+"dans son fichier ~/.muttrc ou ~/.mutt/muttrc."
 
        . /usr/share/debconf/confmodule
 fi
 
-if [ "$1" != 'configure' ]; then
+if [ "$1" != 'configure' ] && [ "$1" != 'reconfigure' ]; then
        exit 0
 fi
 
-symlink=true
-if [ -e /usr/share/debconf/confmodule ]; then
-       db_get t-prot/muttrc.d
-       symlink="$RET"
+# change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc
+if [ "$2" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then
+       cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
 fi
 
-if [ "$symlink" = "true" ]; then
-       mkdir /etc/Muttrc.d || true
-       cd /etc/Muttrc.d && ln -s ../Muttrc.t-prot t-prot.rc || true
+# only on new install or reconfigure
+if [ "x$2" = "x" ] || [ "$1" = "reconfigure" ] || [ "${DEBCONF_RECONFIGURE}" = "1" ]; then
+       symlink=true
+       if [ -e /usr/share/debconf/confmodule ]; then
+               db_get t-prot/muttrc.d
+               symlink="$RET"
+       fi
+
+       case "$symlink" in
+           true)
+               mkdir /etc/Muttrc.d 2> /dev/null || true
+               cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true
+               ;;
+           false)
+               if [ -L /etc/Muttrc.d/t-prot.rc ]; then
+                       rm /etc/Muttrc.d/t-prot.rc
+                       rmdir /etc/Muttrc.d 2> /dev/null || true
+               fi
+               ;;
+       esac
 fi
 
 #!/bin/sh -e
 # postrm for t-prot
 
+# remove /etc/Muttrc.d/t-prot.rc symlink on both remove and purge
+if [ "$1" = purge ] || [ "$1" = remove ]; then
+       if [ -L /etc/Muttrc.d/t-prot.rc ]; then
+               rm /etc/Muttrc.d/t-prot.rc
+       fi
+       rmdir /etc/Muttrc.d 2> /dev/null || true
+fi
+
+# on purge purge debconf data, too
 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
        db_purge
 
        $(checkroot)
        -rm -rf $(TMP)
        $(INSTALL_DIR) $(TMP)
-       cd $(TMP) && $(INSTALL_DIR) etc usr/bin usr/share/man/man1 \
-               usr/share/slrn/macros usr/share/doc/$(PKG)/examples
+       cd $(TMP) && $(INSTALL_DIR) etc/t-prot/footers etc/t-prot/ads \
+               usr/bin usr/share/man/man1 usr/share/slrn/macros \
+               usr/share/doc/$(PKG)/examples
        #       usr/share/doc/$(PKG)/contrib
        $(INSTALL_SCRIPT) t-prot   $(TMP)/usr/bin
        patch $(TMP)/usr/bin/t-prot \
                contrib/t-prot-r*-mutt157.diff
        -rm -f $(TMP)/usr/bin/t-prot.orig
        $(INSTALL_FILE)   t-prot.1 $(TMP)/usr/share/man/man1
-       $(INSTALL_FILE) debian/Muttrc.t-prot $(TMP)/etc
+       $(INSTALL_FILE) debian/Muttrc     $(TMP)/etc/t-prot
+       $(INSTALL_FILE) debian/footers/*  $(TMP)/etc/t-prot/footers
        $(INSTALL_FILE) contrib/t-prot.sl $(TMP)/usr/share/slrn/macros
        patch $(TMP)/usr/share/slrn/macros/t-prot.sl \
                contrib/t-prot.sl-slang2.diff
        #$(INSTALL_FILE) contrib/README.patches contrib/t-prot-r*-gol.diff \
        #       contrib/t-prot-r*-indentms.diff \
        #       $(TMP)/usr/share/doc/$(PKG)/contrib
-       cp -pR contrib/muttrc.t-prot contrib/filter_innd.pl \
-               contrib/README.examples debian/footers debian/README.footers \
+       $(INSTALL_FILE) contrib/filter_innd.pl contrib/README.examples \
                $(TMP)/usr/share/doc/$(PKG)/examples
        $(INSTALL_FILE) ChangeLog \
                $(TMP)/usr/share/doc/$(PKG)/changelog
        cd $(TMP)/usr/share && gzip -9 doc/$(PKG)/changelog \
                man/man1/t-prot.1
-       find $(TMP) -print0 2>/dev/null | xargs -0r \
-               chown --no-dereference 0.0
-       find $(TMP) ! -type l -print0 2>/dev/null | xargs -0r \
-               chmod go=rX,u+rw,a-s
 
 
 binary-indep: build install