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: http://lists.wpkg.org
With below code, it takes around 5 seconds to generate a sitemap consisting of 10000 articles.
Run it once a day via cron.