Benutzer-Werkzeuge

Webseiten-Werkzeuge


project:merge-mailman-mbox-archives

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
project:merge-mailman-mbox-archives [2011-11-27 19:58] 109.192.98.64project:merge-mailman-mbox-archives [2011-11-27 20:00] 109.192.98.64
Zeile 2: Zeile 2:
 ====== Merge Mailman - or other - mbox Archives ====== ====== Merge Mailman - or other - mbox Archives ======
  
-===== Situation=====+===== Situation =====
  
 Mailman archives list email in an mbox formattet mailbox. Mailman archives list email in an mbox formattet mailbox.
-There can occur several situations where some mbox files - where new emails get just appended to forked at one point of time in the past.+There can occur several situations where some mbox files - where new emails get just appended to forked at one point of time in the past.
  
   * two Mailservers, migration from one to another   * two Mailservers, migration from one to another
Zeile 11: Zeile 11:
   * other cases of desynchronized mbox folders   * other cases of desynchronized mbox folders
  
-===== Problem=====+===== Problem =====
  
 An mbox folder ist just one (sometimes large) file An mbox folder ist just one (sometimes large) file
Zeile 17: Zeile 17:
  
 So it's not easy to tell which email is present in one folder and it's even more nasty to put a missing email into a folder at a defined position. So it's not easy to tell which email is present in one folder and it's even more nasty to put a missing email into a folder at a defined position.
 +
 +===== Solution =====
  
 So the first step would be to split the folder into the individual emails. This is where formail (it comes with procmail) comes handy. It just splits an mbox folder and calls a given tool on every mail providing the mail on its stdin. So the first step would be to split the folder into the individual emails. This is where formail (it comes with procmail) comes handy. It just splits an mbox folder and calls a given tool on every mail providing the mail on its stdin.
Zeile 128: Zeile 130:
 That's it. Please be sure the folders are not to be written (from your mail server or mailing list manager) while this is going on. ;-) That's it. Please be sure the folders are not to be written (from your mail server or mailing list manager) while this is going on. ;-)
  
-=== Remarks ===+===== Remarks =====
   * You have to use bash >= 3.0 or 3.2 for that.   * You have to use bash >= 3.0 or 3.2 for that.
   * If you use this on otherwise differing mbox mail folders you will get a unified merged folder - but without the original flow of time reconstructed.   * If you use this on otherwise differing mbox mail folders you will get a unified merged folder - but without the original flow of time reconstructed.
  
project/merge-mailman-mbox-archives.txt · Zuletzt geändert: 2022-04-20 10:40 von chris