Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading files sent in SMTP  RSS feed

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading files sent to an email address as attachments. I need to set handlers for each file type, but I want to make sure that this is standardixed. For example, does every email program use "application/x-zip-compressed" for a zip file? Where can I find all these type names?
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Email is encoded in the MIME format (Multipurpose Internet Mail Extensions). You can navigate around a bit from the Google directory MIME links.
Different clients (and HTTP servers, which also use MIME) have been known to make different choices for mime type names.
The links above will help you select an appropriate type name.
There aren't many situations in which software needs to know the difference between all the application/* types. They can usually just treat it as a binary stream.
[ February 21, 2003: Message edited by: David Weitzman ]
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! I know it's rare, but this is one of those times.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!