Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / a1 / d6785622c7b346e84a205dcaf340e7f0b241e5
1 Return-Path: <david@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 arlo.cworth.org (Postfix) with ESMTP id 887E16DE02BF\r
6  for <notmuch@notmuchmail.org>; Sat,  9 Apr 2016 17:37:46 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.019\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.019 tagged_above=-999 required=5\r
12  tests=[AWL=-0.008, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id kwxFBeizl3jy for <notmuch@notmuchmail.org>;\r
17  Sat,  9 Apr 2016 17:37:38 -0700 (PDT)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 30DB86DE00BD\r
20  for <notmuch@notmuchmail.org>; Sat,  9 Apr 2016 17:37:38 -0700 (PDT)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <david@tethera.net>)\r
23  id 1ap3Nq-0001Sb-0w; Sat, 09 Apr 2016 20:37:46 -0400\r
24 Received: (nullmailer pid 14188 invoked by uid 1000);\r
25  Sun, 10 Apr 2016 00:37:34 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
28 Subject: Re: [RFC 3/5] cli: support shell globbing patterns in new.ignore\r
29 In-Reply-To:\r
30  <51db8c12299cb1765d346fa2c93c6c95abb92613.1446579858.git.jani@nikula.org>\r
31 References: <cover.1446579858.git.jani@nikula.org>\r
32  <51db8c12299cb1765d346fa2c93c6c95abb92613.1446579858.git.jani@nikula.org>\r
33 User-Agent: Notmuch/0.21+109~g9d467d4 (http://notmuchmail.org) Emacs/24.5.1\r
34  (x86_64-pc-linux-gnu)\r
35 Date: Sat, 09 Apr 2016 21:37:34 -0300\r
36 Message-ID: <871t6efgdt.fsf@maritornes.cs.unb.ca>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.20\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: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
50  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Sun, 10 Apr 2016 00:37:46 -0000\r
52 \r
53 Jani Nikula <jani@nikula.org> writes:\r
54 \r
55 > Keep the existing strcmp on the basename for backwards compatibility,\r
56 > and additionally use the new.ignore entries as fnmatch(3) patterns on\r
57 > the absolute filename. Note that it's not enough to add e.g. "foo*bar"\r
58 > to the list; you will need to do "*/foo*bar" to match the path also.\r
59 \r
60 I guess when you say absolute file name, you mean the obvious thing, not\r
61 relative to the root of the notmuch maildir. It seems like it would be\r
62 quite useful to e.g. ignore directory foo at the top level of the\r
63 maildir, but not anywhere else, by specifying /foo as an ignore\r
64 pattern. I guess this would just require stripping the maildir root off\r
65 the front of the path before doing the fnmatch? That's not currently\r
66 part of the add_files_state_t, but it could be.\r
67 \r
68 d\r