[Info-vax] To MIME or not to MIME
George Cornelius
cornelius at eisner.decus.org
Mon Aug 13 09:19:47 EDT 2018
In article <00B315B1.2B4A21C6 at SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
> In article <ntNqvNtRQoS5 at eisner.encompasserve.org>, cornelius at eisner.decus.org (George Cornelius) writes:
>>In article <00B30BB2.688FB617 at SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
>>>
>>> Bingo! Problem determined.
>>>
>>>
>>> Content-Type: image/jpeg
>>> Content-Transfer-Encoding: base64
>>> Content-Disposition: attachment; filename="=?UTF-8?b?QmFsc2EuanBn?="
[Next courtesy Debian/GNU Linux]
$ base64 --help
Usage: base64 [OPTION]... [FILE]
Base64 encode or decode FILE, or standard input, to standard output.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-d, --decode decode data
-i, --ignore-garbage when decoding, ignore non-alphabet characters
-w, --wrap=COLS wrap encoded lines after COLS character (default 76).
Use 0 to disable line wrapping
[...]
$ echo "QmFsc2EuanBn" | base64 --decode | tee /tmp/rocketman
Balsa.jpg
$ od -tc /tmp/rocketman
0000000 B a l s a . j p g
0000011
$ od -tx1 /tmp/rocketman
0000000 42 61 6c 73 61 2e 6a 70 67
0000011
>>> Content-ID: <ee8bdd05-5d43-8d03-f9cd-139db0dd7eea at yahoo.com>
>>I am not surprised that MIME.EXE cannot cope with UTF-8. The unfortunate
>>part is that it does not fail in a way that leaves the output name
>>undetermined and then return you to its command prompt. Within the
>>MIME utility, once the specified filename has been parsed and saved,
>>it can be overridden later via a subsequent output command.
> FWIW, the "Balsa.jpg" email attached image which prompted my initial post was
> from a rocket kit that I'd recently received.
[...]
> It's not rocket science! ;)
Well, there's your problem.
Be careful though, you may have invented a new catch phrase for VMS
to replace the one from the old UK VAX vacuum cleaner ads!
> --
> VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
>
> I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list