[PATCH v4 0/2] emacs: show: redesign unread/read logic
[notmuch-archives.git] / 8a / 8251f2e4c6d29d7a74fb87a2fe236af4d2522e
1 Return-Path: <cworth@cworth.org>\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 321AA431FD0\r
6         for <notmuch@notmuchmail.org>; Tue, 24 May 2011 12:59:14 -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: 0.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] 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 lZ9RsY--T+Rg for <notmuch@notmuchmail.org>;\r
16         Tue, 24 May 2011 12:59:12 -0700 (PDT)\r
17 Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
18         by olra.theworths.org (Postfix) with ESMTP id CDF9A431FB6\r
19         for <notmuch@notmuchmail.org>; Tue, 24 May 2011 12:59:12 -0700 (PDT)\r
20 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
21         by arlo.cworth.org (Postfix) with ESMTP id C96D029A51A\r
22         for <notmuch@notmuchmail.org>; Tue, 24 May 2011 12:59:11 -0700 (PDT)\r
23 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
24         id BA8CA25417E; Tue, 24 May 2011 12:59:11 -0700 (PDT)\r
25 From: Carl Worth <cworth@cworth.org>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: Deprecated notmuch "part" and "search-tags" commands\r
28 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
29         (i486-pc-linux-gnu)\r
30 Date: Tue, 24 May 2011 12:59:05 -0700\r
31 Message-ID: <87vcwzlvjq.fsf@yoom.home.cworth.org>\r
32 MIME-Version: 1.0\r
33 Content-Type: multipart/signed; boundary="=-=-=";\r
34         micalg=pgp-sha1; protocol="application/pgp-signature"\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Tue, 24 May 2011 19:59:14 -0000\r
48 \r
49 --=-=-=\r
50 Content-Transfer-Encoding: quoted-printable\r
51 \r
52 I just merged some changes by Jameson to move from the "notmuch part\r
53 =2D-part=3DX" command to instead use "notmuch show --part=3DX". This is\r
54 fundamentally more powerful since the various --format=3Dtext|json|raw\r
55 options can now be used while limiting which message parts are show with\r
56 =2D-part. [*] It's also a nice code reduction.\r
57 \r
58 But I didn't want to break existing interfaces that might be calling\r
59 "notmuch part", (for example, somebody updating the notmuch command-line\r
60 but still using the older emacs interface).\r
61 \r
62 So I just added simple support to the notmuch main program to support\r
63 aliases. With this, the "notmuch part" command is still supported by\r
64 being treated as an alias for "notmuch show --format=3Draw".\r
65 \r
66 With the alias support in place, I also switched "notmuch search-tags"\r
67 to now be an alias for "notmuch search --output=3Dtags *". That was a\r
68 further code reduction.\r
69 \r
70 Currently, the aliases are not documented at all---the idea being that\r
71 they exist only to support interfaces still using deprecated commands.\r
72 \r
73 I just wanted everyone to be aware of these recent changes. I'd be glad\r
74 to take any feedback here. Let me know.\r
75 \r
76 Me, I'm quite happy to see the list of commands from "notmuch help" get\r
77 shorter by two commands, (without any reduction in available\r
78 functionality).\r
79 \r
80 =2DCarl\r
81 \r
82 [*] Though the JSON formatter still gives up on non-text parts. We might\r
83 want to extend it to encapsulate non-text parts within the json output\r
84 somehow.\r
85 \r
86 =2D-=20\r
87 carl.d.worth@intel.com\r
88 \r
89 --=-=-=\r
90 Content-Type: application/pgp-signature\r
91 \r
92 -----BEGIN PGP SIGNATURE-----\r
93 Version: GnuPG v1.4.11 (GNU/Linux)\r
94 \r
95 iEYEARECAAYFAk3cDgkACgkQ6JDdNq8qSWjvNgCdE+iyB76KApMeAXTBl3qiZBS6\r
96 4RkAn2JPNpFCxxvZis14o4YyW6Wj5itV\r
97 =uE5y\r
98 -----END PGP SIGNATURE-----\r
99 --=-=-=--\r