Re: [PATCH] Actually close the xapian database in notmuch_database_close
[notmuch-archives.git] / aa / d388182682b0e7ed51d2d5a52290cf72dfb2ba
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 7271440DBE5\r
6         for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 11:58:52 -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: -2.89\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
12         tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
13         autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id rg6s5jOwWvdT; Mon, 15 Nov 2010 11:58:40 -0800 (PST)\r
17 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
18         by olra.theworths.org (Postfix) with ESMTP id 426D640DBD4;\r
19         Mon, 15 Nov 2010 11:58:40 -0800 (PST)\r
20 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
21         id B819725412B; Mon, 15 Nov 2010 11:58:39 -0800 (PST)\r
22 From: Carl Worth <cworth@cworth.org>\r
23 To: Jameson Rollins <jrollins@finestructure.net>,\r
24         Dirk Hohndel <hohndel@infradead.org>,\r
25         Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
26         Notmuch developer list <notmuch@notmuchmail.org>\r
27 Subject: Re: notmuchsync: handling of the deleted tag\r
28 In-Reply-To: <87fwv3e1e2.fsf@servo.finestructure.net>\r
29 References: <87bp7vewa5.fsf@raven.defaultvalue.org>\r
30  <87mxrcsb8a.fsf@SSpaeth.de>    <87r5gnomt2.fsf@raven.defaultvalue.org>\r
31         <87hbfnmiux.fsf@yoom.home.cworth.org>   <87oc9vf17n.fsf@SSpaeth.de>\r
32  <m34obmdzjj.fsf@x201s.gr8dns.org>      <87pqua82os.fsf@yoom.home.cworth.org>\r
33         <87fwv3e1e2.fsf@servo.finestructure.net>\r
34 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1\r
35         (i486-pc-linux-gnu)\r
36 Date: Mon, 15 Nov 2010 11:58:33 -0800\r
37 Message-ID: <87d3q68il2.fsf@yoom.home.cworth.org>\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/signed; boundary="=-=-=";\r
40         micalg=pgp-sha1; protocol="application/pgp-signature"\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 15 Nov 2010 19:58:52 -0000\r
54 \r
55 --=-=-=\r
56 Content-Transfer-Encoding: quoted-printable\r
57 \r
58 On Sun, 14 Nov 2010 22:01:09 -0500, Jameson Rollins <jrollins@finestructure=\r
59 .net> wrote:\r
60 > On Fri, 12 Nov 2010 16:52:51 -0800, Carl Worth <cworth@cworth.org> wrote:\r
61 > > This one is a simple one-liner as of notmuch 0.4:\r
62 > >=20\r
63 > >     notmuch search --output=3Dfiles tag:deleted -print0 | xargs -0 rm\r
64 >=20\r
65 > Is -print0 actually a command that notmuch accepts?  It's not documented\r
66 > as far as I can tell.  And it doesn't seem to affect the output of the\r
67 > command, i.e. whether or not it's used the output is still newline\r
68 > delimited.  I'm not seeing it in the source either.\r
69 \r
70 No, it's not something implemented. I'm surprised I spouted such\r
71 nonsense above. I think what happened is that I first typed a command\r
72 line which would actually work, (for filenames without embedded newline\r
73 characters):\r
74 \r
75         notmuch search --output=3Dfiles tag:deleted | xargs rm\r
76 \r
77 And then a habit kicked in from typing many find/xargs commands and I\r
78 retrofitted the command with -print0 and -0 as I originally sent it out.\r
79 \r
80 Should we perhaps add a -0 option so that one could actually reliably\r
81 handle filenames with newlines in a case like this? Or can we just\r
82 assert that such filenames are insane and *should* cause problems?\r
83 \r
84 =2DCarl\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.10 (GNU/Linux)\r
94 \r
95 iD8DBQFM4ZDp6JDdNq8qSWgRAqbaAJ0asFT8MvyjxBysu0Amhup7JNTZQACfQjY0\r
96 87agTtdKw6lS4eSqW9wRntE=\r
97 =H8n9\r
98 -----END PGP SIGNATURE-----\r
99 --=-=-=--\r