Sitemap.xml for Mailman

If you ever wondered how to generate a sitemap file for Mailman (the GNU Mailing List Manager), to be submitted i.e. to Google, here is how.

All you have to do is replacing a few variables, and submitting the sitemap to your favourite search engine.

It is based on a real website running Mailman:

With below code, it takes around 5 seconds to generate a sitemap consisting of 10000 articles.

Run it once a day via cron.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.