|
|
|
@ -15,24 +15,29 @@ pip3 install . |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
## MonthlyArchiver |
|
|
|
|
MonthlyArchiver simply gzips |
|
|
|
|
each message and stores it in a folder named by the year and month. Each |
|
|
|
|
message's file name is a Unix epoch timestamp. |
|
|
|
|
This archiver stores each message in a maildir folder for the message's year |
|
|
|
|
and month. |
|
|
|
|
|
|
|
|
|
The motivation behind `MonthlyArchiver` was to avoid storing thousands of |
|
|
|
|
messages in a single directory, which the `Prototype` archiver currently |
|
|
|
|
does since it uses a maildir. |
|
|
|
|
does. |
|
|
|
|
|
|
|
|
|
Example directory structure: |
|
|
|
|
``` |
|
|
|
|
/var/lib/mailman3/archives |
|
|
|
|
\_ monthly_archiver |
|
|
|
|
\_ mylist@mydomain.com |
|
|
|
|
\_ 2021-April |
|
|
|
|
\_ 1617678398.173.mail.gz |
|
|
|
|
\_ 1617678805.351.mail.gz |
|
|
|
|
\_ 2021-May |
|
|
|
|
\_ ... |
|
|
|
|
/var/lib/mailman3/archives/ |
|
|
|
|
|-- monthly_archiver/ |
|
|
|
|
|-- mylist@mydomain.com/ |
|
|
|
|
|-- 2021/ |
|
|
|
|
|-- April/ |
|
|
|
|
| |-- cur/ |
|
|
|
|
| |-- new/ |
|
|
|
|
| | |-- 1618032020.M509265P87123Q1.mail |
|
|
|
|
| | |-- 1618032509.M464173P87208Q1.mail |
|
|
|
|
| |-- tmp/ |
|
|
|
|
|-- May/ |
|
|
|
|
|-- cur/ |
|
|
|
|
|-- new/ |
|
|
|
|
|-- tmp/ |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
To enable this archiver, add the following to your mailman.cfg: |
|
|
|
|