diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-02-05 00:59:30 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-02-08 21:03:59 -0700 |
commit | 640d8845bffdf13007a10929ad0f18375a9a2473 (patch) | |
tree | 2c3fa0bb9b5dfc435dbde151cedf7b4f8b7b6660 /pith/filter.c | |
parent | dc6c0f8d846e14fc6841516ad772553fc5975bd6 (diff) | |
download | alpine-640d8845bffdf13007a10929ad0f18375a9a2473.tar.xz |
* Add color options for folders and index screen.
* Add silent token to display filter
* Add option to preserve To: and Cc: fields on replies.
Diffstat (limited to 'pith/filter.c')
-rw-r--r-- | pith/filter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pith/filter.c b/pith/filter.c index b8712b23..692d6319 100644 --- a/pith/filter.c +++ b/pith/filter.c @@ -1021,7 +1021,7 @@ gf_bytes_piped(void) */ char * gf_filter(char *cmd, char *prepend, STORE_S *source_so, gf_io_t pc, - FILTLIST_S *aux_filters, int disable_reset, + FILTLIST_S *aux_filters, int silent, int disable_reset, void (*pipecb_f)(PIPE_S *, int, void *)) { unsigned char c, obuf[MAX(MB_LEN_MAX,32)]; @@ -1058,8 +1058,9 @@ gf_filter(char *cmd, char *prepend, STORE_S *source_so, gf_io_t pc, * Spawn filter feeding it data, and reading what it writes. */ so_seek(source_so, 0L, 0); - flags = PIPE_WRITE | PIPE_READ | PIPE_NOSHELL | - (!disable_reset ? PIPE_RESET : 0); + flags = PIPE_WRITE | PIPE_READ | PIPE_NOSHELL + | (silent ? PIPE_SILENT : 0) + | (!disable_reset ? PIPE_RESET : 0); if((fpipe = open_system_pipe(cmd, NULL, NULL, flags, 0, pipecb_f, pipe_report_error)) != NULL){ |