From 640d8845bffdf13007a10929ad0f18375a9a2473 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 5 Feb 2013 00:59:30 -0700 Subject: * Add color options for folders and index screen. * Add silent token to display filter * Add option to preserve To: and Cc: fields on replies. --- pith/filter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pith/filter.c') 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){ -- cgit v1.2.3-54-g00ecf