Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 72430417339 for ; Wed, 21 Apr 2010 19:37:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Xdh4hB3a1SW for ; Wed, 21 Apr 2010 19:37:41 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id C83C5418C37 for ; Wed, 21 Apr 2010 19:37:39 -0700 (PDT) Received: from localhost ([::1] helo=x200.gr8dns.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O4mIK-0005P4-VV; Thu, 22 Apr 2010 02:37:37 +0000 Received: by x200.gr8dns.org (Postfix, from userid 500) id 6063FC0212; Wed, 21 Apr 2010 19:37:36 -0700 (PDT) From: Dirk Hohndel To: Carl Worth , Michal Sojka , Sebastian Spaeth Subject: Re: [PATCH 1/2] Add 'cat' subcommand In-Reply-To: <871ve8wc30.fsf@yoom.home.cworth.org> References: <1271747793-17507-1-git-send-email-sojkam1@fel.cvut.cz> <87pr1u7fnu.fsf@ut.hh.sledj.net> <87fx2qmtok.fsf@SSpaeth.de> <4BCD7EA0.3080505@fel.cvut.cz> <871ve8wc30.fsf@yoom.home.cworth.org> Date: Wed, 21 Apr 2010 19:37:36 -0700 Message-ID: User-Agent: notmuch 0.2-52-ga28d2fe (Emacs 23.1.1/i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Thu, 22 Apr 2010 02:37:43 -0000 On Wed, 21 Apr 2010 17:44:03 -0700, Carl Worth wrote: > On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka wrote: > > On 20.4.2010 09:21, David Edmondson wrote: > > > I'm puzzled why you chose to pass a filename as the argument to 'cat' > > > rather than a message id (id:foo@bar.com)? > > > > The reason is that I want be able to distinguish between several > > messages with the same id. > > All other commands currently accept the generic search terms to specify > messages, (even a command like "notmuch reply" for which it would have > been natural to accept only a single message). > > So I'd prefer to have this command behave just like all others and use > the same naming. > > The question of how to unambiguously refer to a single file is > orthogonal, (and similarly applies to all commands, such as "notmuch > tag" etc.). I would recommend supporting a search syntax something like: > > filename:/complete/path/to/file should we extend this to something generic that allows remote specifications? URI:file/path/to/local/file URI:ssh/user@host/path/to/file URI:git/user@host/path/to/file or even (yikes) URI:ftp/user@host/path/to/file I'm using '/' to separate components, assuming that ':' should be used only for keywords in the search syntax - if the parser is flexible enough we could of course use the standard URI syntax instead http://en.wikipedia.org/wiki/URI_scheme#Generic_syntax foo://username:password@example.com:8042/over/there/index.dtb?type=animal;name=ferret#nose That would allow to encode the query in a standard way in the remote syntax... /D -- Dirk Hohndel Intel Open Source Technology Center