diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:59:44 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:59:44 +0200 |
| commit | 28a18a27e3253f7afcb17569f98655d6f559b316 (patch) | |
| tree | 26b7e202953331c022ea11bf30f9bc423b02116a | |
| parent | 3e3113098225e151732871708fe5549d4b17a7ca (diff) | |
Separate program and program args
| -rw-r--r-- | FICS/config.h | 3 | ||||
| -rw-r--r-- | FICS/utils.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/FICS/config.h b/FICS/config.h index 6edcb66..2396919 100644 --- a/FICS/config.h +++ b/FICS/config.h @@ -65,7 +65,8 @@ * options. These may differ significantly depending on the type of * system and what mailer is installed. */ -#define SENDMAILPROG "/usr/sbin/sendmail -t" +#define SENDMAILPROG "/usr/sbin/sendmail" +#define SENDMAILPROG_ARGS "-t" /* * Details of the head admin diff --git a/FICS/utils.c b/FICS/utils.c index a48f4bd..b3a37ab 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -224,7 +224,7 @@ mail_string_to_address(char *addr, char *subj, char *str) char com[1000]; #ifdef SENDMAILPROG - snprintf(com, sizeof com, "%s\n", SENDMAILPROG); + snprintf(com, sizeof com, "%s %s\n", SENDMAILPROG, SENDMAILPROG_ARGS); #else snprintf(com, sizeof com, "%s -s \"%s\" %s", MAILPROGRAM, subj, addr); #endif @@ -268,7 +268,7 @@ mail_file_to_address(char *addr, char *subj, char *fname) (void) tmp; #ifdef SENDMAILPROG - snprintf(com, sizeof com, "%s\n", SENDMAILPROG); + snprintf(com, sizeof com, "%s %s\n", SENDMAILPROG, SENDMAILPROG_ARGS); #else snprintf(com, sizeof com, "%s -s \"%s\" %s < %s&", MAILPROGRAM, subj, addr, fname); |
