1 |
#! /usr/local/bin/perl -w |
#! /usr/local/bin/perl -w |
2 |
# |
# |
3 |
# Giuseppe Vacanti (cosine science & computing) |
# Giuseppe Vacanti (cosine science & computing) |
4 |
|
# Eduardo Ojero Pascual (serco) |
5 |
# |
# |
6 |
# $Id: ccfnotify,v 1.5 2005/12/07 14:48:45 ccflib Exp $ |
# After several changes in mail gtwy at ESAC, the different mail addresses |
7 |
|
# have been changed |
8 |
|
# |
9 |
|
# Mailman mail distribution lists have to be of the form: list@xmm.esac.esa.int |
10 |
|
# |
11 |
|
# $replyto for xmm-it, sas-devel should now go to : eduardo.ojero@esa.it |
12 |
|
# |
13 |
|
# $Id: ccfnotify,v 1.6 2010/02/15 13:49:16 ccflib Exp $ |
14 |
# |
# |
15 |
require 5; |
require 5; |
16 |
use FileHandle; |
use FileHandle; |
36 |
/^development$/ && do { |
/^development$/ && do { |
37 |
@to = qw/xmm-it sas-devel/; |
@to = qw/xmm-it sas-devel/; |
38 |
$subject = "Update of the $update CCF area"; |
$subject = "Update of the $update CCF area"; |
39 |
$replyto = 'xmm-it@sciops.esa.int'; |
$replyto = 'eduardo.ojero@esa.int'; |
40 |
next; |
next; |
41 |
}; |
}; |
42 |
|
|
43 |
/^release$/ && do { |
/^release$/ && do { |
44 |
@to = qw/xmm-it sas-devel/; |
@to = qw/xmm-it sas-devel/; |
45 |
$subject = "Update of the $update CCF area"; |
$subject = "Update of the $update CCF area"; |
46 |
$replyto = 'xmm-it@sciops.esa.int'; |
$replyto = 'eduardo.ojero@esa.int'; |
47 |
next; |
next; |
48 |
}; |
}; |
49 |
|
|
59 |
|
|
60 |
exit(0) if(not @names); |
exit(0) if(not @names); |
61 |
|
|
62 |
# test |
# |
63 |
#######@to = qw/gvacanti/; |
# notice that sendmail is in /usr/lib not in /usr/bin or /usr/sbin |
64 |
|
|
65 |
foreach(@to){ |
foreach(@to){ |
66 |
my $fh = new FileHandle "|/usr/lib/sendmail -t" or die ("$!\n"); |
my $fh = new FileHandle "|/usr/lib/sendmail -t" or die ("$!\n"); |
67 |
|
|
68 |
$fh->print("From: ccflib\@sciops.esa.int |
$fh->print("From: ccflib\@xmm.esac.esa.int |
69 |
Reply-To: $replyto |
Reply-To: $replyto |
70 |
To: $_\@sciops.esa.int |
To: $_\@xmm.esac.esa.int |
71 |
Subject: $subject |
Subject: $subject |
72 |
"); |
"); |
73 |
|
|
91 |
Best regards, |
Best regards, |
92 |
|
|
93 |
The XMM-Newton Calibration Librarian |
The XMM-Newton Calibration Librarian |
94 |
|
|
95 |
xmmhelp@sciops.esa.int |
xmmhelp@sciops.esa.int |
96 |
|
|
97 |
'); |
'); |