"Web Dir" => "www-dir",
"Doc Dir" => "doc-dir",
"Template Dir" => "template-dir",
+ "Not-Don-Con" => "not-don-con",
"Maintainer File" => "maintainer-file",
"Pseudo Description File" => "pseudo-description",
"Submit List" => "submit-list",
my @body; #list of commands
my $replyto; #address of to send reply to
my $transcript; #building of return message
+my @message; #holds copy of msg to apply tags
#############################################################################
# Commandline parsing
#############################################################################
# Load in template emails
#############################################################################
-@notify_done_email = Debbugs::Email::LoadEmail(
+@notify_done_email = Debbugs::Email::LoadEmail( $Globals{ 'template-dir' }.'/'.$Globals{ 'not-don-con' } );
#############################################################################
# Find file name and load input file
$action= "$gBug closed, ack sent to submitter - they'd better know why !";
do {
&addmaintainers($s_package);
- if ( length( $gDoneList ) > 0 && length( $gListDomain ) >
- 0 ) { &addccaddress("$gDoneList\@$gListDomain"); }
+ if ( length( $gDoneList ) > 0 && length( $gListDomain ) > 0 )
+ { &addccaddress("$gDoneList\@$gListDomain"); }
$s_done= $replyto;
- $message= <<END;
-From: $gMaintainerEmail ($gProject $gBug Tracking System)
-To: $s_originator
-Subject: $gBug#$ref acknowledged by developer
- ($s_subject)
-References: $header{'message-id'} $s_msgid
-In-Reply-To: $s_msgid
-Message-ID: <handler.$ref.$nn.notifdonectrl.$midix\@$gEmailDomain>
-
-This is an automatic notification regarding your $gBug report.
-
-It has been marked as closed by one of the developers, namely
-$replyto.
-
-You should be hearing from them with a substantive response shortly,
-if you have not already done so. If not, please contact them
-directly or myself.
-
-$gMaintainer
-(administrator, $gProject $gBugs database)
-END
- &sendmailmessage($message,$s_originator);
+ @message = @notify_done_email;
+ &Debbugs::Email::ProcessTags( ... );
+ &sendmailmessage( join( "\n", @message), $s_originator );
} while (&getnextbug);
}
}
Work Dir = /var/lib/debbugs/spool
Web Dir = /var/lib/debbugs/www
Doc Dir = /var/lib/debbugs/www/txt
+Template Dir = /etc/debbugs/emails
Maintainer File = /etc/debbugs/Maintainers
+##########################################################################
+# Emails #
+# *-con are control/request responses. Without -con are used by process #
+# not-* are notifing submitter responeses #
+# *-don[-con] are respones relating to "done" or "close" actions #
+##########################################################################
+Not-Don-Con = notify-done-control.txt
+
##########################################################################
# Lists #
##########################################################################