TNEF Question
Julian Field
MailScanner at ecs.soton.ac.uk
Tue Aug 14 22:00:17 IST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That code has changed quite a bit since then. I found a bug in the
external TNEF decoder support code which I have fixed.
Derek Buttineau wrote:
> On 2007-Aug-14, at 3:00 PM, Julian Field wrote:
>
>> What version are you running? I can't find that line of code.
>
> Version 4.61.7
>
> Here's what I'm showing as the replacement loop (line 288 -> 303):
>
> 288 while (defined($_ = $dirh->read)) {
> 289 #print STDERR "Directory entry is \"$_\" in \"$dir\"\n";
> 290 next unless -f "$dir/$_";
> 291 next if $_ eq $tnefname;
> 292 #next if /^msg[\d-]+\.txt$/;
> 293 $safename = $message->MakeNameSafe($_, $dir);
> 294 if (/^msg[\d-]+\.txt$/) {
> 295 ($type, $encoding) = ("text/plain", "8bit");
> 296 } else {
> 297 ($type, $encoding) = ("application/octet-stream", "base64");
> 298 if ($safename ne $_ && -f "$dir/$_") {
> 299 #print STDERR "Renaming '$dir/$_' to '$dir/$safename'\n";
> 300 my $dangerous = quotemeta $_;
> 301 rename "$dir/$dangerous", "$dir/$safename";
> 302 }
> 303 }
>
> From what I've read, it should be safe/sane to ignore the msg text
> file as it's the body content from the TNEF which will/should already
> be inline (in plain text) in the message, but just wanted to double
> check.
>
> --
> Regards,
>
> Derek Buttineau
> Internet Systems Developer
> Compu-SOLVE Internet Services
> Compu-SOLVE Technologies, Inc
>
> Phone: 705-725-1212 x255
> E-Mail: derek at csolve.net
>
>
>
Jules
- --
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1
wj8DBQFGwhfiEfZZRxQVtlQRAlwuAJ9zFWEoF1F8Q+zP6TiIWtI09qHo7ACgyvca
t1MudHM3EXVmEXXGRZ4CeWg=
=gvOR
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list