Age | Commit message (Collapse) | Author |
|
Ignored signals, such as SIGPIPE in Mutt, are inherited by child
processes. This can cause incorrect behavior in filter-like programs
that expect SIGPIPE to be the default value of "Term".
A couple other places in Mutt already reset SIGTERM, SIGTSTP, and
SIGCONT, with a comment mentioning it really wasn't necessary. Since
I don't much like messing with signals, I'll leave those resets in.
Extract those plus SIGPIPE into a new function,
mutt_reset_child_signals() and add that before each exec call.
Thanks to Vincent Lefèvre for reporting the issue and for the initial
patch, which this commit is based upon.
|
|
The result of
find . -name "*.[ch]" -exec emacs -batch {} \
--eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
|
|
When viewing attachments externally with a (non-copiousoutput) mailcap
entry missing %s, the command is invoked as a filter, with the
attachment piped into stdin. However, unlike a filter, the user
interacts with the command, instead of just displaying the output in
the pager.
Just as with the mutt_system() command, Mutt needs to send imap
keepalives to keep those connections from closing during the
potentially extended invocation.
Thanks to John Hawkinson for the bug report, and his suggested patch,
which this commit is based upon.
|
|
Changeset 37209157e33c converted filters to use the envlist.
Unfortunately, I missed that pgp.c sets GPG_TTY when using the GnuPG
agent. Convert to add GPG_TTY to the envlist too.
|
|
The new setenv patch neglected to pass the envlist for filters too.
Unfortunately, the filter code was already set up to pass COLUMNS to
children, so it needed to be changed to add this to the envlist
instead.
Factor out mutt_envlist_set() from the parse_setenv() function, which
the filter code can then use to set COLUMNS after forking.
|
|
This allows filters to automatically (or via a command line argument)
adjust to the width of the pager/index. This is even more important
with the sidebar, since the width of the pager is smaller than the
terminal width.
Thanks to Vincent Lefèvre for his helpful information and suggestions,
and to Richard Russon for the initial patches.
|
|
|
|
|
|
|
|
Remove it from mutt.h
|
|
|
|
|
|
when merging changes.
|
|
gcc shut up about this.
|
|
|
|
|