Yenthe666 / mail

Mail
16 stars 4 forks source link

mail

Apps related to Odoo it's e-mail features:

mail_parser

This app adds support to parse content from an email that is coming into Odoo through an alias. Through this app you can configure regex rules on aliasses to parse values out of an email and create new records in Odoo. A sample configuration of an alias (Settings > Technical > Email > Aliases:

image

In this case when an email is sent to tasks@yourdomain.com this app will parse the whole email body with the "mail parser rules" (regex). On every rule you can configure a few things:

Under the tab "Test Mail Body" you can paste a text representing the content of an email you wish to test. This can be used to quick check/test the rules and conditions through the button "Test Parser". A sample after clicking on it:

image

Under the alias itself there is also a new field named "Mail parser server action". In the example screenshot you can see we set a action "Link contact to task". This is done to execute code after the alias its email has been parsed. A sample here could be that you wish to automatically create a new contact from an alias that already generates a task and that you then want to link the contact to the task too:

image

This could also be used to trigger other actions, send an SMS, create activities and many more options.