eef81dc5bbb900377b41b5b7e80701a4732e03d8
[notmuch-archives.git] / 5787d5a75f2afc515b91ae66df6967511353b3
1 Return-Path: <jrollins@servo.finestructure.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 289C5431FD0\r
6         for <notmuch@notmuchmail.org>; Wed, 22 Jun 2011 18:14:23 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.921\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id RI7iddnPZMHp for <notmuch@notmuchmail.org>;\r
17         Wed, 22 Jun 2011 18:14:22 -0700 (PDT)\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
19         [131.215.239.19])\r
20         by olra.theworths.org (Postfix) with ESMTP id B2BC3431FB6\r
21         for <notmuch@notmuchmail.org>; Wed, 22 Jun 2011 18:14:22 -0700 (PDT)\r
22 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
23         by earth-doxen-postvirus (Postfix) with ESMTP id BBC3666E0211;\r
24         Wed, 22 Jun 2011 18:14:20 -0700 (PDT)\r
25 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
26 Received: from servo.finestructure.net (gwave-224.ligo.caltech.edu\r
27         [131.215.114.224]) (Authenticated sender: jrollins)\r
28         by earth-doxen-submit (Postfix) with ESMTP id 9349F66E013C;\r
29         Wed, 22 Jun 2011 18:14:13 -0700 (PDT)\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
31         id BF85326B; Wed, 22 Jun 2011 18:14:14 -0700 (PDT)\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 To: Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: [PATCH] emacs: Show all multipart/alternative parts by default.\r
35 Date: Wed, 22 Jun 2011 18:14:12 -0700\r
36 Message-Id: <1308791652-17372-2-git-send-email-jrollins@finestructure.net>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <1308791652-17372-1-git-send-email-jrollins@finestructure.net>\r
39 References: <1308791652-17372-1-git-send-email-jrollins@finestructure.net>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 23 Jun 2011 01:14:23 -0000\r
53 \r
54 This is patch is a temporary work-around for a slight regression that\r
55 popped up in the part handling reorganization.  Currently, text/plain\r
56 parts are always preferred, if present, over other non-text/plain\r
57 parts in multipart/alternative.  However, this means that if there is\r
58 a blank text/plain part, no content will be displayed.\r
59 \r
60 One way to get around this is to set the\r
61 "notmuch-show-all-multipart/alternative-parts" customization variable\r
62 to True ('t'), which will cause all parts to always be displayed.\r
63 \r
64 Since we want to move forward with the next release, we're going to\r
65 set this variable true by default, to make sure that no content is\r
66 unretrievably hidden from the user.  Once we come up with a better\r
67 solution for easy display of hidden parts we can set this back to a\r
68 default value of 'nil'.\r
69 ---\r
70  emacs/notmuch-show.el |    2 +-\r
71  1 files changed, 1 insertions(+), 1 deletions(-)\r
72 \r
73 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
74 index 0d9b52a..af1d44b 100644\r
75 --- a/emacs/notmuch-show.el\r
76 +++ b/emacs/notmuch-show.el\r
77 @@ -96,7 +96,7 @@ same as that of the previous message."\r
78              notmuch-wash-excerpt-citations))\r
79  \r
80  ;; Mostly useful for debugging.\r
81 -(defcustom notmuch-show-all-multipart/alternative-parts nil\r
82 +(defcustom notmuch-show-all-multipart/alternative-parts t\r
83    "Should all parts of multipart/alternative parts be shown?"\r
84    :group 'notmuch\r
85    :type 'boolean)\r
86 -- \r
87 1.7.5.4\r
88 \r