Re: bug#6214: 23.1; json-read-string crashes emacs with long string
[notmuch-archives.git] / 19 / 1201ef37e5b1dd959127fc24e061e831ae5d7b
1 Return-Path: <five9a2@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 1EE25431FBC\r
6         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 09:55:52 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id wspxF8uz8dti for <notmuch@notmuchmail.org>;\r
11         Sat, 28 Nov 2009 09:55:51 -0800 (PST)\r
12 Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
13         [209.85.218.224])\r
14         by olra.theworths.org (Postfix) with ESMTP id EC49D431FAE\r
15         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 09:55:50 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so1747592bwz.30\r
17         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 09:55:50 -0800 (PST)\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
19         h=domainkey-signature:received:received:sender:from:to:cc:subject\r
20         :date:message-id:x-mailer:in-reply-to:references;\r
21         bh=d8L3YjhC7AtRzec4BgsrujqO0SSwFUWd200xOGPEO8Q=;\r
22         b=ll3kJ5b+Fx+2h8j9Zg18iyg1DxK87fLjtI6DgO9esxiamMMaCt4LgyyssqgwWRQ+45\r
23         JgRKQvFTHeYla4OUpeBGFyjsyU0OjpHz7z7SaZ6llEwFRzCJVg9b61Ei2nSznqLT7FkY\r
24         8VDoCP5+9RTSZnt+Or/PijBo6f5W97YzOobCA=\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
26         h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
27         :references;\r
28         b=XyNEZ4jDomS4A33BHpJaiKl4+xmI54bP/FJNiedMyt5PQKDnJKW/OSoSSlG4ggF+tA\r
29         dVHQlIoZD/s3uywVjyxrCbx0R6ADJ+iDkZCMQNghN0ZqHCoQ6vAS/3VvzO5AvoQKfarS\r
30         aQTy75BvP0DyZBny1kSR5hRvCKdOkAx+FguUQ=\r
31 Received: by 10.204.24.69 with SMTP id u5mr2522410bkb.1.1259430949944;\r
32         Sat, 28 Nov 2009 09:55:49 -0800 (PST)\r
33 Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])\r
34         by mx.google.com with ESMTPS id 13sm898047fxm.13.2009.11.28.09.55.48\r
35         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
36         Sat, 28 Nov 2009 09:55:49 -0800 (PST)\r
37 Sender: Jed Brown <five9a2@gmail.com>\r
38 From: Jed Brown <jed@59A2.org>\r
39 To: cworth@cworth.org\r
40 Date: Sat, 28 Nov 2009 18:56:15 +0100\r
41 Message-Id: <1259430975-16459-1-git-send-email-jed@59A2.org>\r
42 X-Mailer: git-send-email 1.6.5.3\r
43 In-Reply-To: <87ljhrbgzy.fsf@yoom.home.cworth.org>\r
44 References: <87ljhrbgzy.fsf@yoom.home.cworth.org>\r
45 Cc: notmuch@notmuchmail.org\r
46 Subject: [notmuch] [PATCH] Documentation for notmuch reply\r
47         --format=(default|headers-only)\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.12\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Sat, 28 Nov 2009 17:55:52 -0000\r
61 \r
62 Signed-off-by: Jed Brown <jed@59A2.org>\r
63 ---\r
64  notmuch.1 |   22 +++++++++++++++++++---\r
65  notmuch.c |   16 ++++++++++++++--\r
66  2 files changed, 33 insertions(+), 5 deletions(-)\r
67 \r
68 diff --git a/notmuch.1 b/notmuch.1\r
69 index 2be77f9..04bd0cf 100644\r
70 --- a/notmuch.1\r
71 +++ b/notmuch.1\r
72 @@ -211,9 +211,9 @@ section below for details of the supported syntax for <search-terms>.\r
73  The\r
74  .B reply\r
75  command is useful for preparing a template for an email reply.\r
76 -\r
77 -.TP\r
78 -.BR reply " <search-term>..."\r
79 +.RS 4\r
80 +.TP 4\r
81 +.BR reply " [options...] <search-term>..."\r
82  \r
83  Constructs a reply template for a set of messages.\r
84  \r
85 @@ -236,6 +236,21 @@ each line with '> ' and included in the body.\r
86  \r
87  The resulting message template is output to stdout.\r
88  \r
89 +Supported options for\r
90 +.B reply\r
91 +include\r
92 +.RS\r
93 +.TP 4\r
94 +.BR \-\-format= ( default | headers\-only )\r
95 +.RS\r
96 +.TP 4\r
97 +.BR default\r
98 +Includes subject and quoted message body.\r
99 +.TP\r
100 +.BR headers-only\r
101 +Only produces In-Reply-To, References, To, Cc, and Bcc headers.\r
102 +.RE\r
103 +\r
104  See the\r
105  .B "SEARCH SYNTAX"\r
106  section below for details of the supported syntax for <search-terms>.\r
107 @@ -248,6 +263,7 @@ once. For example, when a series of patches are sent in a single\r
108  thread, replying to the entire thread allows for the reply to comment\r
109  on issue found in multiple patches.\r
110  .RE\r
111 +.RE\r
112  \r
113  The\r
114  .B tag\r
115 diff --git a/notmuch.c b/notmuch.c\r
116 index 5b0284c..d9846ce 100644\r
117 --- a/notmuch.c\r
118 +++ b/notmuch.c\r
119 @@ -204,7 +204,7 @@ command_t commands[] = {\r
120        "\t\tSee \"notmuch help search-terms\" for details of the search\n"\r
121        "\t\tterms syntax." },\r
122      { "reply", notmuch_reply_command,\r
123 -      "<search-terms> [...]",\r
124 +      "[options...] <search-terms> [...]",\r
125        "\t\tConstruct a reply template for a set of messages.",\r
126        "\t\tConstructs a new message as a reply to a set of existing\n"\r
127        "\t\tmessages. The Reply-To: header (if any, otherwise From:) is\n"\r
128 @@ -213,10 +213,22 @@ command_t commands[] = {\r
129        "\n"\r
130        "\t\tA suitable subject is constructed. The In-Reply-to: and\n"\r
131        "\t\tReferences: headers are set appropriately, and the content\n"\r
132 -      "\t\tof the original messages is quoted and included in the body.\n"\r
133 +      "\t\tof the original messages is quoted and included in the body\n"\r
134 +      "\t\t(unless --format=headers-only is given).\n"\r
135        "\n"\r
136        "\t\tThe resulting message template is output to stdout.\n"\r
137        "\n"\r
138 +      "\t\tSupported options for reply include:\n"\r
139 +      "\n"\r
140 +      "\t\t--format=(default|headers-only)\n"\r
141 +      "\n"\r
142 +      "\t\t\tdefault:\n"\r
143 +      "\t\t\t\tIncludes subject and quoted message body.\n"\r
144 +      "\n"\r
145 +      "\t\t\theaders-only:\n"\r
146 +      "\t\t\t\tOnly produces In-Reply-To, References, To\n"\r
147 +      "\t\t\t\tCc, and Bcc headers.\n"\r
148 +      "\n"\r
149        "\t\tSee \"notmuch help search-terms\" for details of the search\n"\r
150        "\t\tterms syntax." },\r
151      { "tag", notmuch_tag_command,\r
152 -- \r
153 1.6.5.3\r
154 \r