The MailFolder create Document from Mail using a configured chain of actions.
The extension point is called actionPipes.
The default configuration contains :
The action that will actually create the Document is CreateDocumentsAction.
So, if you want the mail folder to create custom Document types, you have to contribute your own Action and overriding the default chain.
- this may seem more complex than actually needed (even if the code itself is rather simple)
- today, all this configuration would be done via Automation
The goal of this addon is to do the heavy lifting and basically "make a new Mail Action that uses an Automation chain to do the creation".
This will allow you to define everything from within Nuxeo Studio.