Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9a / 6e0368244dafdd605c38c797c211b81a0fda30
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 BB919429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 18 Nov 2011 21:26:33 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \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 fZEcpsLCM62K for <notmuch@notmuchmail.org>;\r
17         Fri, 18 Nov 2011 21:26:33 -0800 (PST)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-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 013BB431FD0\r
22         for <notmuch@notmuchmail.org>; Fri, 18 Nov 2011 21:26:32 -0800 (PST)\r
23 Received: by bkaq10 with SMTP id q10so4672002bka.26\r
24         for <notmuch@notmuchmail.org>; Fri, 18 Nov 2011 21:26:31 -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=6Inbz3K0V/G3JS3pKlJFhPk7bTya7nqTBkvTJABAN6U=;\r
29         b=pCfZ2F2OQ5ZEEKxHAHEKnrUZRluQRN6P5YP054bge3QTEX5T7Hi8/VG3YCylWddDXV\r
30         wqxNnYRTzgG1+Bo7kmW41+VDhCmTlKjPK/VEt9YGwMh7Z1JB+h7ST+VUroOYpjJFnXa6\r
31         tHihAJbtmY0uGGTVMISPAVabBHvKQFZwlpPdg=\r
32 Received: by 10.204.148.75 with SMTP id o11mr6205284bkv.95.1321680391602;\r
33         Fri, 18 Nov 2011 21:26:31 -0800 (PST)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id e18sm2276482bkr.15.2011.11.18.21.26.30\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Fri, 18 Nov 2011 21:26:30 -0800 (PST)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: Austin Clements <amdragon@MIT.EDU>\r
40 Subject: Re: [PATCH] Output unmodified Content-Type header value for JSON\r
41         format.\r
42 In-Reply-To: <20111119045957.GQ9351@mit.edu>\r
43 References: <1321659905-24367-1-git-send-email-dmitry.kurochkin@gmail.com>\r
44         <87fwhkyisj.fsf@servo.finestructure.net>\r
45         <87wrawq1dz.fsf@gmail.com> <20111119045957.GQ9351@mit.edu>\r
46 User-Agent: Notmuch/0.10~rc1+20~gec94ced (http://notmuchmail.org) Emacs/23.3.1\r
47         (x86_64-pc-linux-gnu)\r
48 Date: Sat, 19 Nov 2011 09:26:14 +0400\r
49 Message-ID: <87ty60pts9.fsf@gmail.com>\r
50 MIME-Version: 1.0\r
51 Content-Type: text/plain; charset=us-ascii\r
52 Cc: notmuch@notmuchmail.org\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Sat, 19 Nov 2011 05:26:33 -0000\r
66 \r
67 On Fri, 18 Nov 2011 23:59:57 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
68 > Quoth Dmitry Kurochkin on Nov 19 at  6:42 am:\r
69 > > Hi Jamie.\r
70 > > \r
71 > > On Fri, 18 Nov 2011 17:58:52 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
72 > > > On Sat, 19 Nov 2011 03:45:05 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
73 > > > > Before the change, notmuch used g_mime_content_type_to_string(3)\r
74 > > > > function to output Content-Type header value.  Turns out it outputs\r
75 > > > > only "type/subtype" part and ignores all parameters.  Also, if there\r
76 > > > > is no Content-Type header, default "text/plain" value is used.\r
77 > > > \r
78 > > > Hi, Dmitry.  Can you explain under what circumstances you would need the\r
79 > > > extra content-type parameters?\r
80 > > \r
81 > > Charset is an example of a parameter which you need to render a part\r
82 > > correctly.\r
83\r
84 > Can notmuch convert to a common charset, given that, otherwise, every\r
85 > client is going to have to implement this conversion anyway?\r
86\r
87 \r
88 Notmuch can handle charset (and any other) parameters but only for known\r
89 media types (i.e. text/*).  I think it would be useful (especially for\r
90 human-readable output formats).  But it is a separate issue.\r
91 \r
92 Notmuch can not convert other types it does not know how to handle.\r
93 E.g. HTML charset conversion is not as simple as for plain text.\r
94 \r
95 AFAIK standard defines charset parameter just for few types.  So in\r
96 general, charset parameter can have any meaning for some custom media\r
97 type.\r
98 \r
99 > (And are there other examples of useful things in the content type?)\r
100 \r
101 What is meant by useful?  All parameters do have some use.  The fact\r
102 that notmuch does not handle them does not mean they are useless.  And\r
103 notmuch can not handle all parameters just because the list of\r
104 parameters is not defined.  So there is no choice but to let notmuch\r
105 users see and use these parameters.\r
106 \r
107 Regards,\r
108   Dmitry\r