After a night of back-and-forth attempts, i think I fibnally understood how the matching works: once match is True, the rule will always be applied. Specifically it does not depend on the result of metadata_regex. If my understanding is now correct, this explains #43 and #44
Crap.
This means that I cannot use only the content of the document to set a filename. I want to process all my documents and set the filename based on its content. To do this, I would need to have a regex on the content in the match entry.
Is this possible?