12 |
my $msgdir = "/data/store/tmp/mime$$"; # temp |
my $msgdir = "/data/store/tmp/mime$$"; # temp |
13 |
my $from = 'clipping-info@pliva.hr'; |
my $from = 'clipping-info@pliva.hr'; |
14 |
my $to = 'clipdir@pliva.hr'; |
my $to = 'clipdir@pliva.hr'; |
15 |
|
my $log = "/data/store/mimex.log"; |
16 |
|
|
17 |
|
open(LOG,">> $log) || warn "log $log: $!"; |
18 |
|
|
19 |
open(MAIL,"| /usr/sbin/sendmail $to") || die "sendmail: $!"; |
open(MAIL,"| /usr/sbin/sendmail $to") || die "sendmail: $!"; |
20 |
|
|
47 |
mkdir "$outdir/$md5",0755 || die "mkdir $outdir/$md5: $!"; |
mkdir "$outdir/$md5",0755 || die "mkdir $outdir/$md5: $!"; |
48 |
rename $file,"$outdir/$md5/$new" || die "$file -> $md5 $new: $!"; |
rename $file,"$outdir/$md5/$new" || die "$file -> $md5 $new: $!"; |
49 |
print MAIL "\n","-" x 76,"\nhttp://store.pliva.hr/$md5/$new\n"; |
print MAIL "\n","-" x 76,"\nhttp://store.pliva.hr/$md5/$new\n"; |
50 |
|
print LOG "http://store.pliva.hr/$md5/$new\n"; |
51 |
} |
} |
52 |
} |
} |
53 |
} |
} |