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

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay