diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-July/003688.html')
| -rw-r--r-- | zarb-ml/mageia-sysadm/2011-July/003688.html | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-July/003688.html b/zarb-ml/mageia-sysadm/2011-July/003688.html new file mode 100644 index 000000000..8169aaaf2 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-July/003688.html @@ -0,0 +1,106 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] [1810] Add workaround to not send mail from schedbot user + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B1810%5D%20Add%20workaround%20to%20not%20send%20mail%20from%0A%09schedbot%20user&In-Reply-To=%3C20110705145503.GL21938%40mars-attacks.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="003689.html"> + <LINK REL="Next" HREF="003695.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] [1810] Add workaround to not send mail from schedbot user</H1> + <B>nicolas vigier</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B1810%5D%20Add%20workaround%20to%20not%20send%20mail%20from%0A%09schedbot%20user&In-Reply-To=%3C20110705145503.GL21938%40mars-attacks.org%3E" + TITLE="[Mageia-sysadm] [1810] Add workaround to not send mail from schedbot user">boklm at mars-attacks.org + </A><BR> + <I>Tue Jul 5 16:55:03 CEST 2011</I> + <P><UL> + <LI>Previous message: <A HREF="003689.html">[Mageia-sysadm] Submit log to clean +</A></li> + <LI>Next message: <A HREF="003695.html">[Mageia-sysadm] Apprentice account creation +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3688">[ date ]</a> + <a href="thread.html#3688">[ thread ]</a> + <a href="subject.html#3688">[ subject ]</a> + <a href="author.html#3688">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On Tue, 05 Jul 2011, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> wrote: + +><i> Revision: 1810 +</I>><i> Author: dmorgan +</I>><i> Date: 2011-07-05 16:42:43 +0200 (Tue, 05 Jul 2011) +</I>><i> Log Message: +</I>><i> ----------- +</I>><i> Add workaround to not send mail from schedbot user +</I>><i> We will be able to remove it as soon as we will use an other send mail hook +</I> +Yes it would be better to do that in the sendmail hook directly (like for +cia.vc hook). + +We are currently using SVN::Notify::Config "YAML-based configuration +wrapper on SVN::Notify". I think we should replace this with a shell +script using the svnnotify command, or perl script using SVN::Notify. +This would also allow us to add the author in the from. + +><i> +</I>><i> Modified Paths: +</I>><i> -------------- +</I>><i> puppet/modules/subversion/templates/hook_commit.sh +</I>><i> +</I>><i> Modified: puppet/modules/subversion/templates/hook_commit.sh +</I>><i> =================================================================== +</I>><i> --- puppet/modules/subversion/templates/hook_commit.sh 2011-07-05 00:02:55 UTC (rev 1809) +</I>><i> +++ puppet/modules/subversion/templates/hook_commit.sh 2011-07-05 14:42:43 UTC (rev 1810) +</I>><i> @@ -1,5 +1,20 @@ +</I>><i> #!/bin/sh +</I>><i> -for script in $0.d/*; do +</I>><i> + +</I>><i> +REP="$1" +</I>><i> +TXN="$2" +</I>><i> + +</I>><i> +author=$(svnlook author -t "$TXN" "$REP") +</I>><i> + +</I>><i> +# This is here only the time we use hook_sendmail.pl +</I>><i> +# We will be able to remove it when updating to a better send mail hook +</I>><i> + +</I>><i> +if [ "$author" = 'schedbot' ]; then +</I>><i> + LIST= `ls $0.d/* | grep -v hook_sendmail.pl ` +</I> +the name of the script is send_mail, not hook_sendmail.pl. + +</PRE> + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="003689.html">[Mageia-sysadm] Submit log to clean +</A></li> + <LI>Next message: <A HREF="003695.html">[Mageia-sysadm] Apprentice account creation +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3688">[ date ]</a> + <a href="thread.html#3688">[ thread ]</a> + <a href="subject.html#3688">[ subject ]</a> + <a href="author.html#3688">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |
