From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <82c00ddf.ADkAADWQh2YAAAAAAAAAAAPvrI0AAAACwQwAAAAAAAW9WABZ1KpW@bnc3.mailjet.com> Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 95D296DE0A89 for ; Wed, 4 Oct 2017 02:36:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.19 X-Spam-Level: X-Spam-Status: No, score=0.19 tagged_above=-999 required=5 tests=[AWL=0.412, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K8M1-IYiaRfg for ; Wed, 4 Oct 2017 02:36:46 -0700 (PDT) X-Greylist: delayed 341 seconds by postgrey-1.36 at arlo; Wed, 04 Oct 2017 02:36:46 PDT Received: from o123.p8.mailjet.com (o123.p8.mailjet.com [87.253.233.123]) by arlo.cworth.org (Postfix) with ESMTPS id 5A5596DE098B for ; Wed, 4 Oct 2017 02:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; q=dns/txt; d=bnc3.mailjet.com; i=arunisaac=3Dsystemreboot.net@bnc3.mailjet.com; s=mailjet; h=message-id:mime-version:from:to:subject:date:list-unsubscribe:in-reply-to: references:x-csa-complaints:x-mj-mid:content-type:content-transfer-encoding; bh=WZCM5fzqcSx1tpZ3PW2mF38L4d0vFtXIpk9raXhktBU=; b=lbmRcVsZxH2/46SBsiJVkcRRnCErYaW0v12jQOKpxYmFxCM4t60IZp64/ gRVRmXPy1t4OnXz8ShsXse2vxQzYwbSgnPfsd2XBG+smd8LGt+UoXQC1rqST LVhEummqHqarkds407QBzjv84JnTwcpyJTQRp3je442NwuYwc5iKfI= Message-Id: <82c00ddf.ADkAADWQh2YAAAAAAAAAAAPvrI0AAAACwQwAAAAAAAW9WABZ1KpW@mailjet.com> MIME-Version: 1.0 From: Arun Isaac To: notmuch@notmuchmail.org Subject: Re: notmuch-emacs: Fcc to top-level directory given by database.path Date: Wed, 04 Oct 2017 15:00:50 +0530 In-Reply-To: <87y3owr22c.fsf@nikula.org> References: <87fubd7ibl.fsf@tethera.net> <87y3owr22c.fsf@nikula.org> X-CSA-Complaints: whitelist-complaints@eco.de X-MJ-Mid: ADkAADWQh2YAAAAAAAAAAAPvrI0AAAACwQwAAAAAAAW9WABZ1KpW5bWNtZ9nRkS634wVdNggIQAFgUc Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2017 09:36:47 -0000 Jani Nikula writes: > On Sat, 23 Sep 2017, David Bremner wrote: >> Do you happen to know if it calls with an empty string as the folder >> name? It would be consistent with searching for that to insert at the >> top level. > > notmuch insert --folder=3D or --folder=3D"" does not work: > > String argument for option "folder" must be non-empty. > Unrecognized option: --folder=3D > > It seems that our argument parser doesn't accept empty strings at all, > which is a bit of a limitation. It would be logical for the empty string > to work here, and AFAICT the notmuch insert code would handle this if > the argument was let through the parsing. I agree. Fixing this in the `notmuch insert' argument parser is a better solution. =