DEV Community

nabbisen
nabbisen

Posted on • Edited on

1

Mailman: How to add subject prefix and count emails

GNU Mailman has an option to add subject_prefix to emails.

* "Mailman" in this post means not Mailman 3 but Mailman 2, 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] '
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay