From: ajt <> Date: Sun, 27 Oct 2002 22:54:02 +0000 (-0800) Subject: [project @ 2002-10-27 14:54:02 by ajt] X-Git-Tag: release/2.6.0~1015 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0e8f716a84a6796ce29b0f5776e8ad41d4242847;p=debbugs.git [project @ 2002-10-27 14:54:02 by ajt] clean up horrible indenting in process.in --- diff --git a/scripts/process.in b/scripts/process.in index c5065063..78c78005 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: process.in,v 1.53 2002/10/21 08:37:29 cjwatson Exp $ +# $Id: process.in,v 1.54 2002/10/27 14:54:02 ajt Exp $ # # Usage: process nn # Temps: incoming/Pnn @@ -29,9 +29,10 @@ $tryref= length($2) ? $2+0 : -1; $nn= $_; if (!rename("incoming/G$nn","incoming/P$nn")) -{ $_=$!.''; m/no such file or directory/i && exit 0; +{ + $_=$!.''; m/no such file or directory/i && exit 0; &quit("renaming to lock: $!"); -} +} $baddress= 'submit' if $codeletter eq 'B'; $baddress= 'maintonly' if $codeletter eq 'M'; @@ -101,7 +102,7 @@ for my $hdr (@headerlines) { my $ins = !m/^subject:/i && !m/^reply-to:/i && !m/^return-path:/i && !m/^From / && !m/^X-Debbugs-CC:/i && !m/^received:/i; $fwd .= $hdr."\n" if $ins; -# print DEBUG ">$_<\n"; + # print DEBUG ">$_<\n"; if (s/^(\S+):\s*//) { my $v = lc $1; print DEBUG ">$v=$_<\n"; @@ -167,17 +168,23 @@ END # RFC822 actually lists it as an `optional-field'. $subject= '(no subject)'; -} else { $subject= $header{'subject'}; } +} else { + $subject= $header{'subject'}; +} $ref=-1; $subject =~ s/^Re:\s*//i; $_= $subject."\n"; -if ($tryref < 0 && m/^Bug ?\#(\d+)\D/i) { $tryref= $1+0; } +if ($tryref < 0 && m/^Bug ?\#(\d+)\D/i) { + $tryref= $1+0; +} if ($tryref >= 0) -{ $bfound= &lockreadbugmerge($tryref); - if ($bfound) { $ref= $tryref; } - else - { &htmllog("Reply","sent", $replyto,"Unknown problem report number $tryref."); +{ + $bfound= &lockreadbugmerge($tryref); + if ($bfound) { + $ref= $tryref; + } else { + &htmllog("Reply","sent", $replyto,"Unknown problem report number $tryref."); &sendmessage(< 0 && length( $gFowardList ) > 0 ) - { $generalcc= "$gFowardList\@$gListDomain"; } - else { $generalcc=''; } - } else - { (&appendlog,&finish) if length($s_done); + if ( length( $gListDomain ) > 0 && length( $gFowardList ) > 0 ) { + $generalcc= "$gFowardList\@$gListDomain"; + } else { + $generalcc=''; + } + } else { + (&appendlog,&finish) if length($s_done); $receivedat= "done\@$gEmailDomain"; $markaswhat= 'done'; $set_done= $header{'from'}; - if ( length( $gListDomain ) > 0 && length( $gDoneList ) > 0 ) - { $generalcc= "$gDoneList\@$gListDomain"; } - else { $generalcc=''; } + if ( length( $gListDomain ) > 0 && length( $gDoneList ) > 0 ) { + $generalcc= "$gDoneList\@$gListDomain"; + } else { + $generalcc=''; + } } - if ($ref<0) - { &htmllog("Warning","sent",$replyto,"Message ignored."); + if ($ref<0) { + &htmllog("Warning","sent",$replyto,"Message ignored."); &sendmessage(<); close(O); - if ($codeletter eq 'F') - { &htmllog("Reply","sent",$replyto,"You have marked $gBug as forwarded."); + if ($codeletter eq 'F') { + &htmllog("Reply","sent",$replyto,"You have marked $gBug as forwarded."); &sendmessage(<\n".&sani($brokenness)."\n

\n" : ''; $htmlbreak =~ s/\n\n/\n

\n\n/g; if (length($resentccval)) { - $htmlbreak = - " Copy sent to ".&sani($resentccval).".". + $htmlbreak = " Copy sent to ".&sani($resentccval).".". $htmlbreak; } if ($newref) { @@ -962,13 +989,13 @@ sub checkmaintainers { push @addsrcaddrs, "$p\@packages.qa.debian.org"; } if (defined($maintainerof{$p})) { -print DEBUG "maintainer add >$p|$maintainerof{$p}<\n"; + print DEBUG "maintainer add >$p|$maintainerof{$p}<\n"; $addmaint= $maintainerof{$p}; push(@maintaddrs,$addmaint) unless $addmaint eq $replyto || grep($_ eq $addmaint, @maintaddrs); $anymaintfound++; } else { -print DEBUG "maintainer none >$p<\n"; + print DEBUG "maintainer none >$p<\n"; push(@maintaddrs,$gUnknownMaintainerEmail) unless $anymaintnotfound; $anymaintnotfound++; last;