-queuerunner.pl:
- - silence unless there is a message in the queue or an error occurs. (makes cron mails more
- useful)
-
control.pl:
- followup <BUGID> (shortcut for "graft <BUGID> !")
- way to reference the root of the thread. (From iwj)
my @ids;
-print STDOUT "Process $$ running queue runner\n";
+#print STDOUT "Process $$ running queue runner\n";
while (1) {
if ( -f "queuerunner.stop" ) {
- print( STDERR "stopping on request\n" ) or die $!;
+ print( STDERR "[$$] stopping on request\n" ) or die $!;
last;
}
if ( !@ids ) {
my $c;
if ( $id =~ m/^A/ ) {
- print( STDOUT "[$nf] $id maildrop ..." ) || die $!;
+ print( STDOUT "[$$] [$nf] $id maildrop ..." ) || die $!;
defined( $c = fork ) || die $!;
if ( !$c ) {
exec( "$Emesinae::Paths::SCRIPTS_DIR/insertmail.pl", $id );
}
}
elsif ( $id =~ m/^C/ ) {
- print( STDOUT "[$nf] $id control ..." ) || die $!;
+ print( STDOUT "[$$] [$nf] $id control ..." ) || die $!;
defined( $c = fork ) || die $!;
if ( !$c ) {
exec( "$Emesinae::Paths::SCRIPTS_DIR/control.pl", $id );
}
}
elsif ( $id =~ m/^O/ ) {
- print( STDOUT "[$nf] $id outgoing ..." ) || die $!;
+ print( STDOUT "[$$] [$nf] $id outgoing ..." ) || die $!;
defined( $c = fork ) || die $!;
if ( !$c ) {
exec( "$Emesinae::Paths::SCRIPTS_DIR/sendmail.pl", $id );
$cc == $c || die "$cc $c $!";
my $status = $?;
if ($status) {
- print( STDERR "$id: process failed ($status $!) - now in [GP]$id\n" )
+ print( STDERR "[$$] $id: process failed ($status $!) - now in [GP]$id\n" )
|| die $!;
}
print( STDOUT " done\n" ) || die $!;