From e57c7d523224962ce2f55370b06fee94750db31c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 17 May 2024 21:03:29 +0200 Subject: split gf_io_t into gf_i_t and gf_o_t --- alpine/dispfilt.c | 5 +++-- alpine/dispfilt.h | 2 +- pith/rules.c | 3 ++- pith/state.h | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/alpine/dispfilt.c b/alpine/dispfilt.c index 25cae59f..4c415759 100644 --- a/alpine/dispfilt.c +++ b/alpine/dispfilt.c @@ -460,7 +460,7 @@ df_valid_test(struct mail_bodystruct *body, char *test) } char * -exec_function_rule(char *rawcmd, gf_io_t input_gc, gf_io_t output_pc) +exec_function_rule(char *rawcmd, gf_i_t input_gc, gf_o_t output_pc) { char *status = NULL, *cmd, *tmpfile = NULL; @@ -470,7 +470,8 @@ exec_function_rule(char *rawcmd, gf_io_t input_gc, gf_io_t output_pc) if(tmpfile){ PIPE_S *filter_pipe; FILE *fp; - gf_io_t gc, pc; + gf_i_t gc; + gf_o_t pc; STORE_S *tmpf_so; /* write the tmp file */ diff --git a/alpine/dispfilt.h b/alpine/dispfilt.h index e0e04d97..465b8e90 100644 --- a/alpine/dispfilt.h +++ b/alpine/dispfilt.h @@ -25,7 +25,7 @@ char *dfilter_trigger(BODY *, char *, size_t); char *expand_filter_tokens(char *, ENVELOPE *, char **, char **, char **, int *, int *, int *); char *filter_session_key(void); char *filter_data_file(int); -char *exec_function_rule(char *, gf_io_t, gf_io_t); +char *exec_function_rule(char *, gf_i_t, gf_o_t); #endif /* PINE_DISPFILT_INCLUDED */ diff --git a/pith/rules.c b/pith/rules.c index 3ab373e2..9792ed8f 100644 --- a/pith/rules.c +++ b/pith/rules.c @@ -1365,7 +1365,8 @@ char * exec_fcn (RULEACTION_S *action, int ctxt, ENVELOPE *env) { STORE_S *output_so; - gf_io_t gc, pc; + gf_i_t gc; + gf_o_t pc; char *status, *rv, *cmd, *test; if(!(action->context & ctxt)) diff --git a/pith/state.h b/pith/state.h index 40e6dfd0..188f3922 100644 --- a/pith/state.h +++ b/pith/state.h @@ -367,7 +367,7 @@ struct pine { struct { char *(*display_filter)(char *, STORE_S *, gf_o_t, FILTLIST_S *); char *(*display_filter_trigger)(BODY *, char *, size_t); - char *(*exec_rule)(char *, gf_io_t, gf_io_t); + char *(*exec_rule)(char *, gf_i_t, gf_o_t); } tools; KEYWORD_S *keywords; -- cgit v1.2.3-70-g09d2