This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MIME decode: Content-Type ext for other unnamed parts

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Usher
Junior Member
Junior Member


Joined: 11 Mar 2011
Posts: 31

PostPosted: Tue Jun 12, 2018 10:30 am    Post subject: MIME decode: Content-Type ext for other unnamed parts Reply with quote

ghisler(Author) wrote:
30.05.18 Release Total Commander 9.20 beta 5 (32/64)
(...)
29.05.18 Added: Decoding of MIME files where the name wasn't given -> use .txt extension for TEXT/PLAIN fields, and .htm for TEXT/HTML instead of .bin (32/64)

I think it's also possible to use Content-Type declared for other MIME types, when dealing with unnamed files, f.e.
* Content-Type: image/jpeg – add jpeg extension
* Content-Type: text/css – add css extension
* Content-Type: application/epub+zip – add epub extension
etc.

Current list of media types is available at IANA site here: https://www.iana.org/assignments/media-types/media-types.xhtml

The list is very long and contains many exotic types so I don't think it should be fully supported. Some most common types (f.e. image/jpeg, image/png, image/gif) can be hardcoded like text/plain and text/html now, but the best solution is to keep media type list available for user editing.
It may be a separate list or a part of wincmd.ini, something like:
Code:
[MediaTypes]
txt=text/plain
html=txt/html
jpeg=image/jpeg
png=image/png
epub=application/epub+zip
dat=unsupported

The last entry is extension for unsupported media types. I think it should be also user defined. TC uses bin here, but some popular email clients (f.e. MS Outlook, Outlook Express, Windows Mail/Live Mail) use (or used in the past) dat extension.
_________________
Regards from Poland
Andrzej P. Wozniak
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35745
Location: Switzerland

PostPosted: Wed Jun 13, 2018 11:26 am    Post subject: Reply with quote

I'm aware of that. But normally in e-mails just the text doesn't have a name, the attachments usually have one.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Usher
Junior Member
Junior Member


Joined: 11 Mar 2011
Posts: 31

PostPosted: Fri Jun 15, 2018 2:01 pm    Post subject: Reply with quote

I think that people mostly don't use TC for decoding or viewing normal, standard-compliant emails. I'd rather expect using these features for spam or other suspicious messages. Such messages are usually generated automatically and don't conform internet standards, so they may contain unnamed parts.
There may be also "normal emails" – containing invoices, notifications, confirmations etc. generated automatically by lame corporation software. In such cases it may be difficult to recognize which email comes from real corpo and which one is spoofed and malicious.
_________________
Regards from Poland
Andrzej P. Wozniak
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group