1 Return-Path: <amdragon@mit.edu>
\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 7FA78431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 11:35:19 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id vwZ2gLqcFGyK for <notmuch@notmuchmail.org>;
\r
16 Wed, 18 Jan 2012 11:35:17 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 3809A431FAE
\r
20 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 11:35:17 -0800 (PST)
\r
21 X-AuditID: 1209190d-b7fbf6d0000008ba-76-4f171ef4914b
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 7C.0B.02234.4FE171F4; Wed, 18 Jan 2012 14:35:16 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q0IJZGGE003081;
\r
27 Wed, 18 Jan 2012 14:35:16 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0IJZFei021857
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Wed, 18 Jan 2012 14:35:16 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1RnbHh-0001b5-1d; Wed, 18 Jan 2012 14:35:01 -0500
\r
37 Date: Wed, 18 Jan 2012 14:35:01 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
40 Subject: Re: [PATCH v2] emacs: Make the part content available to the
\r
42 Message-ID: <20120118193501.GG16740@mit.edu>
\r
43 References: <1326907993-11054-1-git-send-email-dme@dme.org>
\r
44 <1326908371-11949-1-git-send-email-dme@dme.org>
\r
45 <877h0o99aj.fsf@gmail.com>
\r
46 <cunlip47tir.fsf@hotblack-desiato.hh.sledj.net>
\r
47 <874nvs96ps.fsf@gmail.com>
\r
49 Content-Type: text/plain; charset=us-ascii
\r
50 Content-Disposition: inline
\r
51 In-Reply-To: <874nvs96ps.fsf@gmail.com>
\r
52 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
53 X-Brightmail-Tracker:
\r
54 H4sIAAAAAAAAA+NgFupjleLIzCtJLcpLzFFi42IRYrdT0f0iJ+5vsLfJ3GLfnS1MFle39rNb
\r
55 XL85k9mB2WPX879MHjtn3WX3eLbqFnMAcxSXTUpqTmZZapG+XQJXxqbbn1gLpnNXPF57h7mB
\r
56 8Q1HFyMnh4SAicTJm1eZIWwxiQv31rN1MXJxCAnsY5SYOeEbK4SzgVFi5dyFLBDOSSaJ37dW
\r
57 QTlLGCXWf1sDVMbBwSKgKnF1fjzIKDYBDYlt+5czgtgiAoYSty6+AlvBLGAlcfHZHnYQW1gg
\r
58 SmJ6Uw8TiM0roCPx5cEeJoiZNxklph/sgkoISpyc+YQFollL4sa/l0wgu5gFpCWW/wN7gVNA
\r
59 XeLCqgtg5aICKhJTTm5jm8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3S
\r
60 NdLLzSzRS00p3cQICnZOSd4djO8OKh1iFOBgVOLhjRQR9xdiTSwrrsw9xCjJwaQkyjtPFijE
\r
61 l5SfUpmRWJwRX1Sak1p8iFGCg1lJhPcLH1CONyWxsiq1KB8mJc3BoiTOq6r1zk9IID2xJDU7
\r
62 NbUgtQgmK8PBoSTBqwKMaiHBotT01Iq0zJwShDQTByfIcB6g4TUgi3mLCxJzizPTIfKnGBWl
\r
63 xHn5QJoFQBIZpXlwvbBk9IpRHOgVYd7zIO08wEQG1/0KaDAT0GCPJjGQwSWJCCmpBsbti+ar
\r
64 LOff7mNtnm6x643x0ulfrE7GbJrbMcc/Lc+Xecbsv7Ou80o6X5fLqJ30QMZRZbna+wz2mzO5
\r
65 rhm26r5dJuo9e336TJEtVTxme+3y52SUmucEaN+WTD+79MOioGum+Wb+kuuN5Nd/WMb0IHmT
\r
66 5ZbszU079mwvYL2qZNBkzW6tsrHzpKsSS3FGoqEWc1FxIgCYA0ZEIQMAAA==
\r
67 Cc: notmuch@notmuchmail.org
\r
68 X-BeenThere: notmuch@notmuchmail.org
\r
69 X-Mailman-Version: 2.1.13
\r
71 List-Id: "Use and development of the notmuch mail system."
\r
72 <notmuch.notmuchmail.org>
\r
73 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
75 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
76 List-Post: <mailto:notmuch@notmuchmail.org>
\r
77 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
78 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
79 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
80 X-List-Received-Date: Wed, 18 Jan 2012 19:35:19 -0000
\r
82 Quoth Dmitry Kurochkin on Jan 18 at 11:00 pm:
\r
83 > On Wed, 18 Jan 2012 18:30:36 +0000, David Edmondson <dme@dme.org> wrote:
\r
84 > > On Wed, 18 Jan 2012 22:04:36 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
\r
85 > > > On Wed, 18 Jan 2012 17:39:31 +0000, David Edmondson <dme@dme.org> wrote:
\r
86 > > > > The `mm-inlinable-p' and `mm-inlined-p' functions work better if they
\r
87 > > > > have access to the data of the relevant part, so load that content
\r
88 > > > > before calling either function.
\r
90 > > > > This fixes the display of attached image/jpeg parts, for example.
\r
92 > > > Not so long ago I made an opposite change to avoid fetching useless
\r
93 > > > parts (e.g. audio files). Looks like we need a better check here. Can
\r
94 > > > we know from Content-Type if fetching a part body would be useful?
\r
96 > > What if `notmuch-show-insert-part-*/*' consulted a list of content-type
\r
97 > > regexps to attempt to inline?
\r
99 > > That would allow a sane default (("image/*" "text/*") perhaps), but also
\r
100 > > allow more to be added to that list (or some to be removed), either by
\r
101 > > code that detected the (in)ability to render it or the user.
\r
103 > Perhaps there is such a list in mm already?
\r
105 Shouldn't we only be doing this for parts with inline (or not
\r
106 attachment) content-disposition? That's cheap to check. Or do we
\r
107 actually want things like image attachments to get inlined, despite
\r