02-16-2019 09:26 AM
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 Plain/Text.
Is there a way to change this to HTML/Text? I'll tried to set a rule accordingly. The rule works and creates a copy of the Body with "html" Extension and HTML Mimetype, but the Content of the Body is still shown as Plain. If I Change the mimetype manually to HTML it works fine. There must be a way to automate this?
Thanks in Advance for any helpful answer.
02-25-2019 07:43 AM
Hi Thomas,
I think you are already familiar with creating a rule - just use a "execute script" as action for your rule.
You can create/upload the script (Javascriptfile) in the "Data Dictionary/Scripts" Folder (before creating the rule).
In your script there should be a line like
document.properties.content.mimetype="text/html"
document is the global scope object that has triggered your rule (the html Attachment in your case)
02-20-2019 12:49 AM
Set up a JavaScript rule - you should be able to access and change the mimetype via document.properties.content.mimetype
02-23-2019 07:07 AM
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.
02-25-2019 07:43 AM
Hi Thomas,
I think you are already familiar with creating a rule - just use a "execute script" as action for your rule.
You can create/upload the script (Javascriptfile) in the "Data Dictionary/Scripts" Folder (before creating the rule).
In your script there should be a line like
document.properties.content.mimetype="text/html"
document is the global scope object that has triggered your rule (the html Attachment in your case)
Explore our Alfresco products with the links below. Use labels to filter content by product module.