diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-12-08 20:36:48 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-12-08 20:36:48 +0200 |
commit | 55086f9411acfcf185f8f535b301b52600c48c68 (patch) | |
tree | 228f5d277db25bfb466876faa8ad25cbd358a082 /comsat/comsat.h | |
parent | e20d435c8e310046c15acbdf47fa458fe7ead1ae (diff) | |
download | mailutils-55086f9411acfcf185f8f535b301b52600c48c68.tar.gz mailutils-55086f9411acfcf185f8f535b301b52600c48c68.tar.bz2 |
comsat: provide a fine-grained control over where biffrc errors are output
* comsat/comsat.c (biffrc_errors): New variable.
(comsat_cfg_param): New statements: biffrc-errors-to-tty and
biffrc-errors-to-err
(main): In test mode, set biffrc_errors to BIFFRC_ERRORS_TO_ERR.
* comsat/comsat.h (BIFFRC_ERRORS_TO_TTY)
(BIFFRC_ERRORS_TO_ERR): New flags.
(biffrc_errors): New variable.
* comsat/action.c (report_error): Consult biffrc_errors.
Diffstat (limited to 'comsat/comsat.h')
-rw-r--r-- | comsat/comsat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comsat/comsat.h b/comsat/comsat.h index ff4381933..2fa325744 100644 --- a/comsat/comsat.h +++ b/comsat/comsat.h @@ -68,6 +68,10 @@ #define BIFF_RC ".biffrc" +/* Where to report biffrc errors to: */ +#define BIFFRC_ERRORS_TO_TTY 0x01 /* Send them to the user's tty */ +#define BIFFRC_ERRORS_TO_ERR 0x02 /* Send them to strerr */ + extern int allow_biffrc; extern unsigned maxrequests; extern time_t request_control_interval; @@ -78,6 +82,7 @@ extern const char *username; extern char *hostname; extern struct daemon_param daemon_param; extern char *biffrc; +extern int biffrc_errors; void run_user_action (const char *device, mu_message_t msg); |