Operating System - OpenVMS
1748195 Members
4743 Online
108759 Solutions
New Discussion юеВ

Re: MIME of RTF files with file extension DOC does not work

 
dherron
Visitor

MIME of RTF files with file extension DOC does not work

OpenVMS V8.4 on Itanium

MIME V1.93

 

Trying to use MIME to attach a text file containing a document in RichTextFormat (See attached file). The file extension is DOC. But the resulting MIME file only contains a one line snippet (See bolded info below) of the actual document.

 

>MIME

MIME> SHOW VERSION
MIME Version: V1.93
MIME> SHOW FILE_TYPES
Known File Types:
  Extension: ZIP, Content-Type: application/x-zip-compressed, Encoding: Base64
  Extension: DOC, Content-Type: text/plain, Encoding: 7bit/8bit
  Extension: RTF, Content-Type: text/plain, Encoding: 7bit/8bit
  Extension: TXT, Content-Type: text/plain, Encoding: 7bit/8bit
  Extension: LPT, Content-Type: text/plain, Encoding: 7bit/8bit
  Extension: HTML, Content-Type: text/html, Encoding: 7bit/8bit
  Extension: HTM, Content-Type: text/html, Encoding: 7bit/8bit
  Extension: JPEG, Content-Type: image/jpeg, Encoding: Base64
  Extension: JPG, Content-Type: image/jpeg, Encoding: Base64
  Extension: GIF, Content-Type: image/gif, Encoding: Base64
  Extension: TXT, Content-Type: text/plain; charset=ISO-8859-1, Encoding: 7bit/8bit
  Extension: OLB, Content-Type: application/vms-olb, Encoding: Base64
  Extension: OBJ, Content-Type: application/vms-obj, Encoding: Base64
  Extension: MSG, Content-Type: message/rfc822, Encoding: 7bit/8bit
  Extension: LOG, Content-Type: text/plain; charset=ISO-8859-1, Encoding: 7bit/8bit
  Extension: HTML, Content-Type: text/html, Encoding: 7bit/8bit
  Extension: EXE, Content-Type: application/vms-exe, Encoding: Base64
  Extension: COM, Content-Type: text/plain; charset=ISO-8859-1, Encoding: 7bit/8bit
  Extension: BCK, Content-Type: application/vms-backup, Encoding: Base64

MIME> NEW TEST.MIME

.

.

MIME> add SRVTKT_S47697_000003_1.DOC
MIME> exit
Save current file? [Y] y
%MIME-I-SAVEFILE, saving file . . .
TEST.MIME
>type test.mime
Mime-version: 1.0
Content-Type: multipart/mixed; boundary="580919878.112235662363365455.1@OpenVMS.Mime.V1.93"
Content-Transfer-Encoding: 7bit
Message-ID: <580919878.112235662363365455.2@OpenVMS.Mime.V1.93>


--580919878.112235662363365455.1@OpenVMS.Mime.V1.93
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Test Message

--580919878.112235662363365455.1@OpenVMS.Mime.V1.93
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=SRVTKT_S47697_000003_1.DOC

S  | Damage_________ Matrl_________ Loc____ ____ ____\parW       | Dispo: Completed / NotHome / Refused / PartDamg\par
--580919878.112235662363365455.1@OpenVMS.Mime.V1.93--


Oddly enough, if I change the file extension from DOC to RTF it works, even though both DOC and RTF have the same content type definitions in SYS$MANAGER:MIME$FILETYPES.DAT

 

Have tried changing the content type from TEXT/PLAIN to the following with no avail:

text/rtf

text/richtext

application/rtf

 

Also, this works no problem on our Alpha cluster running VMS 7.3-1 and MIME 1.7

Thanks for any help or ideas,

Dan Herron

 

5 REPLIES 5
Mike Kier
Valued Contributor

Re: MIME of RTF files with file extension DOC does not work

I'm not sure where I obtained it, but my version of MIME$FILETYPES.DAT does not have a definition for RTF, but for DOC (described in the comments as a PC application) it has the following:

 

doc, application/msword, Base64

hth,

 

Practice Random Acts of VMS Marketing
dherron
Visitor

Re: MIME of RTF files with file extension DOC does not work

Ok, I imagine I have not (as of yet) received any replies to my original post as it indicated I had a work-around solution involving changing the the attachment file extension from DOC to RTF. As well, you may be wondering why I would even use a DOC file extension for a file containg an RTF formatted document. The reason is when the email recipient clicks on a DOC attachment it usually brings the document up in their preferred word processing software. Clicking on an RTF usually brings the document up in Word Pad (if they have it) which is a perfectly servicable word processor, but it is just not as "nifty".

 

However there is still the issue that when both the DOC and RTF content type definitions in the MIME$FILETYPES.DAT file are the same the results should be the same, and clearly are not.

Or am I missing something?

 

Another option would be if someone out there has an Itanium version of MIME that is before v1.93, as maybe a bug was introduced in the latest version. Could someone shoot me an Itanimum MIME executable that is prior to v1.93?

 

Or do I just call this a bug and contact OpenVMS support?

 

Thanks for your help,

Dan Herron

 

dherron
Visitor

Re: MIME of RTF files with file extension DOC does not work

Hi Mike,

Thanks for the suggestion, but it did not work. The attachment file really is just simple text and not binary data so,

content type application with Base64 does not play well with the file.  That is why I am kind of amazed that content type text/plain is not working.

 

Thanks again,

Dan

Mike Kier
Valued Contributor

Re: MIME of RTF files with file extension DOC does not work

I don't have any real expertise here, but perhaps try leaving the content-type as text/plain but change the encoding to QUOTED_PRINTABLE (my V7.3-2 version of MIME will throw an error if it isn't specified in all uppercase, maybe that's been fixed, too).

Practice Random Acts of VMS Marketing
dherron
Visitor

Re: MIME of RTF files with file extension DOC does not work

Hi Mike,

Thanks for the suggestion of using Quoted-Printable. Tried it and the mime file contains the whole document, but when the email recipient clicks on the email attachment the word processing application does not do the RTF formating.

Incidentally I was able to specify Quoted-Printable in mixed case without any problems.

 

Thanks again,

Dan