#3837: [PATCH] Add width expando for external filters
--------------------------+----------------------
Reporter: flatcap | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: display | Version: 1.6.0
Resolution: | Keywords: patch
--------------------------+----------------------
Comment (by vinc17):
I suppose that the external filters are not attached to the terminal, so
that they can't run commands like {{{tput cols}}}.
I also think that we shouldn't encourage non-standard modification of the
mailcap file. And IMHO, this is not needed. Additional information can be
passed via environment variables. For the number of columns, perhaps
{{{COLUMNS}}} (which is a usual shell variable, e.g. for bash, ksh and
zsh), though it should normally not be part of the environment (but I
think that this is relatively safe here as a filter is not expected to
start a new terminal, for which {{{COLUMNS}}} would be in the way).
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3837#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent