--- /dev/null
+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 olra.theworths.org (Postfix) with ESMTP id 3A506431FC7\r
+ for <notmuch@notmuchmail.org>; Thu, 1 Jan 2015 06:33:43 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id NwmtLgcBZOke for <notmuch@notmuchmail.org>;\r
+ Thu, 1 Jan 2015 06:33:40 -0800 (PST)\r
+Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
+ [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id C6C9E431FC0\r
+ for <notmuch@notmuchmail.org>; Thu, 1 Jan 2015 06:33:39 -0800 (PST)\r
+Received: by mail-wi0-f176.google.com with SMTP id ex7so26721774wid.9\r
+ for <notmuch@notmuchmail.org>; Thu, 01 Jan 2015 06:33:37 -0800 (PST)\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:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type;\r
+ bh=a/oeadlxsCLgiuC4LBmYTIx/fhXwtm7ZpxraVkm2poI=;\r
+ b=J6YK3Ft6dNwMVhvSUP5jHKT06EwXzMTKY3QKZkci3sMUGPmmfDNMgCx4+snJLtYkt8\r
+ v9tqkuvBypoPO0E6vLXrINXKU527tMoX42sRCPCyhOj3/9YZIJqdOOpaKe0aX6gTufpw\r
+ YJ29arWo+N7cRQiPaNJJ0pzQJR9/LqU/q4mQOu2pX5bIHnusqEd5gmh8mYmDMFRPus5L\r
+ 5aB8oV142U1WNkR29kggJJpDuk+tzYG9ySfg2+Lg8uwHYsrp/uSv5u3OLkGVJhd+dVYH\r
+ 69s/FvS0KqYya62XcBuTl0OnZOR/gA6vSadRXsilbw2p5eIScOoyrHp3+A5G1zQUbWaV\r
+ EUcA==\r
+X-Gm-Message-State:\r
+ ALoCoQkxt7P2B5MSCHk10IdcVlECclE9UUFxf23i6dVOQE0Uv5SpdFtFgPHzpoGsgD2OMozpLlhy\r
+X-Received: by 10.180.19.193 with SMTP id h1mr124126972wie.10.1420122817549;\r
+ Thu, 01 Jan 2015 06:33:37 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c371-91.dhcp.inet.fi.\r
+ [88.195.113.91])\r
+ by mx.google.com with ESMTPSA id l6sm21191565wjx.33.2015.01.01.06.33.36\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Thu, 01 Jan 2015 06:33:36 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, David Bremner <david@tethera.net>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] completion: complete notmuch insert --folder\r
+ to maildir folders only\r
+In-Reply-To: <m2a922hf81.fsf@guru.guru-group.fi>\r
+References: <1415648143-19923-1-git-send-email-jani@nikula.org>\r
+ <1415648143-19923-2-git-send-email-jani@nikula.org>\r
+ <871tnfh7yt.fsf@maritornes.cs.unb.ca>\r
+ <m2a922hf81.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.19+3~g7585e8c (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 01 Jan 2015 16:33:45 +0200\r
+Message-ID: <87zja2woxi.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Thu, 01 Jan 2015 14:33:43 -0000\r
+\r
+On Thu, 01 Jan 2015, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> On Wed, Dec 31 2014, David Bremner <david@tethera.net> wrote:\r
+>\r
+>> Jani Nikula <jani@nikula.org> writes:\r
+>>> + local path=`notmuch config get database.path`\r
+>>> + compopt -o nospace\r
+>>> + COMPREPLY=( $(compgen -d "$path/${cur##folder:}" | \\r
+>>> + sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$"\r
+>>\r
+>> I'm a bit confused here. Why is 'folder:' being stripped? Too much\r
+>> copy-pasta?\r
+>\r
+> compgen -d wants a directory ?\r
+>\r
+> there seems to be similar strippings done in completion of\r
+> notmuch_search_terms.\r
+\r
+\r
+True, but $cur won't have folder: here. Copy-paste fail.\r
+\r
+Jani.\r
+\r
+\r
+>\r
+>>\r
+>> d\r
+>\r
+> Tomi\r
+>\r
+> PS: if it weren't inconsistent change, just on '#' would suffice ;)\r