#!/usr/bin/perl
-# $Id: service.in,v 1.95 2004/02/03 21:37:45 cjwatson Exp $
+# $Id: service.in,v 1.99 2005/04/09 16:21:02 cjwatson Exp $
#
# Usage: service <code>.nn
# Temps: incoming/P<code>.nn
use File::Copy;
use MIME::Parser;
+use Debbugs::MIME qw(decode_rfc1522);
$config_path = '/etc/debbugs';
$lib_path = '/usr/lib/debbugs';
if (s/^(\S+):\s*//) {
my $v = lc $1;
print ">$v=$_<\n" if $debug;
- $header{$v} = $_;
+ $header{$v} = decode_rfc1522($_);
} else {
print "!>$_<\n" if $debug;
}
In-Reply-To: $data->{msgid}
Message-ID: <handler.$ref.$nn.notifdonectrl.$midix\@$gEmailDomain>
Reply-To: $ref\@$gEmailDomain
+X-$gProject-PR-Message: they-closed-control $ref
This is an automatic notification regarding your $gBug report
#$ref: $data->{subject},
In-Reply-To: $data->{msgid}
Message-ID: <handler.$ref.$nn.newsubmitter.$midix\@$gEmailDomain>
Reply-To: $ref\@$gEmailDomain
+X-$gProject-PR-Message: submitter-changed $ref
The submitter address recorded for your $gBug report
#$ref: $data->{subject}
do {
&addmaintainers($data);
$data->{keywords} = '' if ($addsub eq "set");
+ # Allow removing obsolete tags.
if ($addsub eq "sub") {
foreach my $t (@badtags) {
$data->{keywords} = join ' ', grep $_ ne $t,
split ' ', $data->{keywords};
}
}
+ # Now process all other additions and subtractions.
foreach my $t (@okaytags) {
$data->{keywords} = join ' ', grep $_ ne $t,
split ' ', $data->{keywords};
References: $header{'message-id'}
Message-ID: <handler.s.$nn.transcript\@$gEmailDomain>
Precedence: bulk
+X-$gProject-PR-Message: transcript
${transcript}Please contact me if you need assistance.
In-Reply-To: $header{'message-id'}
Message-ID: <handler.s.$nn.help.$midix\@$gEmailDomain>
Precedence: bulk
+X-$gProject-PR-Message: doc-text $relpath
END
$ok++;
In-Reply-To: $header{'message-id'}
Message-ID: <handler.s.$nn.info.$midix\@$gEmailDomain>
Precedence: bulk
+X-$gProject-PR-Message: doc-html $relpath
END
$ok++;
# Data structure is:
# maintainer email address &c -> assoc of packages -> assoc of bug#'s
my $data = shift;
- my ($p, $addmaint, $pshow);
+ my ($p, $addmaint);
&ensuremaintainersloaded;
$anymaintfound=0; $anymaintnotfound=0;
for $p (split(m/[ \t?,():]+/, $data->{package})) {
$p =~ y/A-Z/a-z/;
- $pshow= ($p =~ m/[-+.a-z0-9]+/ ? $& : '');
+ $p =~ /([a-z0-9.+-]+)/;
+ $p = $1;
+ next unless defined $p;
if (defined $gSubscriptionDomain) {
if (defined($pkgsrc{$p})) {
addbcc("$pkgsrc{$p}\@$gSubscriptionDomain");
In-Reply-To: $header{'message-id'}
Message-ID: <handler.s.$nn.info.$midix\@$gEmailDomain>
Precedence: bulk
+X-$gProject-PR-Message: getinfo
$description follows: