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

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

Date: Tue, 24 May 2011 12:59:05 -0700

To: notmuch@notmuchmail.org

Cc:

From: Carl Worth


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@intel.com
part-000.sig (application/pgp-signature)

Thread: