After putting the script on your PATH as 'fitler' (don't forget to mark it +x), you can enable it in mutt with:
set display_filter=fitlerand you can have a couple of macros to turn this on and off:
macro pager o \e0o macro pager \e0o ":set nodisplay_filter\r:macro pager o \e1o\ri " macro pager \e1o ":set display_filter=fitler\r:macro pager o \e0o\ri "
Now, "o" in the pager will toggle the use of fitler on or off and redisplay the current message; it does this by having two macros "esc 0 o" and "esc 1 o" which change the display_filter setting and then remap "o" to the other macro, creating a toggle. (I think sometime in the last 5 years mutt may have grown a smarter way to do this, but I'm just cutting and pasting what's in this very venerable muttrc.).
Instead of a header like
Cc: Zzzzz Z Zzzzzz <email@example.com>, Zzzzz Zzzzzzzz <firstname.lastname@example.org>, Zzzz Zzzzz <email@example.com>, Zzzzzzzz Zzzzzz <firstname.lastname@example.org>, Zzzzzzzz Zzzz <email@example.com>, Zzzz Zzzz-Zzzz <firstname.lastname@example.org>, Zzzzzz Zzzz <email@example.com>, Zzzzz Zzzzzzzz <firstname.lastname@example.org>, Zzzz Zzzzzzzz Zzzzzzzzz <email@example.com>you'll see instead
Cc: [9 recipients] Zzzzz Z Zzzzzz, Zzzzz Zzzzzzzz, Zzzz Zzzzz, Zzzzzzzz Zzzzz...
.. hit "o" in the rare cases where you need to see the full header.
Files currently attached to this page:
Entry first conceived on 20 August 2012, 2:30 UTC, last modified on 20 August 2012, 2:45 UTC
Website Copyright © 2004-2018 Jeff Epler