[PATCH] completion: handle notmuch address --deduplicate= option
authorJani Nikula <jani@nikula.org>
Sat, 26 Sep 2015 11:12:50 +0000 (14:12 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:38 +0000 (14:49 -0700)
ee/bb8f619f02af001d5aec4e5fe49857e1bfcd9c [new file with mode: 0644]

diff --git a/ee/bb8f619f02af001d5aec4e5fe49857e1bfcd9c b/ee/bb8f619f02af001d5aec4e5fe49857e1bfcd9c
new file mode 100644 (file)
index 0000000..14b49ad
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id B22E86DE0924\r
+ for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 04:13:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.531\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.531 tagged_above=-999 required=5 tests=[AWL=0.189,\r
+  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id n_Gnzb2W-XqJ for <notmuch@notmuchmail.org>;\r
+ Sat, 26 Sep 2015 04:13:10 -0700 (PDT)\r
+Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com\r
+ [209.85.212.171])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 826776DE02D2\r
+ for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 04:13:10 -0700 (PDT)\r
+Received: by wicgb1 with SMTP id gb1so49523662wic.1\r
+ for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 04:13:09 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=jxu1TJb6YYvUAqn4PydEN+Sp5TKWDUQaYE2N/8SE+j4=;\r
+ b=FYWLAk4y8Lz5suKGFfsOMpYkFqMNU+t1aya7nXmJJd3mQaXGb5pyetZnBpR4/XPYYv\r
+ QrvRNw+BNu5NZaA4vvpjrQwMRpIkcs3njnhshPG+jKvuhyYlwq/Jh6TVEn3p/+jnkmlc\r
+ Hbhh3n9z8iCbf8o4jJCSh/ZL0+QX54GHFrbe112l/3qf+5wuMKHKEJPNNenzxd1oW90K\r
+ REFotZsUG5ceAKfHDjKtBLvHqp+iRwNKkuVHImviGOWkI1jeZ9gVmDL5N9wDMSTn49mf\r
+ TzJnU2YJvlMwBUMKLX6rRlzSCknqF9dCHq8F5QJg9pIG1j0iE3p/w0YCGvhAXtDX6MpJ\r
+ nSaA==\r
+X-Gm-Message-State:\r
+ ALoCoQnbF5m+7W6A29CHQkerp0c1IQOnBWfC4qly4OX7p7tlJMFJJtoeTYXftsuQXGgLGDd61pGH\r
+X-Received: by 10.180.198.109 with SMTP id jb13mr8498499wic.17.1443265988850; \r
+ Sat, 26 Sep 2015 04:13:08 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee63-221.dhcp.inet.fi.\r
+ [188.238.99.221])\r
+ by smtp.gmail.com with ESMTPSA id c2sm7828271wiy.11.2015.09.26.04.13.07\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sat, 26 Sep 2015 04:13:08 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] completion: handle notmuch address --deduplicate= option\r
+Date: Sat, 26 Sep 2015 14:12:50 +0300\r
+Message-Id: <1443265970-9875-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 26 Sep 2015 11:13:12 -0000\r
+\r
+Complete notmuch address --deduplicate=(no|mailbox|address).\r
+---\r
+ completion/notmuch-completion.bash | 6 +++++-\r
+ 1 file changed, 5 insertions(+), 1 deletion(-)\r
+\r
+diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash\r
+index 960275d1f672..68b069013655 100644\r
+--- a/completion/notmuch-completion.bash\r
++++ b/completion/notmuch-completion.bash\r
+@@ -369,12 +369,16 @@ _notmuch_address()\r
+           COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )\r
+           return\r
+           ;;\r
++      --deduplicate)\r
++          COMPREPLY=( $( compgen -W "no mailbox address" -- "${cur}" ) )\r
++          return\r
++          ;;\r
+     esac\r
\r
+     ! $split &&\r
+     case "${cur}" in\r
+       -*)\r
+-          local options="--format= --output= --sort= --exclude="\r
++          local options="--format= --output= --sort= --exclude= --deduplicate="\r
+           compopt -o nospace\r
+           COMPREPLY=( $(compgen -W "$options" -- ${cur}) )\r
+           ;;\r
+-- \r
+2.1.4\r
+\r