Add to handler, matching, retagger

This commit is contained in:
shamoon
2024-12-13 13:54:20 -08:00
parent a632b6b711
commit 6dc6c6c7bb
5 changed files with 110 additions and 4 deletions

View File

@@ -372,17 +372,19 @@ currently-imported docs. This problem is common enough that there are
tools for it.
```
document_retagger [-h] [-c] [-T] [-t] [-i] [--id-range] [--use-first] [-f]
document_retagger [-h] [-c] [-T] [-t] [-cf] [-i] [--id-range] [--use-first] [-f] [--suggest]
optional arguments:
-c, --correspondent
-T, --tags
-t, --document_type
-s, --storage_path
-cf, --custom_fields
-i, --inbox-only
--id-range
--use-first
-f, --overwrite
--suggest
```
Run this after changing or adding matching rules. It'll loop over all
@@ -408,6 +410,8 @@ to override this behavior and just use the first correspondent or type
it finds. This option does not apply to tags, since any amount of tags
can be applied to a document.
If you want to suggest changes but not apply them, specify `--suggest`.
Finally, `-f` specifies that you wish to overwrite already assigned
correspondents, types and/or tags. The default behavior is to not assign
correspondents and types to documents that have this data already