X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Freceive.in;h=eb101a4029fe5cf681c1c5f2b6fe60ceb8c62c61;hb=2d519e5e0338c5b23356454c16ae1b6349c55c51;hp=3d24a3fc904ddb3f233b304c29f46b3e32f20a20;hpb=7880bc8407e8a60c51594beb44cb07ea5a250d94;p=debbugs.git diff --git a/scripts/receive.in b/scripts/receive.in index 3d24a3f..eb101a4 100755 --- a/scripts/receive.in +++ b/scripts/receive.in @@ -1,12 +1,14 @@ -#!/usr/bin/perl -w -# $Id: receive.in,v 1.8 2000/10/10 23:39:12 joy Exp $ +#!/usr/bin/perl +# $Id: receive.in,v 1.17 2005/07/24 18:42:41 don Exp $ # usage: mail is piped directly into program #set umask in order to have group-writable incoming/* -#umask 002; +#umask(002); -#load configuration file -require( '/etc/debbugs/config' ); +use Debbugs::Config qw(:globals :text); +my $lib_path = $gLibPath; + +$ENV{'PATH'} = '/usr/lib/debbugs:'.$ENV{'PATH'}; #set source of mail delivery #sets any prefix needed to get mailer to add it to error mail @@ -24,7 +26,6 @@ if ( $gMailer eq 'exim' ) s/\>//; s/\) { print(FILE) || &failure("write temporary file: $!"); } close(FILE) || &failure("close temporary file: $!"); -rename("T.$id","I$queue.$id") || &failure("rename spool message: $!"); +my $prefix; +if ($gSpamScan) { + $prefix = 'S'; +} else { + $prefix = 'I'; +} +rename("T.$id","$prefix$queue.$id") || &failure("rename spool message: $!"); exit(0);