Mailing List Archive

How to correctly interpret a filename -
In a mailpack I'm working with right now, I have the following headers:

Content-Type: application/octet-stream;
name=B961809;sz=720x300;ord=2002.04.05.18.57[1].htm
Content-Transfer-Encoding: base64
Content-ID:

My question centers around how to best assign the filename of this attachment,
namely due to the fact that according to RFC, I think that this should be saved
as 'B961809', though I have reason to believe that other email clients may
actually see this as 'B961809.htm'.

Anyone got some suggestions?

--
Paul L Daniels http://www.pldaniels.com
Linux/Unix systems Internet Development
ICQ#103642862,AOL:cinflex,IRC:inflex
A.B.N. 19 500 721 806
Re: [Inflex-general] How to correctly interpret a filename - [ In reply to ]
Dumb question: is it a web page?

cheers, Phil


On Fri, 2 May 2003, Paul L Daniels wrote:

> In a mailpack I'm working with right now, I have the following headers:
>
> Content-Type: application/octet-stream;
> name=B961809;sz=720x300;ord=2002.04.05.18.57[1].htm
> Content-Transfer-Encoding: base64
> Content-ID:
>
> My question centers around how to best assign the filename of this attachment,
> namely due to the fact that according to RFC, I think that this should be saved
> as 'B961809', though I have reason to believe that other email clients may
> actually see this as 'B961809.htm'.
>
> Anyone got some suggestions?
>
>
Re: [Inflex-general] How to correctly interpret a filename - [ In reply to ]
On Fri, 2 May 2003 10:52:21 +0930 (CST)
Phil Crooker <pcrooker@orix.com.au> wrote:

> Dumb question: is it a web page?

No, it's actually a BASE64 encoded binary file.

Hence my view that it's a way of tricking various MUA's (ie, Outlook) into
convincing the user that they're looking at a HTML page when in fact it's an
executable.

The problem is Im not sure exactly what is broken in Outlook/Express to allow it
to see the filename as B192809.htm rather than just the B****** as it should be
[. anything after those ;'s should be interpreted as further parameters, not
additional components of a filename ].

Regards

--
Paul L Daniels http://www.pldaniels.com
Linux/Unix systems Internet Development
ICQ#103642862,AOL:cinflex,IRC:inflex
A.B.N. 19 500 721 806