User tools

Website tools


benno archive tool

Differences

The differences between two versions are shown here.

Link to this comparison view

Both sides of the previous revisionPrevious revision
Next revision
Previous revision
benno-archive-tool [2024/12/05 13:16] lwsystemsbenno-archive-tool [2026/04/22 13:55] (current) – [Ausschließlich Index-Einträge löschen] lwsystems
Zeile 49: Zeile 49:
   * Lösche Mails aus dem Index anhand einer Liste   * Lösche Mails aus dem Index anhand einer Liste
   * Lösche doppelte Mails aus dem Index   * Lösche doppelte Mails aus dem Index
-  * Mail wird aus dem REPO Ordner gelöscht+  * Mail wird aus dem REPO Ordner gelöscht (Mail in S3-Repos müssen zusätzlich manuell gelöscht werden)
   * Leere Ordner oberhalb des Pfades der Mail werden ebenfalls gelöscht   * Leere Ordner oberhalb des Pfades der Mail werden ebenfalls gelöscht
  
-==== Beispiele ====+====== Beispiele ====== 
  
 Mit dem Parameter //-m// wird die [[rest_interface#e-mail_mittels_bennoid_laden|BennoID]] der zu löschenden E-Mail übergeben. Mit dem Parameter //-m// wird die [[rest_interface#e-mail_mittels_bennoid_laden|BennoID]] der zu löschenden E-Mail übergeben.
  
-=== Mail löschen ===+===== Mail nach Aufbewahrungsfrist löschen ===== 
  
 Delete email when the retention period has expired (10 years). Delete email when the retention period has expired (10 years).
  
     benno-archive-tool -D -m 2020:12345678...     benno-archive-tool -D -m 2020:12345678...
 +
  
 The retention period is calculated based on the difference between the email's index timestamp and the current time. The index timestamp is reset when the email is archived or re-indexed. The retention period is calculated based on the difference between the email's index timestamp and the current time. The index timestamp is reset when the email is archived or re-indexed.
  
-Mit dem Schalter //-md//, bzw. //--maildate// wird der Zeitraum anhand des Date-Headers der E-Mail berechnet.+==== Date-Header für Aufbewahrungsfrist ==== 
 + 
 +Mit dem Schalter //%%-md%%//, bzw. //%%--maildate%%// wird der Zeitraum anhand des Date-Headers der E-Mail berechnet.
  
     benno-archive-tool -md -D -m 2020:12345678...     benno-archive-tool -md -D -m 2020:12345678...
  
  
-Delete email without checking the retention period+===== Delete email without checking the retention period =====
  
     benno-archive-tool -D -f -m 2020:12345678...     benno-archive-tool -D -f -m 2020:12345678...
  
-Deleting a list of emails 
  
-    benno-archive-tool -D --maillist mails.txt +===== Löschen einer Liste von E-Mails =====
-    benno-archive-tool -D -f --maillist mails.txt+
  
 +
 +  * ''%%benno-archive-tool --delete --maillist mails.txt%%''
 +  * ''%%benno-archive-tool --delete --maildate --maillist mails.txt%%''
 +  * ''%%benno-archive-tool --delete --force --maillist mails.txt%%''
 +
 +==== Ausschließlich Index-Einträge löschen ====
 +
 +Hiermit werden die E-Mails ausgeblendet und können nicht mehr gefunden werden. Die jeweilige E-Mail ist noch im Repo vorhanden und kann durch einen Re-Index wieder gefunden werden.
 +Dieser Aufruf ist erheblich schneller und bietet sich bei einer großen Anzahl von E-Mails an.
 +
 +  * '''%%benno-archive-tool --INDEX-DELETE --maillist mails.txt%%''
 +===== Journal nicht in Standard-Verzeichnis =====
  
 The current journal file is located in a different folder (this is a rare case; the default is the current year from the server) The current journal file is located in a different folder (this is a rare case; the default is the current year from the server)
Zeile 83: Zeile 98:
   benno-archive-tool -md -D -m 2020:12345678 -jy 2021   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 
  
 ====== Kommandozeilenparameter ====== ====== Kommandozeilenparameter ======
  
 <code> <code>
-    -D,--delete                           Delete mails from index + -D,--delete                           Delete mails from index and repo 
- + -Do,--deleteorphans                   Delete orphan entries from index 
-    -DD,--deleteduplicate                 Delete duplicate mails from index + -f,--force                            Delete mails without checking 
- +                                       retention period 
-    -f,--force                            Delete mails without checking retention period + -fe,--fileextension <FILEEXTENSION>   File extension of the mail 
- + -h,--help                             print this description 
-    -fe,--fileextension <FILEEXTENSION>   File extension of the mail + -i,--indexpath <INDEXPATH>            Path of Index directory (default: 
- +                                       /srv/benno/archive/index) 
-    -h,--help                             print this description + -id,--INDEX-DELETE                    Delete only index entry without 
- +                                       checking repo 
-    -i,--indexpath <INDEXPATH>            Path of Index directory (default: /srv/benno/archive/index) + -j,--journalpath <JOURNALPATH>        Path of Journal directory (default: 
- +                                       /srv/benno/archive/repo) 
-    -j,--journalpath <JOURNALPATH>        Path of Journal directory (default: /srv/benno/archive/repo) + -jy,--journalyear <JOURNALYEAR>       Current year to determine the 
- +                                       current.journal 
-    -jy,--journalyear <JOURNALYEAR>       Current year to determine the current.journal + -m,--mailid <MAIL>                    Select mailid 
- +    --maillist <MAILLIST>              Select maillist file with mailids 
-    -m,--mailid <MAIL>                    Select mailid + -md,--maildate                        Take as retention period parameter 
- +                                       the mail date 
-    --maillist <MAILLIST>                 Select maillist file with mailids + -r,--repopath <REPOPATH>              Path of Repo directory (default: 
- +                                       /srv/benno/archive/repo) 
-    -md,--maildate                        Take as retention period parameter the mail date header (instead + -s,--subdirs <SUBDIRS>                Set the total amount of 
-                                          of IndexTS from index) +                                       Subdirectories 
- + -sl,--subdirlen <SUBDIRLEN>           Subdirlength 
-    -r,--repopath <REPOPATH>              Path of Repo directory (default: /srv/benno/archive/repo) + -tk,--tagkey <TAGKEY>                 Set Tagkey name here (Currently 
- +                                       only invisible possible) 
-    -s,--subdirs <SUBDIRS>                Set the total amount of Subdirectories + -tv,--tagvalue <TAGVALUE>             Set Tagvalue name here (Currently 
- +                                       only 1 or 0 possible)
-    -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)+
 </code> </code>
benno-archive-tool.1733404584.txt.gz · Zuletzt geändert: 2024/12/05 13:16 von lwsystems