From: gecko <> Date: Fri, 17 Sep 1999 02:42:50 +0000 (-0800) Subject: [project @ 1999-09-16 19:42:50 by gecko] X-Git-Tag: release/2.6.0~1327 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c8b6226797d6f88bc673da000c9b48852151aa06;p=debbugs.git [project @ 1999-09-16 19:42:50 by gecko] Better Mime handling and Y2K changes --- diff --git a/scripts/process.in b/scripts/process.in index c83eb515..9cd3e7c7 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: process.in,v 1.3 1999/09/16 07:16:47 gecko Exp $ +# $Id: process.in,v 1.4 1999/09/16 19:42:50 gecko Exp $ # # Usage: process nn # Temps: incoming/Pnn @@ -75,9 +75,18 @@ for ($i=0; $i<=$#msg; $i++) { #remove blank lines while ($i <= $#msg && !length($msg[$i])) { $fwd .= "\n"; $i++; } + +#skips the "this is mime" message and any blank space after it +if ( $msg[$i] =~ /^This is a multi-part message in MIME format./ ) +{ + while ( $i <= $#msg && length( $msg[$i] ) ) { $fwd .= $msg[$i] . "\n"; $i++; } + while ( $i <= $#msg && !length( $msg[$i] ) ) { $fwd .= "\n"; $i++; } +} +#if the lines starts with -- or is nothing but blank space... +#skip to the next blank line(s) then skip past the blank line(s) if ( $msg[$i] =~ /^--/ || $msg[$i] =~ /^\s*$/ ) { - while ( $i <= $#msg && length( $msg[$i] ) ) { $fwd .= $msg[$i]; $i++; } + while ( $i <= $#msg && length( $msg[$i] ) ) { $fwd .= $msg[$i] . "\n"; $i++; } while ( $i <= $#msg && !length( $msg[$i] ) ) { $fwd .= "\n"; $i++; } } diff --git a/scripts/service.in b/scripts/service.in index 28a4f785..4a43da82 100755 --- a/scripts/service.in +++ b/scripts/service.in @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# $Id: service.in,v 1.4 1999/09/16 07:16:47 gecko Exp $ +# $Id: service.in,v 1.5 1999/09/16 19:42:50 gecko Exp $ # # Usage: service .nn # Temps: incoming/P.nn @@ -34,7 +34,7 @@ grep((s/\n$//,s/\s+$//),@msg); print DEBUG "###\n",join("##\n",@msg),"\n###\n"; -chop($tdate= `date -u '+%a, %d %h 19%y %T GMT'`); +chop($tdate= `date -u '+%a, %d %h %Y %T GMT'`); $fwd= <
$gMaintainer / +$gHTMLTail = "
$gMaintainer / $gMaintainerEmail. Last modifed: SUBSTITUTE_DTIME @@ -133,9 +133,10 @@ $gHTMLTail = "
$gMaintainer /

Debian $gBug tracking system
- copyright 1997 nCipher Corporation Ltd,
- copyright 1994-1997 Ian Jackson,
- copyright 1995 Steven Brenner.
+ copyright 1999 Darren O. Benham, + 1997 nCipher Corporation Ltd, + 1994-7 Ian Jackson, + 1995 Steven Brenner.
Available under the GPL.