Re: Flat search and threaded views
[notmuch-archives.git] / 22 / 70e25f56189e7616bc8f2eb85bb4a58f70834e
1 Return-Path: <bremner@tethera.net>\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 1B575431FC3\r
6         for <notmuch@notmuchmail.org>; Sun,  5 Jan 2014 03:39:31 -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 U+wkQf3xlDjx for <notmuch@notmuchmail.org>;\r
16         Sun,  5 Jan 2014 03:39:23 -0800 (PST)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DB703431FC0\r
21         for <notmuch@notmuchmail.org>; Sun,  5 Jan 2014 03:39:23 -0800 (PST)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tethera.net>) id 1Vzm36-0001Y6-GR\r
24         for notmuch@notmuchmail.org; Sun, 05 Jan 2014 07:39:20 -0400\r
25 Received: (nullmailer pid 5360 invoked by uid 1000); Sun, 05 Jan 2014\r
26         11:39:16 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: third draft of info manual\r
30 Date: Sun,  5 Jan 2014 07:39:07 -0400\r
31 Message-Id: <1388921950-5017-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.8.5.2\r
33 In-Reply-To: <1366852752-3584-1-git-send-email-david@tethera.net>\r
34 References: <1366852752-3584-1-git-send-email-david@tethera.net>\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: Sun, 05 Jan 2014 11:39:31 -0000\r
48 \r
49 \r
50 Jani was mentioning how much he loved editing troff, so I decided to\r
51 dust off these patches, which as a side effect convert (some of) the\r
52 man pages to pod.\r
53 \r
54 As I write this, I realized that the second commit message is sort of\r
55 a lie, I now use a quick and dirty perl script [1] to do the conversion.\r
56 \r
57 I have also updated the converted pages to take into account man page\r
58 edits since April.  Since this is a semi-manual process, I don't want\r
59 to convert (and therefore have to update) all of the man pages at this\r
60 stage.\r
61 \r
62 An earlier version of the series is at \r
63 \r
64    mid:1366852752-3584-1-git-send-email-david@tethera.net\r
65 \r
66 \r
67 [1]:\r
68 \r
69 #!/usr/bin/perl\r
70 \r
71 open(POD,"groff -e -mandoc -Tascii -rHY=0 | rman -f POD|") || die;\r
72 LINE:\r
73 while(<POD>){\r
74   my $blank=0;\r
75   while (m/^\s*$/) {\r
76     $_=<POD>;\r
77     $blank++;\r
78   }\r
79   print "\n" if ($blank);\r
80 \r
81   while(s/^(=head1 .*)B[<]/\1/){};\r
82   while(s/^(=head1 .*)[>]/\1/){};\r
83 \r
84   s/  */ /g;\r
85   print;\r
86 }\r
87 \r