diff options
author | 宋文武 <iyzsong@member.fsf.org> | 2018-10-01 14:07:48 +0800 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2018-10-07 12:22:53 +0200 |
commit | 7228d3048a89facee77689e390d5f5c091c57d73 (patch) | |
tree | 15cae4dffc52f760eea3be9f9a04de2fc19473a8 /src/mcron | |
parent | efa2f51ae329c07c54dd9d90615c96fb4045f4c8 (diff) | |
download | mcron-7228d3048a89facee77689e390d5f5c091c57d73.tar.gz mcron-7228d3048a89facee77689e390d5f5c091c57d73.tar.bz2 mcron-7228d3048a89facee77689e390d5f5c091c57d73.zip |
build: Add '--with-sendmail' configure option
This allows users to configure the Mail Transfert Agent (MTA) of their
choice.
* configure.ac: Add '--with-sendmail' option.
(SENDMAIL): Default to 'sendmail -t'.
* NEWS: Announce it.
* src/mcron/redirect.scm (with-mail-out): Assume the MTA is reading the
message for recipients.
* build-aux/guix.scm: Remove 'which' from the native-inputs.
Diffstat (limited to 'src/mcron')
-rw-r--r-- | src/mcron/redirect.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mcron/redirect.scm b/src/mcron/redirect.scm index 6711407..b7df42c 100644 --- a/src/mcron/redirect.scm +++ b/src/mcron/redirect.scm @@ -1,5 +1,6 @@ ;;;; redirect.scm -- modify job outputs ;;; Copyright © 2003 Dale Mellor <dale_mellor@users.sourceforge.net> +;;; Copyright © 2018 宋文武 <iyzsong@member.fsf.org> ;;; ;;; This file is part of GNU Mcron. ;;; @@ -170,10 +171,9 @@ (set-current-output-port (if (and (string? mailto) (string=? mailto "")) (open-output-file "/dev/null") - (open-output-pipe - (string-append config-sendmail - " " - user)))) + ;; The sendmail command should read + ;; recipients from the message header. + (open-output-pipe config-sendmail))) (set-current-input-port (car child->parent)) (display "To: ") (display user) (newline) (display "From: mcron") (newline) |