bill christensen wrote: >The only options given are -l for list and -q for queue. Then it says >"filename is the name of the plaintext message file to inject. If omitted, >standard input is used." Ok... but there doesn't seem to be any way to >designate a file name (my obvious guess at -filename didn't do it), and >without it a call to > > python inject -l testlist > >appears to be sitting there waiting for more input. > >Sorry to have to keep bothering the list with this stuff. I'm looking >forward to getting it running smoothly and moving a bunch of lists over from >a rather ancient listserv software. ---------------- End original message. ---------------------
The file name is simply added as the last parameter of the command line. Like this: python inject -l testlist filename Otherwise, the script tries to read from STDIN. You do need to have something that passes as a valid e-mail message in the file. In other words, it needs appropriate headers (From:, To:, Message-id: at a minimum) and a valid message body terminated with a single line with a '.' and CRLF From the help emitted by the inject script: ./inject -h Inject a message from a file into Mailman's incoming queue. Usage: inject [options] [filename] Options: -h / --help Print this text and exit. -l listname --listname=listname The name of the list to inject this message to. Required. -q queuename --queue=queuename The name of the queue to inject the message to. The queuename must be one of the directories inside the qfiles directory. If omitted, the incoming queue is used. filename is the name of the plaintext message file to inject. If omitted, standard input is used. Dragon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp