]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-08-16 06:39:59 by doogie]
authordoogie <>
Thu, 16 Aug 2001 13:39:59 +0000 (05:39 -0800)
committerdoogie <>
Thu, 16 Aug 2001 13:39:59 +0000 (05:39 -0800)
Add preliminary support for ###-request, in the hopes that email
subscription support will soon follow.

scripts/receive.in

index d99664ba5b2a2011d82255be9fad2778fd8ba4d5..4f27fc765ab1743cd34a25ada560f282fd4bb60f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# $Id: receive.in,v 1.9 2001/08/16 06:31:12 doogie Exp $
+# $Id: receive.in,v 1.10 2001/08/16 06:39:59 doogie Exp $
 # usage: mail is piped directly into program
 
 #set umask in order to have group-writable incoming/*
@@ -41,8 +41,11 @@ y/A-Z/a-z/;
                   '-fixed',      'X',
                    '-done',       'D',
                    '-close',      'D',
+                  '-request',    'R',
                    '-submitter',  'U');
 
+%withpkgaddressmap= ('-request',     'R');
+
 %withoutaddressmap= ('submit',     'B',
                       'bugs',       'B',
                       'maintonly',  'M',
@@ -59,6 +62,10 @@ if (s/^(\d{1,9})\b//) {
     $bugnumber= $1;
     $map= $withbugaddressmap{$_};
     $addrrec= "$bugnumber$_";
+} elsif (s/^(\w+)-//) {
+    $bugnumber= $1;
+    $map= $withpkgaddressmap{"-$_"};
+    $addrrec= "$bugnumber-$_";
 } else {
     $bugnumber= '';
     $map= $withoutaddressmap{$_};