[PATCH 1/4] Add user.other_name property to associate names with other_email.
[notmuch-archives.git] / 94 / 12caa9d0d84a8c70ffe55874865eb38fc179bd
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 6F1086DE1B50\r
6  for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 14:34:15 -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.631\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.631 tagged_above=-999 required=5 tests=[AWL=0.621, \r
12  T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id 3RLnfj6N6Zqv for <notmuch@notmuchmail.org>;\r
16  Sun,  5 Apr 2015 14:34:13 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18  [87.98.215.224])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 715F16DE1B5B\r
20  for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 14:34:13 -0700 (PDT)\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
22  4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
23  id 1Yeres-0002RV-Pp\r
24  for notmuch@notmuchmail.org; Sun, 05 Apr 2015 21:00:42 +0000\r
25 Received: (nullmailer pid 29545 invoked by uid 1000); Sun, 05 Apr 2015\r
26  21:00:24 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: argument parsing refactor, add shared options\r
30 Date: Mon,  6 Apr 2015 05:59:30 +0900\r
31 Message-Id: <1428267574-28797-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 2.1.4\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.18\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37  <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Sun, 05 Apr 2015 21:34:15 -0000\r
46 \r
47 As part of ongoing hacking on Austin's revision tracking patches, I\r
48 wanted to add an option to (almost) all subcommands. One thing led to\r
49 another and this series emerged. By itself, the gain in functionality\r
50 is probably not worthwhile (yay, we can type notmuch subcommand\r
51 --version), but internally it makes it easy to add further "global\r
52 options" that are accepted as\r
53 \r
54 % notmuch --option [subcommand]\r
55 \r
56 and\r
57 \r
58 % notmuch subcommand --option\r
59 \r
60 it would make sense, e.g. for --quiet and --verbose to be supported\r
61 this way.\r
62 \r
63 Whatever people think about the shared options, I think the\r
64 refactoring of notmuch_help_command is probably worthwhile as it is\r
65 pretty simple and improves the readability of that code.\r
66 \r
67 Although there are other ways of doing so, patch 4 of this series also\r
68 fixes a UI bug encountered by Rob recently, where "--config" is silently ignored\r
69 in\r
70 \r
71         notmuch setup --config=/tmp/foo.conf\r
72 \r
73 In principle this series will need a documentation update, but note that\r
74 \r
75    notmuch search --help\r
76 \r
77 is already undocumented.\r
78 \r