<<< Date Index >>>     <<< Thread Index >>>

Re: Can one 'filter' a message being viewed?



On Wed, Oct 11, 2006 at 06:49:40PM -0700, Gary Johnson wrote:
> If you mean so that you can filter the index display, then no, there 
> is not a way to do that.

I actually did something like that just recently.  I dump a lot of
mailing lists into the same folder and wanted messages labeled by
which list they came from.  For example I wanted "[mutt-users]" to be
displayed in the subject lines for messages from this list.  My
solution was to embed a Lua interpreter into mutt, and have mutt's
index display call a Lua function to filter each subject string.

The current patch is very rough and was done mainly as a thought
experiment.  If I get a chance at some point I'll do a better version
and send it to mutt-dev.

                                                  -Dave Dodge