<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WebDAV drag and drop mime type for .msg files in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315030#M2031</link>
    <description>&lt;P&gt;Using the method call (shown below) to the mimeService in Nuxeo as well as adding a mime extensions for .msg allows me to detect the .msg files even though they are originally set to application/octet-stream. I can then change the mimeType in the Blob to application/vnd.ms-outlook.&lt;/P&gt;
&lt;P&gt;I looks like the Nuxeo code just sets everything dropped into a webDAV workspace as an application/octet-stream without any checking; was this done for performance??&lt;/P&gt;
&lt;P&gt;String detectedMimeType =
mimeService.getMimetypeFromFilenameAndBlobWithDefault(name, content, "application/octet-stream");&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2012 00:48:49 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2012-12-28T00:48:49Z</dc:date>
    <item>
      <title>WebDAV drag and drop mime type for .msg files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315029#M2030</link>
      <description>&lt;P&gt;&lt;A href="http://www.nuxeo.com/blog/development/2012/11/viewing-emails-stored-nuxeo-webdav/"&gt;I am implementing a variation of this solution.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have added nuxeo xml extensions for the .msg file extension with a  mime type  of "application/vnd.ms-outlook" in two places:&lt;/P&gt;
&lt;P&gt;&lt;COMPONENT name="org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService"&gt;
&lt;EXTENSION-POINT name="extension"&gt;
&lt;MIMETYPE normalized="application/vnd.ms-outlook" binary="true" iconpath="email.png" onlineeditable="true" olesupported="true"&gt;
&lt;MIMETYPES&gt;
&lt;MIMETYPE&gt;application/vnd.ms-outlook&lt;/MIMETYPE&gt;
&lt;/MIMETYPES&gt;
&lt;EXTENSIONS&gt;
&lt;EXTENSION&gt;msg&lt;/EXTENSION&gt;
&lt;/EXTENSIONS&gt;
&lt;/MIMETYPE&gt;
&lt;/EXTENSION-POINT&gt;
&lt;/COMPONENT&gt;&lt;/P&gt;
&lt;EXTENSION target="web#SERVLET"&gt;
    &lt;MIME-MAPPING&gt;
        &lt;EXTENSION&gt;msg&lt;/EXTENSION&gt;
        &lt;MIME-TYPE&gt;application/vnd.ms-outlook&lt;/MIME-TYPE&gt;
    &lt;/MIME-MAPPING&gt;
&lt;/EXTENSION&gt;
&lt;P&gt;When I drag and drop an email from ms-outlook email client to a Nuxeo webDAV folder the mime type of .msg file extension files is application/octet-stream, this causes the mime-type the check for the application/vnd.ms-outlook mime type to fail and therefore no conversion of the email takes place as outlined in the blog reference above.&lt;/P&gt;
&lt;P&gt;Question: How do I change the mime type for a file which is drag and dropped into Nuxeo through the webDAV interface? I need to see application/vnd.ms-outlook for .msg file extensions.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 17:09:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315029#M2030</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-12-21T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: WebDAV drag and drop mime type for .msg files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315030#M2031</link>
      <description>&lt;P&gt;Using the method call (shown below) to the mimeService in Nuxeo as well as adding a mime extensions for .msg allows me to detect the .msg files even though they are originally set to application/octet-stream. I can then change the mimeType in the Blob to application/vnd.ms-outlook.&lt;/P&gt;
&lt;P&gt;I looks like the Nuxeo code just sets everything dropped into a webDAV workspace as an application/octet-stream without any checking; was this done for performance??&lt;/P&gt;
&lt;P&gt;String detectedMimeType =
mimeService.getMimetypeFromFilenameAndBlobWithDefault(name, content, "application/octet-stream");&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 00:48:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315030#M2031</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-12-28T00:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: WebDAV drag and drop mime type for .msg files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315031#M2032</link>
      <description>&lt;P&gt;The MIME type should be provided by the WebDAV client when creating the file, as a normal HTTP request header. If the WebDAV client doesn't do that (and if it doesn't I'd consider it broken) we don't introduce further guessing at the moment.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2013 15:05:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webdav-drag-and-drop-mime-type-for-msg-files/m-p/315031#M2032</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-01-03T15:05:16Z</dc:date>
    </item>
  </channel>
</rss>

