2 # $Id: service.in,v 1.16 2000/10/06 05:44:45 doogie 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) {
101 &sendlynxdoc("$ref","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, send any further explanations to $s_originator";
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
243 It has been marked as closed by one of the developers, namely
246 You should be hearing from them with a substantive response shortly,
247 if you have not already done so. If not, please contact them
251 (administrator, $gProject $gBugs database)
253 &sendmailmessage($message,$s_originator);
254 } while (&getnextbug);
257 } elsif (m/^reassign\s+\#?(\d+)\s+(\S.*\S)$/i) {
259 $ref= $1; $newpackage= $2;
260 $newpackage =~ y/A-Z/a-z/;
262 if (length($s_package)) {
263 $action= "$gBug reassigned from package \`$s_package'".
264 " to \`$newpackage'.";
266 $action= "$gBug assigned to package \`$newpackage'.";
269 &addmaintainers($s_package);
270 &addmaintainers($newpackage);
271 $s_package= $newpackage;
272 } while (&getnextbug);
274 } elsif (m/^reopen\s+\#?(\d+)$/i ? ($noriginator='', 1) :
275 m/^reopen\s+\#?(\d+)\s+\=$/i ? ($noriginator='', 1) :
276 m/^reopen\s+\#?(\d+)\s+\!$/i ? ($noriginator=$replyto, 1) :
277 m/^reopen\s+\#?(\d+)\s+(\S.*\S)$/i ? ($noriginator=$2, 1) : 0) {
281 if (!length($s_done)) {
282 &transcript("$gBug is already open, cannot reopen.\n\n");
286 $noriginator eq '' ? "$gBug reopened, originator not changed." :
287 "$gBug reopened, originator set to $noriginator.";
289 &addmaintainers($s_package);
290 $s_originator= $noriginator eq '' ? $s_originator : $noriginator;
292 } while (&getnextbug);
295 } elsif (m/^forwarded\s+\#?(\d+)\s+(\S.*\S)$/i) {
297 $ref= $1; $whereto= $2;
299 if (length($s_forwarded)) {
300 $action= "Forwarded-to-address changed from $s_forwarded to $whereto.";
302 $action= "Noted your statement that $gBug has been forwarded to $whereto.";
304 if (length($s_done)) {
305 $extramessage= "(By the way, this $gBug is currently marked as done.)\n";
308 &addmaintainers($s_package);
309 if (length($gFowardList)>0 && length($gListDomain)>0 )
310 { &addccaddress("$gFowardList\@$gListDomain"); }
311 $s_forwarded= $whereto;
312 } while (&getnextbug);
314 } elsif (m/^notforwarded\s+\#?(\d+)$/i) {
318 if (!length($s_forwarded)) {
319 &transcript("$gBug is not marked as having been forwarded.\n\n");
322 $action= "Removed annotation that $gBug had been forwarded to $s_forwarded.";
324 &addmaintainers($s_package);
326 } while (&getnextbug);
329 } elsif (m/^severity\s+\#?(\d+)\s+([-0-9a-z]+)$/i ||
330 m/^priority\s+\#?(\d+)\s+([-0-9a-z]+)$/i) {
334 if (!grep($_ eq $newseverity, @severities, "$gDefaultSeverity")) {
335 &transcript("Severity level \`$newseverity' is not known.\n".
336 "Recognised are: ".join(' ',@showseverities).".\n\n");
338 $printseverity= $s_severity;
339 $printseverity= "$gDefaultSeverity" if $printseverity eq '';
340 $action= "Severity set to \`$newseverity'.";
342 &addmaintainers($s_package);
343 $s_severity= $newseverity;
344 } while (&getnextbug);
346 } elsif (m/^retitle\s+\#?(\d+)\s+(\S.*\S)\s*$/i) {
348 $ref= $1; $newtitle= $2;
351 &addmaintainers($s_package);
352 $s_subject= $newtitle;
353 $action= "Changed $gBug title.";
355 &transcript("$action\n");
356 if (length($s_done)) {
357 &transcript("(By the way, that $gBug is currently marked as done.)\n");
363 } elsif (m/^unmerge\s+\#?(\d+)$/i) {
367 if (!length($s_mergedwith)) {
368 &transcript("$gBug is not marked as being merged with any others.\n\n");
371 $mergelowstate eq 'locked' || die "$mergelowstate ?";
372 $action= "Disconnected #$ref from all other report(s).";
373 @newmergelist= split(/ /,$s_mergedwith);
376 &addmaintainers($s_package);
377 $s_mergedwith= ($ref == $discref) ? ''
378 : join(' ',grep($_ ne $ref,@newmergelist));
379 } while (&getnextbug);
382 } elsif (m/^merge\s+(\d+(\s+\d+)+)\s*$/i) {
384 @tomerge= sort { $a <=> $b } split(/\s+/,$1);
387 while (defined($ref= shift(@tomerge))) {
388 &transcript("D| checking merge $ref\n") if $dl;
390 next if grep($_ eq $ref,@newmergelist);
391 if (!&getbug) { ¬foundbug; @newmergelist=(); last }
393 &transcript("D| adding $ref ($s_mergewith)\n") if $dl;
395 &checkmatch('package','m_package',$s_package);
396 &checkmatch('forwarded addr','m_forwarded',$s_forwarded);
397 &checkmatch('severity','m_severity',$s_severity);
398 &checkmatch('done mark','m_done',length($s_done) ? 'done' : 'open');
399 if (length($mismatch)) {
400 &transcript("Mismatch - only $gBugs in same state can be merged:\n".
402 &cancelbug; @newmergelist=(); last;
404 push(@newmergelist,$ref);
405 push(@tomerge,split(/ /,$s_mergedwith));
409 @newmergelist= sort { $a <=> $b } @newmergelist;
410 $action= "Merged @newmergelist.";
411 for $ref (@newmergelist) {
412 &getbug || die "huh ? $gBug $ref disappeared during merge";
413 &addmaintainers($s_package);
414 $s_mergedwith= join(' ',grep($_ ne $ref,@newmergelist));
417 &transcript("$action\n\n");
421 &transcript("Unknown command or malformed arguments to command.\n\n");
422 if (++$unknowns >= 5) {
423 &transcript("Too many unknown commands, stopping here.\n\n");
428 if ($procline>$#msg) {
429 &transcript(">\nEnd of message, stopping processing here.\n\n");
432 &transcript("No commands successfully parsed; sending the help text(s).\n");
437 &transcript("MC\n") if $dl>1;
439 for $maint (keys %maintccreasons) {
440 &transcript("MM|$maint|\n") if $dl>1;
441 next if $maint eq $replyto;
443 $reasonsref= $maintccreasons{$maint};
444 &transcript("MY|$maint|\n") if $dl>2;
445 for $p (sort keys %$reasonsref) {
446 &transcript("MP|$p|\n") if $dl>2;
447 $reasonstring.= ', ' if length($reasonstring);
448 $reasonstring.= $p.' ' if length($p);
449 $reasonstring.= join(' ',map("#$_",sort keys %{$$reasonsref{$p}}));
451 push(@maintccs,"$maint ($reasonstring)");
452 push(@maintccaddrs,"$maint");
455 &transcript("MC|@maintccs|\n") if $dl>2;
456 $maintccs= "Cc: ".join(",\n ",@maintccs)."\n";
457 } else { $maintccs = ""; }
460 From: $gMaintainerEmail ($gProject $gBug Tracking System)
462 ${maintccs}Subject: Processed: $header{'subject'}
463 In-Reply-To: $header{'message-id'}
464 References: $header{'message-id'}
465 Message-ID: <handler.s.$nn.transcript\@$gEmailDomain>
467 ${transcript}Please contact me if you need assistance.
470 (administrator, $gProject $gBugs database)
474 $repliedshow= join(', ',$replyto,@maintccaddrs);
475 &filelock("lock/-1");
476 open(AP,">>db/-1.log") || &quit("open db/-1.log: $!");
478 "\2\n$repliedshow\n\5\n$reply\n\3\n".
480 "<strong>Request received</strong> from <code>".
481 &sani($header{'from'})."</code>\n".
482 "to <code>".&sani($controlrequestaddr)."</code>\n".
484 "\7\n",@log,"\n\3\n") || &quit("writing db/-1.log: $!");
485 close(AP) || &quit("open db/-1.log: $!");
487 utime(time,time,"db");
489 &sendmailmessage($reply,$replyto,@maintccaddrs);
491 unlink("incoming/P$nn") || &quit("unlinking incoming/P$nn: $!");
495 map { $_->address() }
496 map { Mail::Address->parse($_) } @_;
499 sub sendmailmessage {
500 local ($message,@recips) = @_;
501 print "mailing to >@recips<\n" if $debug;
503 defined($c) || &quit("mailing forking for sendmail: $!");
504 if (!$c) { # ie, we are the child process
505 exec '/usr/lib/sendmail','-f'."$gMaintainerEmail",'-odi','-oem','-oi',get_addresses(@recips);
508 print(D $message) || &quit("writing to sendmail process: $!");
509 $!=0; close(D); $? && &quit("sendmail gave exit status $? ($!)");
514 &sendtxthelpraw("bug-log-mailserver.txt","instructions for request\@$gEmailDomain");
515 &sendtxthelpraw("bug-maint-mailcontrol.txt","instructions for control\@$gEmailDomain")
520 # &transcript("Sorry, command $_[0] not yet implemented.\n\n");
524 local ($string,$mvarname,$svarvalue) = @_;
527 eval "\$mvarvalue= \$$mvarname";
528 &transcript("D| checkmatch \`$string' /$mvarname/$mvarvalue/$svarvalue/\n")
531 "Values for \`$string' don't match:\n".
532 " #$newmergelist[0] has \`$mvarvalue';\n".
533 " #$ref has \`$svarvalue'\n"
534 if $mvarvalue ne $svarvalue;
536 &transcript("D| setupmatch \`$string' /$mvarname/$svarvalue/\n")
538 eval "\$$mvarname= \$svarvalue";
542 # High-level bug manipulation calls
543 # Do announcements themselves
545 # Possible calling sequences:
549 # &transcript(something)
553 # $action= (something)
555 # (modify s_* variables)
556 # } while (getnextbug);
559 &dlen("nochangebug");
560 $state eq 'single' || $state eq 'multiple' || die "$state ?";
562 &endmerge if $manybugs;
564 &dlex("nochangebug");
568 &dlen("setbug $ref");
569 $state eq 'idle' || die "$state ?";
572 &dlex("setbug => 0s");
575 @thisbugmergelist= split(/ /,$s_mergedwith);
576 if (!@thisbugmergelist) {
581 &dlex("setbug => 1s");
590 &dlex("setbug => 0mc");
594 $state= 'multiple'; $sref=$ref;
595 &dlex("setbug => 1m");
601 $state eq 'single' || $state eq 'multiple' || die "$state ?";
603 if (!$manybugs || !@thisbugmergelist) {
604 length($action) || die;
605 &transcript("$action\n$extramessage\n");
606 &endmerge if $manybugs;
608 &dlex("getnextbug => 0");
611 $ref= shift(@thisbugmergelist);
612 &getbug || die "bug $ref disappeared";
614 &dlex("getnextbug => 1");
618 # Low-level bug-manipulation calls
619 # Do no announcements
627 # $action= (something)
632 # [getbug (returns 0)]
633 # &transcript("$action\n\n")
636 sub notfoundbug { &transcript("$gBug number $ref not found.\n\n"); }
637 sub foundbug { &transcript("$gBug#$ref: $s_subject\n"); }
641 $mergelowstate eq 'idle' || die "$mergelowstate ?";
642 &filelock('lock/merge');
643 $mergelowstate='locked';
649 $mergelowstate eq 'locked' || die "$mergelowstate ?";
651 $mergelowstate='idle';
656 &dlen("getbug $ref");
657 $lowstate eq 'idle' || die "$state ?";
658 if (&lockreadbug($ref)) {
661 &dlex("getbug => 1");
666 &dlex("getbug => 0");
672 $lowstate eq 'open' || die "$state ?";
679 &dlen("savebug $ref");
680 $lowstate eq 'open' || die "$lowstate ?";
681 length($action) || die;
682 $ref == $sref || die "read $sref but saving $ref ?";
683 open(L,">>db/$ref.log") || &quit("opening db/$ref.log: $!");
686 "<strong>".&sani($action)."</strong>\n".
687 "Request was from <code>".&sani($header{'from'})."</code>\n".
688 "to <code>".&sani($controlrequestaddr)."</code>. \n".
690 "\7\n",@log,"\n\3\n") || &quit("writing db/$ref.log: $!");
691 close(L) || &quit("closing db/$ref.log: $!");
692 open(S,">db/$ref.status.new") || &quit("opening db/$ref.status.new: $!");
703 "$s_severity\n") || &quit("writing db/$ref.status.new: $!");
704 close(S) || &quit("closing db/$ref.status.new: $!");
705 rename("db/$ref.status.new","db/$ref.status") ||
706 &quit("installing new db/$ref.status: $!");
714 &transcript("C> @_ ($state $lowstate $mergelowstate)\n");
719 &transcript("R> @_ ($state $lowstate $mergelowstate)\n");
723 print $_[0] if $debug;
740 local ($relpath,$description) = @_;
742 open(D,"$gDocDir/$relpath") || &quit("open doc file $relpath: $!");
743 while(<D>) { $doc.=$_; }
745 &transcript("Sending $description in separate message.\n");
746 &sendmailmessage(<<END.$doc,$replyto);
747 From: $gMaintainerEmail ($gProject $gBug Tracking System)
749 Subject: $gProject $gBug help: $description
750 References: $header{'message-id'}
751 In-Reply-To: $header{'message-id'}
752 Message-ID: <handler.s.$nn.help.$midix\@$gEmailDomain>
759 local ($relpath,$description) = @_;
761 open(L,"lynx -nolist -dump http://$gWebDomain/$relpath 2>&1 |") || &quit("fork for lynx: $!");
762 while(<L>) { $doc.=$_; }
764 if ($? == 255 && $doc =~ m/^\n*lynx: Can\'t access start file/) {
765 &transcript("Information ($description) is not available -\n".
766 "perhaps the $gBug does not exist or is not on the WWW yet.\n");
769 &transcript("Error getting $description (code $? $!):\n$doc\n");
771 &transcript("Sending $description.\n");
772 &sendmailmessage(<<END.$doc,$replyto);
773 From: $gMaintainerEmail ($gProject $gBug Tracking System)
775 Subject: $gProject $gBugs information: $description
776 References: $header{'message-id'}
777 In-Reply-To: $header{'message-id'}
778 Message-ID: <handler.s.$nn.info.$midix\@$gEmailDomain>
787 $maintccreasons{$cca}{''}{$ref}= 1;
791 { # Data structure is:
792 # maintainer email address &c -> assoc of packages -> assoc of bug#'s
793 my ($p, $addmaint, $pshow);
794 &ensuremaintainersloaded;
795 $anymaintfound=0; $anymaintnotfound=0;
796 for $p (split(m/[ \t?,()]+/,$_[0]))
798 $pshow= ($p =~ m/[-+.a-z0-9]+/ ? $& : '');
799 if (defined($maintainerof{$p}))
800 { $addmaint= $maintainerof{$p};
801 &transcript("MR|$addmaint|$p|$ref|\n") if $dl>2;
802 $maintccreasons{$addmaint}{$p}{$ref}= 1;
803 print "maintainer add >$p|$addmaint<\n" if $debug;
804 } else { print "maintainer none >$p<\n" if $debug; }
808 sub ensuremaintainersloaded {
810 return if $maintainersloaded++;
811 open(MAINT,"$gMaintainerFile") || die &quit("maintainers open: $!");
815 m/^(\S+)\s+(\S.*\S)\n$/ || &quit("maintainers bogus \`$_'");
816 $a= $1; $b= $2; $a =~ y/A-Z/a-z/;
817 $maintainerof{$1}= $2;