Deprecated notmuch "part" and "search-tags" commands

Carl Worth cworth at cworth.org
Tue May 24 12:59:05 PDT 2011


I just merged some changes by Jameson to move from the "notmuch part
--part=X" command to instead use "notmuch show --part=X". This is
fundamentally more powerful since the various --format=text|json|raw
options can now be used while limiting which message parts are show with
--part. [*] It's also a nice code reduction.

But I didn't want to break existing interfaces that might be calling
"notmuch part", (for example, somebody updating the notmuch command-line
but still using the older emacs interface).

So I just added simple support to the notmuch main program to support
aliases. With this, the "notmuch part" command is still supported by
being treated as an alias for "notmuch show --format=raw".

With the alias support in place, I also switched "notmuch search-tags"
to now be an alias for "notmuch search --output=tags *". That was a
further code reduction.

Currently, the aliases are not documented at all---the idea being that
they exist only to support interfaces still using deprecated commands.

I just wanted everyone to be aware of these recent changes. I'd be glad
to take any feedback here. Let me know.

Me, I'm quite happy to see the list of commands from "notmuch help" get
shorter by two commands, (without any reduction in available
functionality).

-Carl

[*] Though the JSON formatter still gives up on non-text parts. We might
want to extend it to encapsulate non-text parts within the json output
somehow.

-- 
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110524/4b2b9b72/attachment.pgp>


More information about the notmuch mailing list