User tools

Website tools


benno archive tool

This is an old version of the document!


benno archive tool

Das Programmpaket benno-archive-tool stellt Werkzeuge zum direkten Bearbeiten des Indexes oder Repositories zur Verfügung.

Der Index ist durch den Benno Archive Daemon gelockt und muss vor der Arbeit mit diesem Tool gestoppt werden. Wir empfehlen vor Arbeiten am Index oder dem Repo, ein aktuelles Backup oder ein Snapshot des Systems zu erstellen.

Procedure

  • Determine Benno's ID of the email(s)
  • Benno Archive Daemon stoppen
  • Call benno-archive-tool with the ID list and corresponding parameters
  • Benno Archive Daemon starten

Determine the ID of the emails

single email

Die ID einer einzelnen E-Mail kann ein Benutzer mit der Rolle ADMIN per Web-Interface ermitteln. Hierfür suchen Sie die E-Mail im Archiv und zeigen per Menüpunkt „Original“ den Quelltext der E-Mail an. Im Kopf des Popup-Fensters wird die Benno-Id angezeigt (hier: 2017:01A44237B194DB22106EE00BF2E8B25C001B793E85AD1CCB27CB59D70209A29E00)

Email list

Eine größere Liste von E-Mails kann über das Logfile oder per Konsole mit dem Kommando benno-client mittels Suchanfrage erstellt werden.

Functional description

The Benno archive tool allows you to perform operations on Benno's index. These operations primarily include deleting entries from the index, duplicate searches, and adding tags

  • The user must be root.
  • Das Löschen der Mails muss interaktiv mit der Eingabe von delete bestätigt werden

functions

  • Delete emails from the index using the MailID
  • Delete emails from the index using a list
  • Delete duplicate emails from the index
  • Mail will be deleted from the REPO folder
  • Empty folders above the mail path will also be deleted

Examples

Mail löschen

Mail löschen, wenn Aufbewahrungsfrist vorbei ist (10 Jahre)

  benno-archive-tool -D -m 2020:12345678...

Delete email without checking the retention period

  benno-archive-tool -D -f -m 2020:12345678...

Deleting a list of emails

  benno-archive-tool -D --maillist mails.txt benno-archive-tool -D -f --maillist mails.txt

Als Aufbewahrungsfristdatum soll das Datum des Date-Headers genommen werden

  benno-archive-tool -md -D -m 2020:12345678...

The current journal file is located in a different folder (this is a rare case; the default is the current year from the server)

benno-archive-tool -md -D -m 2020:12345678 -jy 2021

Mail Duplikate löschen

Löschen von Mailduplikaten nach der Aufbewahrungsfrist

  benno-archive-tool -DD

Command line parameters

    -D,--delete Delete mails from index -DD,--deleteduplicate Delete duplicate mails from index -f,--force Delete mails without checking retention period -fe,--fileextension <FILEEXTENSION> File extension of the mail -h,--help print this description -i,--indexpath <INDEXPATH> Path of Index directory (default: /srv/benno/archive/index) -j,--journalpath <JOURNALPATH> Path of Journal directory (default: /srv/benno/archive/repo) -jy,--journalyear <JOURNALYEAR> Current year to determine the current.journal -m,--mailid <MAIL> Select mailid --maillist <MAILLIST> Select maillist file with mailids -md,--maildate Take as retention period parameter the mail date header (instead of IndexTS from index) -r,--repopath <REPOPATH> Path of Repo directory (default: /srv/benno/archive/repo) -s,--subdirs <SUBDIRS> Set the total amount of Subdirectories -sl,--subdirlen <SUBDIRLEN> Subdirlength -tk,--tagkey <TAGKEY> Set Tagkey name here (Currently only invisible possible) -tv,--tagvalue <TAGVALUE> Set Tagvalue name here (Currently only 1 or 0 possible)
benno-archive-tool.1615554061.txt.gz · Zuletzt geändert: 2021/03/12 13:01 von lwsystems