mirror of
https://github.com/Laurent2916/mailman3_webhook_archiver.git
synced 2024-11-08 22:42:01 +00:00
.vscode | ||
mailman3_webhook_archiver | ||
.editorconfig | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
poetry.lock | ||
poetry.toml | ||
pyproject.toml | ||
README.md |
Installation
A mailman archiver is a simple python package, to install it you can either use pip or install it manually.
If your use-case doesn't fit the this archiver feel free to fork this project, create an issue or a pull request.
Install using pip (recommended)
Activate the python environment used by mailman.
Install the package using pip:
pip install git+https://github.com/Laurent2916/mailman3_webhook_archiver.git
Manual install (not recommended)
Clone the repository:
git clone https://github.com/Laurent2916/mailman3_webhook_archiver.git
cd mailman3_webhook_archiver
Copy the mailman3_webhook_archiver
folder into your environment libraries.
The process may look something like one of the following lines:
cp -r mailman3_webhook_archiver /usr/lib/python3/dist-packages/
cp -r mailman3_webhook_archiver /path/to/.venv/lib/python3.11/site-packages/
Configuration
The archiver loads its configuration using an external configuration file.
Create and fill /etc/mailman3/mailman-webhook-archiver.cfg
with the relevant informations.
[global]
url = https://webhook.example.com/foo/bar
key = SUPER_SECRET_TOKEN_KEY
filter_spam = false
monitored_lists = my_mailing_list, another_list, foo, bar, test
Modify the mailman configuration to enable the newly added archiver.
Append the following to /etc/mailman3/mailman.cfg
.
[archiver.mailman3_webhook_archiver]
class: mailman3_webhook_archiver.WebhookArchiver
configuration: /etc/mailman3/mailman3_webhook_archiver.cfg
enable: yes