2025-01-02 23:23:18 +01:00
2025-01-02 23:23:18 +01:00
2026-07-13 22:58:59 +02:00
2026-07-13 22:58:59 +02:00
2026-07-13 22:58:59 +02:00
2026-07-13 22:58:59 +02:00
2026-07-13 22:58:59 +02:00
2025-01-03 00:26:43 +01:00

Docspell Import

Ein Tool zum Aufräumen des Docspell-Importverzeichnisses und zum automatischen Archivieren von bestätigten Dokumenten.

Funktionsweise

Das Programm:

  • Überprüft Dateien in konfigurierten Import-Verzeichnissen
  • Prüft für jede Datei, ob sie bereits in Docspell existiert
  • Wenn die Datei existiert und bestätigt ist:
    • Verschiebt sie in ein Archiv-Verzeichnis
    • Organisiert sie nach Datum und Ordnerstruktur
  • Optional: Lädt noch nicht existierende Dateien automatisch nach Docspell hoch

Voraussetzungen

Konfiguration

Erstellen Sie eine docspell-import.json Datei in Ihrem Home-Verzeichnis: Beispiel-Konfiguration

Read-only FUSE mount

The mount subcommand exposes a Docspell collection as a read-only filesystem. It uses the same ~/docspell-import.json configuration and password command as the import command.

mkdir -p ~/mnt/docspell
docspell-import mount --query '*' ~/mnt/docspell
# unmount when done
fusermount -u ~/mnt/docspell

Mounted files are grouped as:

<Docspell folder>/<year>/<month>/<attachment name>

Options:

  • --query: Docspell item query to expose, default *.
  • --limit: number of items fetched per API request, default 1000.
  • --auth-header: token header, default X-Docspell-Auth.

The mount is read-only. File contents are downloaded lazily from /api/v1/sec/attachment/{id} when read.

S
Description
Go CLI for importing, archiving, mounting, and resolving Docspell documents.
Readme
186 KiB
Languages
Go 98.8%
Nix 1.2%