SPECS: fetchsrc_request - added $MAILER instead of /usr/sbin/sendm...

twittner twittner at pld-linux.org
Tue Dec 25 17:36:02 CET 2007


Author: twittner                     Date: Tue Dec 25 16:36:02 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added $MAILER instead of /usr/sbin/sendmail with commented out
suggestion how to use this script with msmtp

---- Files affected:
SPECS:
   fetchsrc_request (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/fetchsrc_request
diff -u SPECS/fetchsrc_request:1.17 SPECS/fetchsrc_request:1.18
--- SPECS/fetchsrc_request:1.17	Sun Dec 17 14:38:47 2006
+++ SPECS/fetchsrc_request	Tue Dec 25 17:35:57 2007
@@ -1,11 +1,16 @@
 #!/bin/sh
 # $Id$
 #
+# Sending by
+MAILER='/usr/sbin/sendmail'
+# MAILER='/usr/bin/msmtp'
 # Sending via
 VIA="SENDMAIL"
 #VIA="localhost"
 VIA_ARGS=""
 #VIA_ARGS="some additional flags"
+# e.g. for msmtp:
+# VIA_ARGS='-a gmail'
 #
 # DISTFILES EMAIL
 DMAIL="distfiles at pld-linux.org"
@@ -45,8 +50,8 @@
 fi
 
 if [ "$VIA" = "SENDMAIL" ]; then
-	echo >&2 "Requesting $SPEC:$BRANCH via sendmail${VIA_ARGS:+ ($VIA_ARGS)}"
-	cat <<EOF | /usr/sbin/sendmail -t $VIA_ARGS
+	echo >&2 "Requesting $SPEC:$BRANCH via $MAILER ${VIA_ARGS:+ ($VIA_ARGS)}"
+	cat <<EOF | "$MAILER" -t -i $VIA_ARGS
 To: $DMAIL
 From: $LOGIN <$LOGIN@$HOST>
 Subject: fetchsrc_request notify
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fetchsrc_request?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list