Stripmime permissions

Hi all,

I have a problem with stripmime. I know this isn’t strictly RT but
lots of rt people use it so maybe someone knows how to fix this:

I run RT1.0.7 on RH 6.2 with Postfix for mail and Apache1.3.2.

RT works fine and so does stripmime except for 1 small glitch:

The mail attachments are correctly placed in /var/www/stripmime
but permissions on the files are changed to 700 with owner
"nobody" (the postfix user).

The stripmime script seems to set permissions to 755 (as shown
below) - but this doesn’t happen.

Can anyone help?

Frances

sub main {

Create a new MIME parser:

my $parser = new MIME::Parser;

 # Set the output directory:
 (-d "$basefilepath") or mkdir "$basefilepath",0755 or die "mkdir:

$!";
(-w “$basefilepath”) or die “can’t write to directory”;
$parser->output_dir($basefilepath);
open (OUT, “|$outputprog”);

$parser->output_prefix("msgauto");