On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka <sojkam1 at fel.cvut.cz> 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 at 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 for that use case. And this should work fine whether the filenames are actual filenames or keys into some abstract file store of some sort. What do you think? -Carl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100421/9182bbc1/attachment.pgp>