]> git.llucax.com Git - software/mutt-debian.git/commitdiff
611410-no-implicit_autoview-for-text-html.patch: blacklist text/html from implicit_au...
authorAntonio Radici <antonio@dyne.org>
Thu, 5 May 2011 15:02:01 +0000 (15:02 +0000)
committerAntonio Radici <antonio@dyne.org>
Thu, 5 May 2011 15:02:01 +0000 (15:02 +0000)
debian/changelog
debian/patches/series
debian/patches/upstream/611410-no-implicit_autoview-for-text-html.patch [new file with mode: 0644]

index 8642a5459e868b7b03e4f3fa7a3d257f9bc09bbc..dd49a1b6c9cd60a6478e51d946e007a4b0cd1994 100644 (file)
@@ -27,13 +27,15 @@ mutt (1.5.21-5) unstable; urgency=low
       (Closes: 584138)
     + 619216-gnutls-CN-validation.patch: fix the validation of the
       commonname in the gnutls code (Closes: 619216)
+    + 611410-no-implicit_autoview-for-text-html.patch: blacklist
+      text/html from implicit_autoview, patch by Loïc Minier (Closes: 611410)
   * debian/patches/compressed-folders: remove partially uncompressed folder if
       the open fails (Closes: 578098)
   * debian/extra/samples/sidebar.muttrc: documented the options that
     the sidebar-{sorted,dotted} patches are introducing; documentation 
     submitted by Julien Valroff (Closes: 603186)
 
- -- Antonio Radici <antonio@dyne.org>  Fri, 29 Apr 2011 17:24:49 +0100
+ -- Antonio Radici <antonio@dyne.org>  Thu, 05 May 2011 15:00:56 +0000
 
 mutt (1.5.21-4) unstable; urgency=low
 
index 08a21047378f492ad73f2a63709235e239c5fdd1..49dac3da83e2208b4bce62fcc2f22e9fa8be0ad5 100644 (file)
@@ -51,6 +51,7 @@ upstream/624058-gnutls-deprecated-set-priority.patch
 upstream/624085-gnutls-deprecated-verify-peers.patch
 upstream/584138-mx_update_context-segfault.patch
 upstream/619216-gnutls-CN-validation.patch
+upstream/611410-no-implicit_autoview-for-text-html.patch
 upstream/path_max
 
 mutt.org
diff --git a/debian/patches/upstream/611410-no-implicit_autoview-for-text-html.patch b/debian/patches/upstream/611410-no-implicit_autoview-for-text-html.patch
new file mode 100644 (file)
index 0000000..61f5ae7
--- /dev/null
@@ -0,0 +1,34 @@
+This patch blacklist text/html from the list of documents that will be
+shown automatically, the patch (the muttlib.c part) has been written by
+Loïc Minier <lool@dooz.org>, I've added the documentation bit.
+
+The patch has been forwarded upstream originally by Loïc on:
+http://bugs.mutt.org/3496.
+
+The original Debian bug for this problem is http://bugs.debian.org/611410
+
+--- a/init.h
++++ b/init.h
+@@ -1211,7 +1211,9 @@
+   ** ``\fCcopiousoutput\fP'' flag set for \fIevery\fP MIME attachment it doesn't have
+   ** an internal viewer defined for.  If such an entry is found, mutt will
+   ** use the viewer defined in that entry to convert the body part to text
+-  ** form.
++  ** form. MIME attachments with 'text' types, with the only exception
++  ** of text/html, are excluded: they will be shown as they are unless auto_view
++  ** is specified.
+   */
+   { "include",                DT_QUAD, R_NONE, OPT_INCLUDE, M_ASKYES },
+   /*
+--- a/muttlib.c
++++ b/muttlib.c
+@@ -658,6 +658,9 @@
+   switch (m->type)
+   {
+     case TYPETEXT:
++      /* we don't want to display text/html */
++      if (!ascii_strcasecmp ("html", m->subtype))
++        return 1;
+       /* we can display any text, overridable by auto_view */
+       return 0;
+       break;