<?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: Changing mimetype of inbound mail body from Plain/Text to HTML?  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56742#M20512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set up a JavaScript rule - you should be able to access and change the mimetype via document.properties.content.mimetype&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 05:49:47 GMT</pubDate>
    <dc:creator>mehe</dc:creator>
    <dc:date>2019-02-20T05:49:47Z</dc:date>
    <item>
      <title>Changing mimetype of inbound mail body from Plain/Text to HTML?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56741#M20511</link>
      <description>Dear Community,I have successfully setup latest Version of Alfresco Commuity Edition and enabled Inbound eMail. I'm able to send emails to that folder and email body and attachements are shown. The only issue is that although the email is in HTML the mimetype of the Body is automatically set to Plai</description>
      <pubDate>Sat, 16 Feb 2019 14:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56741#M20511</guid>
      <dc:creator>thomasd_</dc:creator>
      <dc:date>2019-02-16T14:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing mimetype of inbound mail body from Plain/Text to HTML?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56742#M20512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set up a JavaScript rule - you should be able to access and change the mimetype via document.properties.content.mimetype&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 05:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56742#M20512</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2019-02-20T05:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing mimetype of inbound mail body from Plain/Text to HTML?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56743#M20513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks Martin for your answer. I'm no professional java developer. Can you perhaps explain a little more detailed how to do this or link on the applicable documentation of the functionality? I'm willing to self teach me the knowledge but I need to get a suitable starting point to learn and to try.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2019 12:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56743#M20513</guid>
      <dc:creator>thomasd_</dc:creator>
      <dc:date>2019-02-23T12:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing mimetype of inbound mail body from Plain/Text to HTML?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56744#M20514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are already familiar with creating a rule - just use a "execute script" as action for your rule.&lt;BR /&gt;You can create/upload the script (Javascriptfile) in the "Data Dictionary/Scripts" Folder (before creating the rule).&lt;/P&gt;&lt;P&gt;In your script there should be a line like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document.properties.content.mimetype="text/html"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document is the global scope object that has triggered your rule (the html Attachment in your case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/5.1/references/rule-actions.html" title="http://docs.alfresco.com/5.1/references/rule-actions.html" rel="nofollow noopener noreferrer"&gt;Rule actions | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 12:43:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-mimetype-of-inbound-mail-body-from-plain-text-to-html/m-p/56744#M20514</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2019-02-25T12:43:14Z</dc:date>
    </item>
  </channel>
</rss>

