[PATCH v2 04/14] cli/reply: unify reply format functions
[notmuch-archives.git] / a7 / 2293fa8cc76c1da0e39999d95f7d45011f4f61
1 Return-Path: <dme@dme.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 6B6FB4196F0\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Apr 2010 07:41:04 -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.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5\r
12         tests=[BAYES_20=-0.001] autolearn=ham\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 T0XNPOf-PxA9 for <notmuch@notmuchmail.org>;\r
16         Thu,  1 Apr 2010 07:41:03 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181])\r
19         by olra.theworths.org (Postfix) with ESMTP id 47176431FC1\r
20         for <notmuch@notmuchmail.org>; Thu,  1 Apr 2010 07:41:03 -0700 (PDT)\r
21 Received: by wyj26 with SMTP id 26so314028wyj.26\r
22         for <notmuch@notmuchmail.org>; Thu, 01 Apr 2010 07:41:02 -0700 (PDT)\r
23 Received: by 10.216.88.16 with SMTP id z16mr484212wee.126.1270132862211;\r
24         Thu, 01 Apr 2010 07:41:02 -0700 (PDT)\r
25 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
26         [83.217.165.81])\r
27         by mx.google.com with ESMTPS id g9sm19088539gvc.8.2010.04.01.07.41.00\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Thu, 01 Apr 2010 07:41:01 -0700 (PDT)\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
31         id 3467C5941EC; Thu,  1 Apr 2010 15:41:03 +0100 (BST)\r
32 To: notmuch <notmuch@notmuchmail.org>\r
33 From: David Edmondson <dme@dme.org>\r
34 Date: Thu, 01 Apr 2010 15:41:03 +0100\r
35 Message-ID: <87oci344n4.fsf@ut.hh.sledj.net>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 Subject: [notmuch] pull request\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Thu, 01 Apr 2010 14:41:04 -0000\r
52 \r
53 Carl, a couple of patches that I'd like you to consider. They are the\r
54 first two on the `dme' branch of git://github.com/dme/notmuch.git.\r
55 \r
56 http://github.com/dme/notmuch/commit/f86254e4509ed02731aa3eaa8541df1f2d11e400\r
57 > notmuch-show: Add unix and pretty dates to the JSON output\r
58\r
59 > Include a 'date_unix' and 'date_pretty' field in the JSON output for\r
60 > each message. 'date_pretty' can be used by a UI implementation,\r
61 > whereas 'date_unix' is useful when scripting.\r
62 \r
63 http://github.com/dme/notmuch/commit/dfd99e186ffc6b759c4e09a990c43bb6b8743ef2\r
64 > notmuch: Add a 'part' subcommand\r
65\r
66 > A new 'part' subcommand allows the user to extract a single part from a\r
67 > MIME message. Usage:\r
68\r
69 >   notmuch part --part=<n> <search terms>\r
70\r
71 > The search terms should match only a single message\r
72 > (e.g. id:foo@bar.com). The part number specified refers to the part\r
73 > identifiers output by `notmuch show'. The content of the part is written\r
74 > the stdout with no formatting or identification marks. It is not JSON\r
75 > formatted.\r
76 \r
77 The second of these (part) has been the topic of some\r
78 discussion. There's a suggestion that a 'cat' subcommand or\r
79 '--format=raw' option to the 'show' subcommand would be better. I'm not\r
80 particular preference - I just wanted the functionality to use in the\r
81 Emacs UI.\r
82 \r
83 (URLs included as the github frontend is quite nice for perusing the\r
84 changes.)\r
85 \r
86 dme.\r
87 -- \r
88 David Edmondson, http://dme.org\r