1 Return-Path: <dmitry.kurochkin@gmail.com>
\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 85B37431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 12:00:02 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 zHi5-n7V7cN3 for <notmuch@notmuchmail.org>;
\r
17 Wed, 18 Jan 2012 12:00:01 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 3FF3C431FAE
\r
22 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 12:00:01 -0800 (PST)
\r
23 Received: by bkty12 with SMTP id y12so2058201bkt.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 11:59:59 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:cc:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type;
\r
28 bh=Fh2VTPS5qFSDWXtBPzTI9lJhDrUoc4vERx1XFQpoePY=;
\r
29 b=SQRYRVRBetb0UR1IPJNPbuk3de7m9ZITzbOQqliVvrA7yAkdXTEQ9ixlZUjsgYo3yL
\r
30 4JJNvyGfrowYDreh/vCs7IeowQ8ZxLKEVSYUQEzwideGUou1Of3Fr8wbL1WFytc4+uLO
\r
31 641RzR7W5R3S7qOS2r8N5gfiT2Fmw86wivvXU=
\r
32 Received: by 10.204.133.213 with SMTP id g21mr9188793bkt.126.1326916799643;
\r
33 Wed, 18 Jan 2012 11:59:59 -0800 (PST)
\r
34 Received: from localhost ([91.144.186.21])
\r
35 by mx.google.com with ESMTPS id n9sm57053093bkg.8.2012.01.18.11.59.58
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Wed, 18 Jan 2012 11:59:58 -0800 (PST)
\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
39 To: Austin Clements <amdragon@MIT.EDU>
\r
40 Subject: Re: [PATCH v2] emacs: Make the part content available to the
\r
42 In-Reply-To: <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> <20120118193501.GG16740@mit.edu>
\r
48 User-Agent: Notmuch/0.11+73~g8a5402e (http://notmuchmail.org) Emacs/23.3.1
\r
49 (x86_64-pc-linux-gnu)
\r
50 Date: Wed, 18 Jan 2012 23:59:03 +0400
\r
51 Message-ID: <87zkdk7pfc.fsf@gmail.com>
\r
53 Content-Type: text/plain; charset=us-ascii
\r
54 Cc: notmuch@notmuchmail.org
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Wed, 18 Jan 2012 20:00:02 -0000
\r
69 On Wed, 18 Jan 2012 14:35:01 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
\r
70 > Quoth Dmitry Kurochkin on Jan 18 at 11:00 pm:
\r
71 > > On Wed, 18 Jan 2012 18:30:36 +0000, David Edmondson <dme@dme.org> wrote:
\r
72 > > > On Wed, 18 Jan 2012 22:04:36 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
\r
73 > > > > On Wed, 18 Jan 2012 17:39:31 +0000, David Edmondson <dme@dme.org> wrote:
\r
74 > > > > > The `mm-inlinable-p' and `mm-inlined-p' functions work better if they
\r
75 > > > > > have access to the data of the relevant part, so load that content
\r
76 > > > > > before calling either function.
\r
78 > > > > > This fixes the display of attached image/jpeg parts, for example.
\r
80 > > > > Not so long ago I made an opposite change to avoid fetching useless
\r
81 > > > > parts (e.g. audio files). Looks like we need a better check here. Can
\r
82 > > > > we know from Content-Type if fetching a part body would be useful?
\r
84 > > > What if `notmuch-show-insert-part-*/*' consulted a list of content-type
\r
85 > > > regexps to attempt to inline?
\r
87 > > > That would allow a sane default (("image/*" "text/*") perhaps), but also
\r
88 > > > allow more to be added to that list (or some to be removed), either by
\r
89 > > > code that detected the (in)ability to render it or the user.
\r
91 > > Perhaps there is such a list in mm already?
\r
93 > Shouldn't we only be doing this for parts with inline (or not
\r
94 > attachment) content-disposition? That's cheap to check. Or do we
\r
95 > actually want things like image attachments to get inlined, despite
\r
96 > their disposition?
\r
98 It may be good to have this behavior configurable. I would like Emacs
\r
99 to display all part types that it can, independent from
\r
100 content-disposition.
\r
102 Anyway, this is a separate issue. In any case we want to fetch part
\r
103 body only if it is useful.
\r