2 # $Id: service.in,v 1.10 1999/12/17 19:44:08 gecko Exp $
4 # Usage: service <code>.nn
5 # Temps: incoming/P<code>.nn
8 require('/etc/debbugs/config');
9 require('/usr/lib/debbugs/errorlib');
10 $ENV{'PATH'}= '/usr/lib/debbugs'.$ENV{'PATH'};;
11 chdir("$gSpoolDir") || die "chdir spool: $!\n";
18 m/^[RC]\.\d+$/ || &quit("bad argument");
21 if (!rename("incoming/G$nn","incoming/P$nn"))
22 { $_=$!.''; m/no such file or directory/i && exit 0;
23 &quit("renaming to lock: $!");
26 open(M,"incoming/P$nn");
31 grep((s/\n$//,s/\s+$//),@msg);
33 print "###\n",join("##\n",@msg),"\n###\n" if $debug;
35 chop($tdate= `date -u '+%a, %d %h %Y %T GMT'`);
37 Received: via spool for service; $tdate
40 for ($i=0; $i<=$#msg; $i++)
42 last unless length($_);
44 while ($msg[$i+1] =~ m/^\s/)
46 $fwd .= $msg[$i]."\n" if $ins; # Huh ? Where is ins set ?
49 print ">$_<\n" if $debug;
51 { $v= $1; $v =~ y/A-Z/a-z/;
52 print ">$v=$_<\n" if $debug;
54 } else { print "!>$_<\n" if $debug; }
57 defined($header{'from'}) || &quit("no From header");
58 $replyto= defined($header{'reply-to'}) ? $header{'reply-to'} : $header{'from'};
60 $controlrequestaddr= $control ? "control\@$gEmailDomain" : "request\@$gEmailDomain";
62 &transcript("Processing commands for $controlrequestaddr:\n\n");
67 $mergelowstate= 'idle';
71 #strip blank line(s) after header
72 while ( $i <= $#msg && !length( $msg[$i] ) ) { $fwd .= "\n"; $i++; }
74 #strip, if exists, mime header
75 if ( $msg[$i] =~ /^This is a multi-part message in MIME format./ )
76 { while ( $i <= $#msg && length( $msg[$i] ) ) { $fwd .= $msg[$i] . "\n"; $i++; }
77 while ( $i <= $#msg && !length( $msg[$i] ) ) { $fwd .= "\n"; $i++; }
79 if ( $msg[$i] =~ /^--/ || $msg[$i] =~ /^\s*$/ )
80 { while ( $i <= $#msg && length( $msg[$i] ) ) { $fwd .= $msg[$i]; $i++; }
81 while ( $i <= $#msg && !length( $msg[$i] ) ) { $fwd .= "\n"; $i++; }
85 for ($procline=$i; $procline<=$#msg; $procline++)
86 { $state eq 'idle' || print "$state ?\n";
87 $lowstate eq 'idle' || print "$lowstate ?\n";
88 $mergelowstate eq 'idle' || print "$mergelowstate ?\n";
89 $_= $msg[$procline]; s/\s+$//;
90 next unless m/\S/; next if m/^\s*\#/;
91 &transcript("> $_\n");
93 if (m/^stop\s/i || m/^quit\s/i || m/^--/ || m/^thank\s/i)
94 { &transcript("Stopping processing here.\n\n");
96 } elsif (m/^debug\s+(\d+)$/i && $1 >= 0 && $1 <= 1000) {
98 &transcript("Debug level $dl.\n\n");
99 } elsif (m/^(send|get)\s+\#?(\d{2,})$/i) {
100 $ref= $2+0; $reffile= $ref; $reffile =~ s,^..,$&/$&,;
101 &sendlynxdoc("db/$reffile.html","logs for $gBug#$ref");
102 } elsif (m/^send-detail\s+\#?(\d+)$/i) {
103 $ref= $1+0; $reffile= $ref; $reffile =~ s,^..,$&/$&,;
104 &sendlynxdoc("db/$reffile-b.html","additional logs for $gBug#$ref");
105 } elsif (m/^index(\s+full)?$/i) {
106 &sendlynxdoc("db/ix/full.html",'full index');
107 } elsif (m/^index-summary\s+by-package$/i) {
108 &sendlynxdoc("db/ix/psummary.html",'summary index sorted by package/title');
109 } elsif (m/^index-summary(\s+by-number)?$/i) {
110 &sendlynxdoc("db/ix/summary.html",'summary index sorted by number/date');
111 } elsif (m/^index(\s+|-)pack(age)?s?$/i) {
112 &sendlynxdoc("db/ix/packages.html",'index of packages');
113 } elsif (m/^index(\s+|-)maints?$/i) {
114 &sendlynxdoc("db/ix/maintainers.html",'index of maintainers');
115 } elsif (m/^index(\s+|-)maint\s+(\S.*\S)$/i) {
116 $substrg= $2; $matches=0;
117 opendir(DBD,"$gWebDir/db/ma") || die $!;
118 while (defined($_=readdir(DBD))) {
119 next unless m/^l/ && m/\.html$/;
120 &transcript("F|$_\n") if $dl>1;
121 $filename= $_; s/^l//; s/\.html$//;
122 &transcript("P|$_\n") if $dl>2;
123 while (s/-(..)([^_])/-$1_-$2/) { }
124 &transcript("P|$_\n") if $dl>2;
125 s/^(.{0,2})_/$1-20_/g; while (s/([^-]..)_/$1-20_/) { };
126 &transcript("P|$_\n") if $dl>2;
127 s/^,(.*),(.*),([^,]+)$/$1-40_$2-20_-28_$3-29_/;
128 &transcript("P|$_\n") if $dl>2;
129 s/^([^,]+),(.*),(.*),$/$1-20_-3c_$2-40_$3-3e_/;
130 &transcript("P|$_\n") if $dl>2;
132 &transcript("P|$_\n") if $dl>2;
134 while (m/-(..)_/) { $out.= $`.sprintf("%c",hex($1)); $_=$'; }
136 &transcript("M|$out\n") if $dl>1;
137 next unless index(lc $out, lc $substrg)>=0;
138 &transcript("S|$filename\n") if $dl>0;
139 &transcript("S|$out\n") if $dl>0;
141 &sendlynxdocraw("db/ma/$filename","$gBug list for maintainer \`$out'");
144 &transcript("$gBug list(s) for $matches maintainer(s) sent.\n\n");
146 &transcript("No maintainers found containing \`$substrg'.\n".
147 "Use \`index-maint' to get list of maintainers.\n\n");
150 } elsif (m/^index(\s+|-)pack(age)?s?\s+(\S.*\S)$/i) {
151 $substrg= $+; $matches=0;
152 opendir(DBD,"$gWebDir/db/pa") || die $!;
153 while (defined($_=readdir(DBD))) {
154 next unless m/^l/ && m/\.html$/;
155 &transcript("F|$_\n") if $dl>1;
156 $filename= $_; s/^l//; s/\.html$//;
157 next unless index(lc $_, lc $substrg)>=0;
158 &transcript("S|$filename\n") if $dl>0;
159 &transcript("S|$out\n") if $dl>0;
161 &sendlynxdocraw("db/pa/$filename","$gBug list for package \`$_'");
164 &transcript("$gBug list(s) for $matches package(s) sent.\n\n");
166 &transcript("No packages found containing \`$substrg'.\n".
167 "Use \`index-packages' to get list of packages.\n\n");
170 } elsif (m/^send-unmatched(\s+this|\s+-?0)?$/i) {
171 &sendlynxdoc("db/ju/unmatched-1.html","junk (this week)");
172 } elsif (m/^send-unmatched\s+(last|-1)$/i) {
173 &sendlynxdoc("db/ju/unmatched-2.html","junk (last week)");
174 } elsif (m/^send-unmatched\s+(old|-2)$/i) {
175 &sendlynxdoc("db/ju/unmatched-3.html","junk (two weeks ago)");
176 } elsif (m/^getinfo\s+(\S+)$/i) {
178 if ($file =~ m/^\./ || $file !~ m/^[-.0-9a-z]+$/ || $file =~ m/\.gz$/) {
179 &transcript("Filename $file is badly formatted.\n\n");
180 } elsif (open(P,"$gDocDir/$file")) {
182 &transcript("Info file $file appears below.\n\n");
183 $extras.= "\n---------- Info file $file follows:\n\n";
184 while(<P>) { $extras.= $_; }
187 &transcript("Info file $file does not exist.\n\n");
189 } elsif (m/^help$/i) {
193 } elsif (m/^refcard$/i) {
194 &sendtxthelp("bug-mailserver-refcard.txt","mailservers' reference card");
195 } elsif (m/^subscribe/i) {
197 There is no $gProject $gBug mailing list. If you wish to review bug reports
198 please do so via http://$gWebUrl/ or ask this mailserver
200 soon: MAILINGLISTS_TEXT
202 } elsif (m/^unsubscribe/i) {
204 soon: UNSUBSCRIBE_TEXT
205 soon: MAILINGLISTS_TEXT
207 } elsif (!$control) {
209 Unknown command or malformed arguments to command.
210 (Use control\@$gEmailDomain to manipulate reports.)
213 if (++$unknowns >= 3) {
214 &transcript("Too many unknown commands, stopping here.\n\n");
217 } elsif (m/^close\s+\#?(\d+)$/i) {
221 if (length($s_done)) {
222 &transcript("$gBug is already closed, cannot re-close.\n\n");
225 $action= "$gBug closed, ack sent to submitter - they'd better know why !";
227 &addmaintainers($s_package);
228 if ( length( $gDoneList ) > 0 && length( $gListDomain ) >
229 0 ) { &addccaddress("$gDoneList\@$gListDomain"); }
232 From: $gMaintainerEmail ($gProject $gBug Tracking System)
234 Subject: $gBug#$ref acknowledged by developer
236 References: $header{'message-id'} $s_msgid
237 In-Reply-To: $s_msgid
238 Message-ID: <handler.$ref.$nn.notifdonectrl.$midix\@$gEmailDomain>
240 This is an automatic notification regarding your $gBug report.
242 It has been marked as closed by one of the developers, namely
245 You should be hearing from them with a substantive response shortly,
246 if you have not already done so. If not, please contact them
250 (administrator, $gProject $gBugs database)
252 &sendmailmessage($message,$s_originator);
253 } while (&getnextbug);
256 } elsif (m/^reassign\s+\#?(\d+)\s+(\S.*\S)$/i) {
258 $ref= $1; $newpackage= $2;
259 $newpackage =~ y/A-Z/a-z/;
261 if (length($s_package)) {
262 $action= "$gBug reassigned from package \`$s_package'".
263 " to \`$newpackage'.";
265 $action= "$gBug assigned to package \`$newpackage'.";
268 &addmaintainers($s_package);
269 &addmaintainers($newpackage);
270 $s_package= $newpackage;
271 } while (&getnextbug);
273 } elsif (m/^reopen\s+\#?(\d+)$/i ? ($noriginator='', 1) :
274 m/^reopen\s+\#?(\d+)\s+\=$/i ? ($noriginator='', 1) :
275 m/^reopen\s+\#?(\d+)\s+\!$/i ? ($noriginator=$replyto, 1) :
276 m/^reopen\s+\#?(\d+)\s+(\S.*\S)$/i ? ($noriginator=$2, 1) : 0) {
280 if (!length($s_done)) {
281 &transcript("$gByg is already open, cannot reopen.\n\n");
285 $noriginator eq '' ? "$gBug reopened, originator not changed." :
286 "$gBug reopened, originator set to $noriginator.";
288 &addmaintainers($s_package);
289 $s_originator= $noriginator eq '' ? $s_originator : $noriginator;
291 } while (&getnextbug);
294 } elsif (m/^forwarded\s+\#?(\d+)\s+(\S.*\S)$/i) {
296 $ref= $1; $whereto= $2;
298 if (length($s_forwarded)) {
299 $action= "Forwarded-to-address changed from $s_forwarded to $whereto.";
301 $action= "Noted your statement that $gBug has been forwarded to $whereto.";
303 if (length($s_done)) {
304 $extramessage= "(By the way, this $gBug is currently marked as done.)\n";
307 &addmaintainers($s_package);
308 if (length($gFowardList)>0 && length($gListDomain)>0 )
309 { &addccaddress("$gFowardList\@$gListDomain"); }
310 $s_forwarded= $whereto;
311 } while (&getnextbug);
313 } elsif (m/^notforwarded\s+\#?(\d+)$/i) {
317 if (!length($s_forwarded)) {
318 &transcript("$gBug is not marked as having been forwarded.\n\n");
321 $action= "Removed annotation that $gBug had been forwarded to $s_forwarded.";
323 &addmaintainers($s_package);
325 } while (&getnextbug);
328 } elsif (m/^severity\s+\#?(\d+)\s+([-0-9a-z]+)$/i ||
329 m/^priority\s+\#?(\d+)\s+([-0-9a-z]+)$/i) {
333 if (!grep($_ eq $newseverity, @severities, "$gDefaultSeverity")) {
334 &transcript("Severity level \`$newseverity' is not known.\n".
335 "Recognised are: ".join(' ',@showseverities).".\n\n");
337 $printseverity= $s_severity;
338 $printseverity= "$gDefaultSeverity" if $printseverity eq '';
339 $action= "Severity set to \`$newseverity'.";
341 &addmaintainers($s_package);
342 $s_severity= $newseverity;
343 } while (&getnextbug);
345 } elsif (m/^retitle\s+\#?(\d+)\s+(\S.*\S)\s*$/i) {
347 $ref= $1; $newtitle= $2;
350 &addmaintainers($s_package);
351 $s_subject= $newtitle;
352 $action= "Changed $gBug title.";
354 &transcript("$action\n");
355 if (length($s_done)) {
356 &transcript("(By the way, that $gBug is currently marked as done.)\n");
362 } elsif (m/^unmerge\s+\#?(\d+)$/i) {
366 if (!length($s_mergedwith)) {
367 &transcript("$gBug is not marked as being merged with any others.\n\n");
370 $mergelowstate eq 'locked' || die "$mergelowstate ?";
371 $action= "Disconnected #$ref from all other report(s).";
372 @newmergelist= split(/ /,$s_mergedwith);
375 &addmaintainers($s_package);
376 $s_mergedwith= ($ref == $discref) ? ''
377 : join(' ',grep($_ ne $ref,@newmergelist));
378 } while (&getnextbug);
381 } elsif (m/^merge\s+(\d+(\s+\d+)+)\s*$/i) {
383 @tomerge= sort { $a <=> $b } split(/\s+/,$1);
386 while (defined($ref= shift(@tomerge))) {
387 &transcript("D| checking merge $ref\n") if $dl;
389 next if grep($_ eq $ref,@newmergelist);
390 if (!&getbug) { ¬foundbug; @newmergelist=(); last }
392 &transcript("D| adding $ref ($s_mergewith)\n") if $dl;
394 &checkmatch('package','m_package',$s_package);
395 &checkmatch('forwarded addr','m_forwarded',$s_forwarded);
396 &checkmatch('severity','m_severity',$s_severity);
397 &checkmatch('done mark','m_done',length($s_done) ? 'done' : 'open');
398 if (length($mismatch)) {
399 &transcript("Mismatch - only $Bugs in same state can be merged:\n".
401 &cancelbug; @newmergelist=(); last;
403 push(@newmergelist,$ref);
404 push(@tomerge,split(/ /,$s_mergedwith));
408 @newmergelist= sort { $a <=> $b } @newmergelist;
409 $action= "Merged @newmergelist.";
410 for $ref (@newmergelist) {
411 &getbug || die "huh ? $gBug $ref disappeared during merge";
412 &addmaintainers($s_package);
413 $s_mergedwith= join(' ',grep($_ ne $ref,@newmergelist));
416 &transcript("$action\n\n");
420 &transcript("Unknown command or malformed arguments to command.\n\n");
421 if (++$unknowns >= 5) {
422 &transcript("Too many unknown commands, stopping here.\n\n");
427 if ($procline>$#msg) {
428 &transcript(">\nEnd of message, stopping processing here.\n\n");
431 &transcript("No commands successfully parsed; sending the help text(s).\n");
436 &transcript("MC\n") if $dl>1;
438 for $maint (keys %maintccreasons) {
439 &transcript("MM|$maint|\n") if $dl>1;
440 next if $maint eq $replyto;
442 $reasonsref= $maintccreasons{$maint};
443 &transcript("MY|$maint|\n") if $dl>2;
444 for $p (sort keys %$reasonsref) {
445 &transcript("MP|$p|\n") if $dl>2;
446 $reasonstring.= ', ' if length($reasonstring);
447 $reasonstring.= $p.' ' if length($p);
448 $reasonstring.= join(' ',map("#$_",sort keys %{$$reasonsref{$p}}));
450 push(@maintccs,"$maint ($reasonstring)");
451 push(@maintccaddrs,"$maint");
454 &transcript("MC|@maintccs|\n") if $dl>2;
455 $maintccs= "Cc: ".join(",\n ",@maintccs)."\n";
456 } else { $maintccs = ""; }
459 From: $gMaintainerEmail ($gProject $gBug Tracking System)
461 ${maintccs}Subject: Processed: $header{'subject'}
462 In-Reply-To: $header{'message-id'}
463 References: $header{'message-id'}
464 Message-ID: <handler.s.$nn.transcript\@$gEmailDomain>
466 ${transcript}Please contact me if you need assistance.
469 (administrator, $gProject $gBugs database)
473 $repliedshow= join(', ',$replyto,@maintccaddrs);
474 &filelock("lock/-1");
475 open(AP,">>db/-1.log") || &quit("open db/-1.log: $!");
477 "\2\n$repliedshow\n\5\n$reply\n\3\n".
479 "<strong>Request received</strong> from <code>".
480 &sani($header{'from'})."</code>\n".
481 "to <code>".&sani($controlrequestaddr)."</code>\n".
483 "\7\n",@log,"\n\3\n") || &quit("writing db/-1.log: $!");
484 close(AP) || &quit("open db/-1.log: $!");
486 utime(time,time,"db");
488 &sendmailmessage($reply,$replyto,@maintccaddrs);
490 unlink("incoming/P$nn") || &quit("unlinking incoming/P$nn: $!");
494 map { $_->address() }
495 map { Mail::Address->parse($_) } @_;
498 sub sendmailmessage {
499 local ($message,@recips) = @_;
500 print "mailing to >@recips<\n" if $debug;
502 defined($c) || &quit("mailing forking for sendmail: $!");
503 if (!$c) { # ie, we are the child process
504 exec '/usr/lib/sendmail','-f'."$gMaintainerEmail",'-odi','-oem','-oi',get_addresses(@recips);
507 print(D $message) || &quit("writing to sendmail process: $!");
508 $!=0; close(D); $? && &quit("sendmail gave exit status $? ($!)");
513 &sendtxthelpraw("bug-log-mailserver.txt","instructions for request\@$gEmailDomain");
514 &sendtxthelpraw("bug-maint-mailcontrol.txt","instructions for control\@$gEmailDomain")
519 # &transcript("Sorry, command $_[0] not yet implemented.\n\n");
523 local ($string,$mvarname,$svarvalue) = @_;
526 eval "\$mvarvalue= \$$mvarname";
527 &transcript("D| checkmatch \`$string' /$mvarname/$mvarvalue/$svarvalue/\n")
530 "Values for \`$string' don't match:\n".
531 " #$newmergelist[0] has \`$mvarvalue';\n".
532 " #$ref has \`$svarvalue'\n"
533 if $mvarvalue ne $svarvalue;
535 &transcript("D| setupmatch \`$string' /$mvarname/$svarvalue/\n")
537 eval "\$$mvarname= \$svarvalue";
541 # High-level bug manipulation calls
542 # Do announcements themselves
544 # Possible calling sequences:
548 # &transcript(something)
552 # $action= (something)
554 # (modify s_* variables)
555 # } while (getnextbug);
558 &dlen("nochangebug");
559 $state eq 'single' || $state eq 'multiple' || die "$state ?";
561 &endmerge if $manybugs;
563 &dlex("nochangebug");
567 &dlen("setbug $ref");
568 $state eq 'idle' || die "$state ?";
571 &dlex("setbug => 0s");
574 @thisbugmergelist= split(/ /,$s_mergedwith);
575 if (!@thisbugmergelist) {
580 &dlex("setbug => 1s");
589 &dlex("setbug => 0mc");
593 $state= 'multiple'; $sref=$ref;
594 &dlex("setbug => 1m");
600 $state eq 'single' || $state eq 'multiple' || die "$state ?";
602 if (!$manybugs || !@thisbugmergelist) {
603 length($action) || die;
604 &transcript("$action\n$extramessage\n");
605 &endmerge if $manybugs;
607 &dlex("getnextbug => 0");
610 $ref= shift(@thisbugmergelist);
611 &getbug || die "bug $ref disappeared";
613 &dlex("getnextbug => 1");
617 # Low-level bug-manipulation calls
618 # Do no announcements
626 # $action= (something)
631 # [getbug (returns 0)]
632 # &transcript("$action\n\n")
635 sub notfoundbug { &transcript("$gBug number $ref not found.\n\n"); }
636 sub foundbug { &transcript("$gBug#$ref: $s_subject\n"); }
640 $mergelowstate eq 'idle' || die "$mergelowstate ?";
641 &filelock('lock/merge');
642 $mergelowstate='locked';
648 $mergelowstate eq 'locked' || die "$mergelowstate ?";
650 $mergelowstate='idle';
655 &dlen("getbug $ref");
656 $lowstate eq 'idle' || die "$state ?";
657 if (&lockreadbug($ref)) {
660 &dlex("getbug => 1");
665 &dlex("getbug => 0");
671 $lowstate eq 'open' || die "$state ?";
678 &dlen("savebug $ref");
679 $lowstate eq 'open' || die "$lowstate ?";
680 length($action) || die;
681 $ref == $sref || die "read $sref but saving $ref ?";
682 open(L,">>db/$ref.log") || &quit("opening db/$ref.log: $!");
685 "<strong>".&sani($action)."</strong>\n".
686 "Request was from <code>".&sani($header{'from'})."</code>\n".
687 "to <code>".&sani($controlrequestaddr)."</code>. \n".
689 "\7\n",@log,"\n\3\n") || &quit("writing db/$ref.log: $!");
690 close(L) || &quit("closing db/$ref.log: $!");
691 open(S,">db/$ref.status.new") || &quit("opening db/$ref.status.new: $!");
702 "$s_severity\n") || &quit("writing db/$ref.status.new: $!");
703 close(S) || &quit("closing db/$ref.status.new: $!");
704 rename("db/$ref.status.new","db/$ref.status") ||
705 &quit("installing new db/$ref.status: $!");
713 &transcript("C> @_ ($state $lowstate $mergelowstate)\n");
718 &transcript("R> @_ ($state $lowstate $mergelowstate)\n");
722 print $_[0] if $debug;
739 local ($relpath,$description) = @_;
741 open(D,"$gDocDir/$relpath") || &quit("open doc file $relpath: $!");
742 while(<D>) { $doc.=$_; }
744 &transcript("Sending $description in separate message.\n");
745 &sendmailmessage(<<END.$doc,$replyto);
746 From: $gMaintainerEmail ($gProject $gBug Tracking System)
748 Subject: $gProject $gBug help: $description
749 References: $header{'message-id'}
750 In-Reply-To: $header{'message-id'}
751 Message-ID: <handler.s.$nn.help.$midix\@$gEmailDomain>
758 local ($relpath,$description) = @_;
760 open(L,"lynx -nolist -dump $wwwbase/$relpath 2>&1 |") || &quit("fork for lynx: $!");
761 while(<L>) { $doc.=$_; }
763 if ($? == 255 && $doc =~ m/^\n*lynx: Can\'t access start file/) {
764 &transcript("Information ($description) is not available -\n".
765 "perhaps the $gBug does not exist or is not on the WWW yet.\n");
768 &transcript("Error getting $description (code $? $!):\n$doc\n");
770 &transcript("Sending $description.\n");
771 &sendmailmessage(<<END.$doc,$replyto);
772 From: $gMaintainerEmail ($gProject $gBug Tracking System)
774 Subject: $gProject $gBugs information: $description
775 References: $header{'message-id'}
776 In-Reply-To: $header{'message-id'}
777 Message-ID: <handler.s.$nn.info.$midix\@$gEmailDomain>
786 $maintccreasons{$cca}{''}{$ref}= 1;
790 { # Data structure is:
791 # maintainer email address &c -> assoc of packages -> assoc of bug#'s
792 my ($p, $addmaint, $pshow);
793 &ensuremaintainersloaded;
794 $anymaintfound=0; $anymaintnotfound=0;
795 for $p (split(m/[ \t?,()]+/,$_[0]))
797 $pshow= ($p =~ m/[-+.a-z0-9]+/ ? $& : '');
798 if (defined($maintainerof{$p}))
799 { $addmaint= $maintainerof{$p};
800 &transcript("MR|$addmaint|$p|$ref|\n") if $dl>2;
801 $maintccreasons{$addmaint}{$p}{$ref}= 1;
802 print "maintainer add >$p|$addmaint<\n" if $debug;
803 } else { print "maintainer none >$p<\n" if $debug; }
807 sub ensuremaintainersloaded {
809 return if $maintainersloaded++;
810 open(MAINT,"$gMaintainerFile") || die &quit("maintainers open: $!");
812 m/^(\S+)\s+(\S.*\S)\n$/ || &quit("maintainers bogus \`$_'");
813 $a= $1; $b= $2; $a =~ y/A-Z/a-z/;
814 $maintainerof{$1}= $2;