Operating System - OpenVMS
1753768 Members
4919 Online
108799 Solutions
New Discussion юеВ

Re: Bug In MIME.EXE With NULL's?

 
SOLVED
Go to solution
Robert Atkinson
Respected Contributor

Bug In MIME.EXE With NULL's?


I'm trying to MIME encode a Comma Seperated file to be emailed to a user.

Some of the fields contain NULL characters, encased in quotes.

When MIME hits one of these, it truncates the record including the CRLF record terminator.

It this a bug?

Does anyone have a Perl script that I can use to search files for a NULL and send a warning?

Are there any other utilities available that can MIME encode a file?

Rob.
17 REPLIES 17
Robert Atkinson
Respected Contributor

Re: Bug In MIME.EXE With NULL's?

I should add, I'm using the command 'MIME> ADD /TEXT' - perhaps this is why it's falling over the NULL?

Rob.
Wim Van den Wyngaert
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

Bob,

Just tried to mail a txt file with NULL, "NULL" and 'NULL' and it all arrived well (no trunc).

Mime 1.7 on VMS 7.3.

The file is ADDed without any options in mime.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

Same test with /text, same result.

Wim
Wim
Volker Halle
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

Rob,

confirmed with MIME V1.9 on OpenVMS Alpha V8.2. Maybe you need MIME> ADD/BIN file

Wim,

it's about a binary NULL character - can be created in TPU with Gold 0 Gold 3 (=SPECINS)

Volker.
Robert Atkinson
Respected Contributor

Re: Bug In MIME.EXE With NULL's?

Can't use ADD/BIN, as it comes out as a stream style record (no CRLF record terminator).

Rob.
Volker Halle
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

Rob,

ADD

/BINARY

Sets Content-Type to "application/octet-stream" and
Content-Transfer-Encoding to "Base64". This format can
be used to represent an arbitrary binary data stream.

The binary NULL correctly arrives after an ADD/BIN and sending the created MIME mail file through VMSmail locally.

Volker.
Wim Van den Wyngaert
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

OK. Bad result on 1.7 too.
But this is what I expect of binary data.

Wim
Wim
Robert Atkinson
Respected Contributor

Re: Bug In MIME.EXE With NULL's?

Is NULL really binary - it's part of the standard ASCII set?

Rob.
Wim Van den Wyngaert
Honored Contributor

Re: Bug In MIME.EXE With NULL's?

All binary values are in the ascii set.

May be better to speek of printable.

Why not zip it first ?

Wim
Wim