From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A48956DE0B14 for ; Mon, 2 Oct 2017 09:29:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.017 X-Spam-Level: X-Spam-Status: No, score=0.017 tagged_above=-999 required=5 tests=[AWL=0.037, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-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 5Ls7lLwa4oMw for ; Mon, 2 Oct 2017 09:29:19 -0700 (PDT) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by arlo.cworth.org (Postfix) with ESMTPS id A75E76DE0A89 for ; Mon, 2 Oct 2017 09:29:18 -0700 (PDT) Received: by mail-lf0-f45.google.com with SMTP id b127so6669806lfe.9 for ; Mon, 02 Oct 2017 09:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=ZdkbIOn5XgUq1xitVTFzB4qhf3DolxdO9LNwFq8Kcn0=; b=fLAB4S31Xgqzz5MAf6/a+UJEpa09LEoSibhPAi3WIzVYLJb5ClVLedlxyQd9+gtAlq JWitNv8utm/M469CS5RVuX5g35G3tWsUMMBgBXX4msx8bSfaBuIkb1w121L7lIKihCvh xxx5bmYY+I1rgVFPwD9ihZmR8bkWNjTDBgJkFlae1keXXtPWhigbuI9+lLsqyiz+1L9v gt7QKPknnHakOLATK1LeLscNx95z35GQXDfRKqCgya+iVTrbRP95EHkHAcpuJhMjnBIE fdesoQ1sMOzIVX6IbPdEFbteptzw0nIP8T6DlNGzUHSd8BU9pxWXMB+nYiWSzPT+YamF lyXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=ZdkbIOn5XgUq1xitVTFzB4qhf3DolxdO9LNwFq8Kcn0=; b=nokkZQ8TQIvJPtKSDHUg0MCzn3SSakn7Bnh7h7OAQ6B/gmcVHtiQlz5Nh/fO6uXTch 73LLVGFG3ZAslezh+AAc+YEiT5jYNollokZVlPHzoXIejj46XqkYf0q+fa915840datP D0TJ7mtHcuPvXs6y1A6GIpfQNGrdu4I9n+EXgr5zeewCpBv3UHbAnElX7VlBIox8QMaw jLIGKBURh3vKkPKIRwxDyAzcsEBTfCMIsnv6Zy79on+Qm2d0tV1m+9jmSL2O9stbttGZ 7eqvZVqWO3bX5KXH4mpz48Gkr1ky0Dl/BeqGuKBshqU/dX/dvVhLDrLljzgEbW4ZWnFW gYOw== X-Gm-Message-State: AMCzsaXQIxInMK97cOX4mpuu9NLOqY69baf1mfe9tYwgHpWSs0xhl8Vc hdicSQ0QB4wkzAR9hY7lcBmYFLqUvsw= X-Google-Smtp-Source: AOwi7QCrp7n+mWtGh7VTc46T2AOoFb9wDMVltlpDNIbljC3hDLWf5pf5b3eQcDhiJByTK/0tvVRZHQ== X-Received: by 10.25.41.85 with SMTP id p82mr1073754lfp.186.1506961757037; Mon, 02 Oct 2017 09:29:17 -0700 (PDT) Received: from localhost (mobile-access-5d6a60-234.dhcp.inet.fi. [93.106.96.234]) by smtp.gmail.com with ESMTPSA id q62sm2416872ljq.57.2017.10.02.09.29.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Oct 2017 09:29:16 -0700 (PDT) From: Jani Nikula To: David Bremner , Arun Isaac , notmuch@notmuchmail.org Subject: Re: notmuch-emacs: Fcc to top-level directory given by database.path In-Reply-To: <87y3owr22c.fsf@nikula.org> References: <87fubd7ibl.fsf@tethera.net> <87y3owr22c.fsf@nikula.org> Date: Mon, 02 Oct 2017 19:29:15 +0300 Message-ID: <873771ikdg.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain 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: Mon, 02 Oct 2017 16:29:19 -0000 On Sat, 30 Sep 2017, Jani Nikula wrote: > 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= or --folder="" does not work: > > String argument for option "folder" must be non-empty. > Unrecognized option: --folder= > > 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. Turns out this is trivial to address on top of the arg parsing series: id:20171002162552.4827-1-jani@nikula.org. BR, Jani.