paperless-ngx/src/paperless
Michael Gmelin f0320fb72d Allow configuring transformations to be applied to the filename before
parsing. The motivation was that files produced by a Brother scanner
wouldn't match paperless' expectations. At most one transformation
is applied (first matching). It won't affect the filename on disk.

This is generic enough so that it is useful for various purposes.
In my case it allows me to use the different hardware buttons on
the scanner to use different profiles, feeding one instance of
paperless with documents of multiple entities and tagging them
accordingly.

Example:

PAPERLESS_FILENAME_PARSE_TRANSFORMS=[{"pattern":"^([a-z]+)_(\\d{8})_(\\d{6})_([0-9]+)\\.", "repl":"\\2\\3Z - \\4 - \\1."},{"pattern":"^([a-z]+)_([0-9]+)\\.", "repl":" - \\2 - \\1."}]
2019-08-31 15:01:25 +02:00
..
static/paperless/img Fix .gitignore exclusion that hid the logos 2018-12-30 12:39:07 +00:00
__init__.py Added checks for expected binaries in the PATH 2017-01-14 18:04:15 +00:00
checks.py Use optipng to optimise document thumbnails 2018-10-07 14:56:38 +01:00
db.py Add script to (de|en)crypt all documents 2018-05-28 12:58:28 +01:00
middleware.py Code cleanup 2018-07-08 16:07:10 +01:00
mixins.py refactor: break document-only stuff into the paperless app 2017-03-25 16:18:34 +00:00
models.py Rework user hack for "login-free" sessions #394 2018-10-07 16:27:41 +01:00
settings.py Allow configuring transformations to be applied to the filename before 2019-08-31 15:01:25 +02:00
urls.py Add the new logo 2018-12-30 12:20:08 +00:00
version.py Bump version 2018-12-30 12:44:26 +00:00
views.py Add the new logo 2018-12-30 12:20:08 +00:00
wsgi.py Update version of remaining weblinks to Django documentation. 2017-05-27 08:49:03 +10:00