tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Little change to send-pr: allow user choose MTA
Hi there,
"/usr/sbin/sendmail -oi -t" is hardcoded in send-pr script, but not
everybody uses sendmail. That is because I'm proposing the attached
patch, that is adopted by FreeBSD (don't know about other systems).
What do you guys think? May I open a PR?
P.S.: That would require a change in the man page too, to reference the
variable.
--
Silas Silva
--- send-pr.orig 2011-02-25 09:22:33.000000000 -0300
+++ send-pr 2011-02-25 09:23:38.000000000 -0300
@@ -54,7 +54,7 @@
# What mailer to use. This must come after the config file, since it is
# host-dependent.
-MAIL_AGENT="/usr/sbin/sendmail -oi -t"
+MAIL_AGENT="${MAIL_AGENT:-/usr/sbin/sendmail -oi -t}"
# How to read the passwd database.
PASSWD="cat /etc/passwd"
Home |
Main Index |
Thread Index |
Old Index