loading...

Mailman: How to add subject prefix and count emails

nabbisen profile image Heddi Nabbisen ・1 min read

OpenBSD mailing lists (4 Part Series)

1) OpenBSD mailing lists with OpenSMTPD 2) OpenBSD mailing lists with Mailman 3) Mailman: How to add subject prefix and count emails 4) Mailman: How to update subject prefix number (post id)

GNU Mailman has an option to add subject_prefix to emails.

* "Mailman" in this post means not Mailman3 but Mailman2, because I use OpenBSD.

We can count emails of a mailing list with the command named config_list.

Create a file, for examle, named cfg.py, and write in it:

subject_prefix = '[list-label %04d] '

and config_list it for $LIST_NAME (replace this with your list's name):

# /usr/local/lib/mailman/bin/config_list -i cfg.py $LIST_NAME

It will bring emails with subjects like "[list-label 0001] an actual subject".

Discussion

markdown guide