]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Show all multipart/alternative parts by default.
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 23 Jun 2011 01:14:12 +0000 (18:14 -0700)
committerDavid Bremner <bremner@debian.org>
Thu, 23 Jun 2011 01:28:12 +0000 (22:28 -0300)
This is patch is a temporary work-around for a slight regression that
popped up in the part handling reorganization.  Currently, text/plain
parts are always preferred, if present, over other non-text/plain
parts in multipart/alternative.  However, this means that if there is
a blank text/plain part, no content will be displayed.

One way to get around this is to set the
"notmuch-show-all-multipart/alternative-parts" customization variable
to True ('t'), which will cause all parts to always be displayed.

Since we want to move forward with the next release, we're going to
set this variable true by default, to make sure that no content is
unretrievably hidden from the user.  Once we come up with a better
solution for easy display of hidden parts we can set this back to a
default value of 'nil'.

emacs/notmuch-show.el

index 0d9b52a7f1b29769cffee30e1dbef50e7b0edab5..af1d44b67fafce58a669b76eccb299d8139c5d2a 100644 (file)
@@ -96,7 +96,7 @@ same as that of the previous message."
             notmuch-wash-excerpt-citations))
 
 ;; Mostly useful for debugging.
-(defcustom notmuch-show-all-multipart/alternative-parts nil
+(defcustom notmuch-show-all-multipart/alternative-parts t
   "Should all parts of multipart/alternative parts be shown?"
   :group 'notmuch
   :type 'boolean)