blob: 8169aaaf21d6a7e86e971721867e3054ff48713b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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>
|