Allow $gRemoveAge == 0 to mean "don't expire bugs".
# This is the bugs.debian.org debbugs configuration file.
-# $Id: config.debian,v 1.20 2003/06/05 08:26:59 cjwatson Exp $
+# $Id: config.debian,v 1.21 2003/08/06 10:57:23 cjwatson Exp $
# Domains
$gEmailDomain = "bugs.debian.org";
$gMailer = "exim"; # valid: exim, qmail and sendmail
$gBug = "Bug"; # how to spell `bug'
$gBugs = "Bugs"; # how to spell `bugs'
-$gRemoveAge = 28; # days after closed bugs are cleaned out
+$gRemoveAge = 28; # days after closed bugs are cleaned out,
+ # 0 disables
$gSaveOldBugs = 1; # whether to archive such bugs
$gDefaultSeverity = "normal";
$gShowSeverities = "critical, grave, serious, important, normal, minor, wishlist, fixed";
# This is the template debbugs configuration file.
# You *must* edit it in order for debbugs to work.
-# $Id: config.in,v 1.18 2003/06/04 18:05:51 cjwatson Exp $
+# $Id: config.in,v 1.19 2003/08/06 10:57:23 cjwatson Exp $
# Domains
$gEmailDomain = "bugs.something"; # e.g. bugs.debian.org
$gMailer = "exim"; # valid: exim, qmail and sendmail
$gBug = "bug"; # how to spell `bug'
$gBugs = "bugs"; # how to spell `bugs'
-$gRemoveAge = 28; # days after closed bugs are cleaned out
+$gRemoveAge = 28; # days after closed bugs are cleaned out,
+ # 0 disables
$gSaveOldBugs = 1; # whether to archive such bugs
$gDefaultSeverity = "normal";
$gShowSeverities = "critical, grave, normal, minor, wishlist";
#!/usr/bin/perl
-# $Id: db2html.in,v 1.18 2003/05/25 14:43:30 joy Exp $
+# $Id: db2html.in,v 1.19 2003/08/06 10:57:23 cjwatson Exp $
# usage: db2html [-diff] [-stampfile=<stampfile>] [-lastrun=<days>] <wwwbase>
#load the necessary libraries/configuration
$diff = 0;
$stampfile = 'stamp.html';
$tail_html = $gHTMLTail;
-$expirynote_html = $gHTMLExpireNote;
+$expirynote_html = '';
+$expirynote_html = $gHTMLExpireNote if $gRemoveAge;
$shorthead = ' Ref * Package Keywords/Subject Submitter';
$shortindex = '';
$amonths = -1;
#!/usr/bin/perl
-# $Id: expire.in,v 1.16 2003/05/25 13:17:14 cjwatson Exp $
+# $Id: expire.in,v 1.17 2003/08/06 10:57:23 cjwatson Exp $
# Load modules and set envirnment
use File::Copy;
require("$lib_path/errorlib");
$ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'};
+# No $gRemoveAge means "never expire".
+exit 0 unless $gRemoveAge;
+
chdir("$gSpoolDir") || die "chdir spool: $!\n";
#global variables
#!/usr/bin/perl
-# $Id: process.in,v 1.76 2003/07/18 14:41:11 cjwatson Exp $
+# $Id: process.in,v 1.77 2003/08/06 10:57:23 cjwatson Exp $
#
# Usage: process nn
# Temps: incoming/Pnn
$ref= $tryref;
} else {
&htmllog("Reply","sent", $replyto,"Unknown problem report number <code>$tryref</code>.");
+ my $archivenote = '';
+ if ($gRemoveAge) {
+ $archivenote = <<END;
+This may be because that $gBug report has been resolved for more than $gRemoveAge
+days, and the record of it has been expunged, or because you mistyped
+the $gBug report number.
+
+END
+ }
&sendmessage(<<END, '');
From: $gMaintainerEmail ($gProject $gBug Tracking System)
To: $replyto
Subject line or encoded into the recipient at $gEmailDomain),
the number of a nonexistent $gBug report (#$tryref).
-This may be because that $gBug report has been resolved for more than $gRemoveAge
-days, and the record of it has been expunged, or because you mistyped
-the $gBug report number.
-
-Your message was dated $header{'date'} and was sent to
+${archivenote}Your message was dated $header{'date'} and was sent to
$baddress\@$gEmailDomain. It had
Message-ID $header{'message-id'}
and Subject $subject.