/[CCFs]/bin/ccfnotify
ViewVC logotype

Diff of /bin/ccfnotify

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ccflib, Wed Nov 26 13:57:42 2003 UTC revision 1.9 by ccflib, Fri Dec 19 14:40:15 2014 UTC
# Line 1  Line 1 
1  #! /usr/local/bin/perl -w  #! /usr/local/bin/perl -w
2  #  #
3  # Giuseppe Vacanti (cosine science & computing)  # After several changes in mail gtwy at ESAC, the different mail addresses
4    # have been changed.
5  #  #
6  # $Id$  # Mailman mail distribution lists have to be of the form: list@xmm.esac.esa.int
7    #
8    # $replyto for xmm-it, sas-devel should now go to : eduardo.ojero@esa.it
9    #
10    # $Id: ccfnotify,v 1.8 2014/12/02 16:02:27 ccflib Exp $
11  #  #
12  require 5;  require 5;
13  use FileHandle;  use FileHandle;
# Line 28  foreach($update){ Line 33  foreach($update){
33    /^development$/ && do {    /^development$/ && do {
34      @to = qw/xmm-it sas-devel/;      @to = qw/xmm-it sas-devel/;
35      $subject = "Update of the $update CCF area";      $subject = "Update of the $update CCF area";
36      $replyto = 'xmm-it@xmm.vilspa.esa.es';      $replyto = 'eduardo.ojero@esa.int';
37      next;      next;
38    };    };
39        
40    /^release$/ && do {    /^release$/ && do {
41      @to = qw/xmm-it sas-devel/;      @to = qw/xmm-it sas-devel/;
42      $subject = "Update of the $update CCF area";      $subject = "Update of the $update CCF area";
43      $replyto = 'xmm-it@xmm.vilspa.esa.es';      $replyto = 'eduardo.ojero@esa.int';
44      next;      next;
45    };    };
46        
47    /^public$/ && do {    /^public$/ && do {
48      @to = qw/ccf xmm-it sas-devel/;      @to = qw/ccf xmm-it sas-devel/;
49      $subject = "XMM-Newton calibration update";      $subject = "XMM-Newton calibration update";
50      $replyto = 'xmmhelp@xmm.vilspa.esa.es';      $replyto = 'xmmhelp@sciops.esa.int';
51      next;      next;
52    };    };
53            
# Line 51  foreach($update){ Line 56  foreach($update){
56    
57  exit(0) if(not @names);  exit(0) if(not @names);
58        
59  # test  #
60  #######@to = qw/gvacanti/;  # notice that sendmail is in /usr/lib not in /usr/bin or /usr/sbin
61    
62  foreach(@to){  foreach(@to){
63    my $fh = new FileHandle "|/usr/lib/sendmail -t" or die ("$!\n");    my $fh = new FileHandle "|/usr/lib/sendmail -t" or die ("$!\n");
64        
65    $fh->print("From: ccflib\@xmm.vilspa.esa.es    $fh->print("From: ccflib\@xmm.esac.esa.int
66  Reply-To: $replyto  Reply-To: $replyto
67  To: $_\@xmm.vilspa.esa.es  To: $_\@xmm.esac.esa.int
68  Subject: $subject  Subject: $subject
69  ");  ");
70    
# Line 77  Subject: $subject Line 82  Subject: $subject
82      $fh->print('      $fh->print('
83  For details and download instructions please refer to:  For details and download instructions please refer to:
84    
85    http://xmm.vilspa.esa.es/calibration/    http://xmm2.esac.esa.int/external/xmm_sw_cal/calib/
86    http://xmm.vilspa.esa.es/calibration/releasenotes/    http://xmm2.esac.esa.int/external/xmm_sw_cal/calib/rel_notes
87    
88  Best regards,  Best regards,
89    
90  The XMM-Newton Calibration Librarian  The XMM-Newton Calibration Librarian
91  xmmhelp@xmm.vilspa.esa.es  
92    xmmhelp@sciops.esa.int
93    
94  ');  ');
95    
# Line 92  undef $fh; Line 98  undef $fh;
98    }    }
99    
100  }  }
   
   
   
   
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.27