[Mailman-Users] importing an archive in such a way as to populatethe associated newsgroup.

John W. Baxter jwblist3 at olympus.net
Mon Sep 25 23:55:18 CEST 2006


On 9/24/06 8:19 AM, "Mark Sapiro" <msapiro at value.net> wrote:

> Assuming the experiment above works, you could probably create a simple
> script in Python (or perl or even a shell script) that would extract
> the messages one by one from the mailbox and pipe them to
> 
> bin/inject --listname=<listname> --queue=news
> 
> (bin/inject reads stdin if no filename arg is given).

formail
can probably be used for this job.  The man page is a must, and caution is
advised (formail will do what it's told, as will the commands it is told to
send the output to--it can happen that it's told the wrong thing for an
input mbox file with lots of messages).

The formail program typically rides in with the procmail package in
package-based distributions.

  --John





More information about the Mailman-Users mailing list