]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: Reuse rather than reinvent message header filtering
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 29 Apr 2010 09:10:01 +0000 (11:10 +0200)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 00:05:33 +0000 (17:05 -0700)
commitc9eb047c6ca2e1c0ef48560110a53ed1acb6330f
tree9d6d4aa4fcef261b7632584589245a5bdd66b9e3
parent251d57f56b2bf22771f2d8617151ef6b3d81d04f
emacs: Reuse rather than reinvent message header filtering

In notmuch-mua-reply we were filtering out the Subject and To headers
manually in a loop, but message mode offers a nice function for
exactly that. Simplify the code by using it. Also, as notmuch-mua-mail
already sorts and hides headers that we want sorted and hidden, we can
safely remove those 2 functions from here as well.  Also remove the
(require 'cl), the only reason for its existence was the now removed
"loop" function.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
emacs/notmuch-mua.el