Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 07 / 8b52a72a2bd0c5b38cc2e986aa421778204c9b
1 Return-Path: <tomi.ollila@nixu.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 B3CF4431FD0\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 08:09:14 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 YbxCDyTqfiyh for <notmuch@notmuchmail.org>;\r
16         Sun, 18 Dec 2011 08:09:13 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 5F540431FB6\r
21         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 08:09:13 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pBIG8u1x010923;\r
24         Sun, 18 Dec 2011 18:08:56 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs0u6v3-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Sun, 18 Dec 2011 18:08:56 +0200\r
29 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         pBIG8tm9001347; Sun, 18 Dec 2011 18:08:56 +0200\r
32 From: Tomi Ollila <tomi.ollila@iki.fi>\r
33 To: Olivier Berger <olivier.berger@it-sudparis.eu>,\r
34         David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
35 Subject: Re: notmuch-emacs won't display correctly quoted-printable iso-8859-1\r
36         mails\r
37 In-Reply-To: <8762heexsp.fsf@inf-8657.int-evry.fr>\r
38 References: <20111216160104.24920.82593.reportbug@inf-8657.int-evry.fr>\r
39         <87sjkjyz5i.fsf@inf-8657.int-evry.fr>\r
40         <87liqaas12.fsf@zancas.localnet>\r
41         <8762heexsp.fsf@inf-8657.int-evry.fr>\r
42 User-Agent: Notmuch/0.10.2+93~g631d290 (http://notmuchmail.org) Emacs/23.3.1\r
43         (i686-pc-linux-gnu)\r
44 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
45         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
46         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
47 Date: Sun, 18 Dec 2011 18:08:55 +0200\r
48 Message-ID: <yf662hdkgko.fsf@taco2.nixu.fi>\r
49 MIME-Version: 1.0\r
50 Content-Type: text/plain; charset=us-ascii\r
51 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,\r
52  1.0.211,       0.0.0000        definitions=2011-12-18_04:2011-12-16, 2011-12-18,\r
53         1970-01-01 signatures=0\r
54 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
55         ipscore=0 suspectscore=0\r
56         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
57         reason=mlx\r
58         scancount=1 engine=6.0.2-1012030000 definitions=main-1112180152\r
59 Cc: 652359@bugs.debian.org\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Sun, 18 Dec 2011 16:09:14 -0000\r
73 \r
74 On Sun, 18 Dec 2011 15:53:26 +0100, Olivier Berger <olivier.berger@it-sudparis.eu> wrote:\r
75 > On Sun, 18 Dec 2011 10:11:37 -0400, David Bremner <david@tethera.net> wrote:\r
76 > > Hi Olivier;\r
77 > > \r
78 > > Can you try the following patch? If you apply it to git, you can use\r
79 > > "make debian-snapshot" to build new packages (assuming you have the\r
80 > > pre-reqs).\r
81 > > \r
82 > > Or just patch the notmuch-query.el installed by notmuch-emacs and reload\r
83 > > it.\r
84 > > \r
85\r
86 > I did that over notmuch-emacs 0.10.2-1 Debian package's version of\r
87 > notmuch-query.el, but that doesn't seem change anything, unfortunately :\r
88 > the modeline still is '-1:%*-' for the notmuch-show buffer, after\r
89 > hitting RET over a message's line in a search result list :-(\r
90 \r
91 I tested the same on terminal configured for latin9 and LC_ALL=fi_FI@euro\r
92 and the change worked for me.\r
93 \r
94 The buffer modeline is not supposed to change -- the change makes emacs\r
95 read incoming data encoded in utf-8 format (notmuch outputs everything\r
96 in utf-8). Before the change emacs expected (in your case) input data being\r
97 in latin1 format ("guessed" from your locale), but as input was in utf-8 the\r
98 conversion to emacs internal format went wrong.\r
99 \r
100 When emacs displays something (buffer content, that is) it converts the\r
101 internal format to the encoding emacs window is using. \r
102 \r
103 So, my guess is you did something wrong when trying David's patch and\r
104 you did not get the change evaluated.\r
105 \r
106 This what I did:\r
107 \r
108 I opened emacs/notmuch-query.el to another emacs window while \r
109 notmuch-hello open in another window.\r
110 \r
111 Then I added line (coding-system-for-read 'utf-8) in line 35:\r
112 \r
113   (let  ((args '("show" "--format=json"))\r
114          (json-object-type 'plist)\r
115          (json-array-type 'list)\r
116          (coding-system-for-read 'utf-8)\r
117          (json-false 'nil))\r
118 \r
119 then moved cursor to the end of line 44 which shows: (json-read)))))\r
120 (last line of that function) and entered c-x c-e\r
121 (eval-last-sexp) -- that re-evaluates the function definition.\r
122 \r
123 And, as said, after that change my emails render correctly on\r
124 latin1 -terminal (as opposed those did not render correctly before)\r
125 \r
126 > Hope this helps.\r
127 \r
128 I hope that I'm right in my guess so we get forward easier... :)\r
129 \r
130\r
131 > Best regards,\r
132 > -- \r
133 > Olivier BERGER \r
134 \r
135 Tomi\r